Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Everyone,
I was trying to run Python script from QlikView Button. I followed this forum
QlikView and Python Integration
However, when I modify MachineInfo to do other things the code does not work. Even simple commands like calling a function or modifying a text file.
I am trying to execute a complex Python script with new input from QlickView. I used TextBoxEx to get the input and it sends it to the Python code successfully BUT the code fails when I do any function call.
Any suggestion how can I run Python script that accepts input from QlikView???
Thank you
Finally, I managed to make this work. Now I can change a file on my hard drive using QlikView Module.
I will add the details to make it useful if anyone is interested.
First I will add the screenshots of the code (QlikView and Python)
Click on the image for better resolution
Click "Check"
Click "Test"
Check the error "Highlighted in Yellow below"
The Error is not readable. So I had to click on the error area then select all and paste it in Notepad.
In my case, QlikView module didn't recognise the relative path for the file so I had to add the full path.
Cheers
Finally, I managed to make this work. Now I can change a file on my hard drive using QlikView Module.
I will add the details to make it useful if anyone is interested.
First I will add the screenshots of the code (QlikView and Python)
Click on the image for better resolution
Click "Check"
Click "Test"
Check the error "Highlighted in Yellow below"
The Error is not readable. So I had to click on the error area then select all and paste it in Notepad.
In my case, QlikView module didn't recognise the relative path for the file so I had to add the full path.
Cheers
hi - Ahmad ,
what version of python, windows and Qlikview are you running?
I followed the same forum as you, however when I click the button from Qlikview it just says Running Macro forever
and nothing happens.
My version details
Qlikview 12.10
Windows 7
Python 3.6.4
(I was able to register the class and was also able to call the macro from VB - works fine).