Discussion:
Dynamic Parameters on Script Connector
Add Reply
g***@gmail.com
2019-09-11 23:19:35 UTC
Reply
Permalink
Hi,

Currently I'm developing a custom IGI connector, now this integration uses a WebServices to get the Accounts information.

Im currently using a Script Connector to make the Iterator connector, and this works fine, now i got a question, how do you manage to pass dynamic Parameters to this Script Connector?

On a axis2wsclientfc you normally achieve this using this logic:

thisConnector.setConnectorParam("wsdlUrl", WSDLRecon);


But I'm stuck to achieve this on a Script Connector, any idea to solve this(Beside to read this URL form the SDI properties files)?
j***@gmail.com
2019-09-12 02:36:48 UTC
Reply
Permalink
If you want to use the same way of passing parameters to the
Script Connector, you can retrieve the dynamic parameter value like this
in your script in the Script Connector:

var wsdlUrl = connector.getParam("wsdlUrl")
g***@gmail.com
2019-09-12 04:42:32 UTC
Reply
Permalink
Post by j***@gmail.com
If you want to use the same way of passing parameters to the
Script Connector, you can retrieve the dynamic parameter value like this
var wsdlUrl = connector.getParam("wsdlUrl")
Thank you, this is what i was looking for!!!
Eddie Hartman
2019-09-13 07:47:24 UTC
Reply
Permalink
Post by g***@gmail.com
Post by j***@gmail.com
If you want to use the same way of passing parameters to the
Script Connector, you can retrieve the dynamic parameter value like this
var wsdlUrl = connector.getParam("wsdlUrl")
Thank you, this is what i was looking for!!!
And of course @Gabriel you've discovered the Form Editor (Open With...) for Connectors where you can define your own parameters (with internal names), as well as the layout of the Connection tab of your custom component..?

/Eddie :)
g***@gmail.com
2019-09-18 19:05:31 UTC
Reply
Permalink
Post by Eddie Hartman
Post by g***@gmail.com
Post by j***@gmail.com
If you want to use the same way of passing parameters to the
Script Connector, you can retrieve the dynamic parameter value like this
var wsdlUrl = connector.getParam("wsdlUrl")
Thank you, this is what i was looking for!!!
/Eddie :)
Hi Eddie, my question got solved with Jens help, and i can create some help guide for some coworkers. (https://p30virus.gitlab.io/post/sdi-script-connector/)

Now, about your suggestion, i would be happy to learn more about that there's any documentation on that topic?
Eddie Hartman
2019-09-19 17:53:45 UTC
Reply
Permalink
Here's the doc for 7.1, and applied to 7.1.1 and 7.2:
https://www.ibm.com/support/knowledgecenter/en/SSCQGF_7.1.0/com.ibm.IBMDI.doc_7.1/formseditor.htm

With it you define your own parameters that can be set via the Connection tab (including their own Parameters Dialog to tie them to Properties, JavaScript or Substitution Text) and that you access from script code with the technique shared above: connector.getParam()

/Eddie
g***@gmail.com
2019-09-19 18:31:21 UTC
Reply
Permalink
Post by Eddie Hartman
https://www.ibm.com/support/knowledgecenter/en/SSCQGF_7.1.0/com.ibm.IBMDI.doc_7.1/formseditor.htm
With it you define your own parameters that can be set via the Connection tab (including their own Parameters Dialog to tie them to Properties, JavaScript or Substitution Text) and that you access from script code with the technique shared above: connector.getParam()
/Eddie
Oh, Thank you, i will check that option.

Loading...