It looks like there might be a problem with the use of keyword invocation on the gateway scoped portion of this module (that is, the gateway side isn’t set up to use keywords). Try calling the function normally, with a parameter for each field. In other words, much like your second attempt, but will a value (possibly ‘null’) for each argument. Here is the signature:
TypeError: addTag(): 3rd arg can’t be coerced to com.inductiveautomation.ignition.common.sqltags.model.types.TagType
So I have tried various options using “6” for a TagType parameter (as shown below), or even “property” among other things but I always get the same error.
Ah, I had that thought when I posted, but hoped that it would coerce from the string form. Ultimately, the module should be updated to support keywords - which in turn uses more permissive coercion. However, in the mean time, if you want to use it as is, you’ll need to import the Java type objects into Jython and use them like this:
Has your last statement been tested? If it works then perhaps I need to download a newer version of Ignition.
So far I needed to change “true” to “True” and the Null to ‘null’, and it had an error with having 9 arguments when it only wanted 8 arguments. My latest statement is:
In Jython, null = None. You’re passing it a string that happens to have the value ‘null’, which is why it can’t coerce.
Now, that said, I think it’s probably going to be easier if you wait until the module is updated to support keyword invocation, because if you’re trying to create OPC tags, you’ll need to pass in parameters for the tag properties needed, such as opc server, and opc item path, and right now that’s going to be really annoying to create. I’ll see if we can get it updated today or tomorrow.
Right now I am just trying to do some basic proof of concept on our end, so this is good for immediate need. Though I will be interested when the final changes for the module are complete.