When using the function model, adding functions I understand how to add variables to the function, but how do I use that variable in write script?
Function in function drop down with variables
For example I am creating a function that uses an IP address, I add the function with the address variable and write this in the generateScript section.
In runtime I get an error, it seems like it doesn’t recongize p1 variable (which is the address). What am I doing wrong?
Have you defined/instantiate your variable p1 anywhere?
I am using the FunctionModel example to help out, it does this.
When the function is called p1 is given a value, do I have to define this else where?
No, sorry I thought you were using it in another context. Anyway, if you follow this sample there should not be any problem. Could you show the error that you are getting?