I created a module with the driver of MongoDB and it works only with a project script (with a button in a window). It is under the Script Library [project].
Then I want to call it in the value changed of one tag. I enclose one picture.
When I try to run the script in a value changed, I have this error:
Value Changed Error executing script.
Traceback (most recent call last):
File "<tagevent:valueChanged>", line 16, in valueChanged
NameError: global name 'project' is not defined
How can I do this?
I tried to put the script in shared scripts and here the scripts work, but I have the error in import library of mongoDb. So i must use a Project Section.
Can I help me?