Hello,
I'm trying to perform search in external database from the web interface. I've been following this post
https://groups.google.com/a/runmyprocess.com/forum/#!searchin/supportforum/sending$20variables$20to$20connector/supportforum/-m3EcwqSdG8/BtuNJyikJZAJ. However some things are not clear to me.
I have a connector with query to perform the search and a composite api to that connector. I also have a text input and a button. The connector is working when I perform a test. My question is where exactly do I add the api listener js script? I've tried adding the script to the button and to api listener completed event tab, it always gives error. This is my script:
function ok(P_computed){
alert(JSON.stringify(P_computed));
}
function ko(P_error){
alert(JSON.stringify(P_error));
}
var input = {"input":"Test"};
var options = {};
id_123456.trigger(input,options,ok,ko);
What value does the 'input' variable exactly have? Is it the value typed in text field?
My second question is how to retrieve the json output I receive and display on WI? The post I referred to above mentioned "creating a output variable in your connector task". Where exactly do I add this output variable?
Thank you.
--
teknion.com <
http://www.teknion.com>
<
http://www.teknioncre8.com/> <
http://www.facebook.com/Teknion>
<
http://www.linkedin.com/company/teknion> <
http://twitter.com/teknion>
<
http://www.youtube.com/teknion>
Please consider the environment before printing this e-mail.
CONFIDENTIALITY NOTICE: This communication, including any attachments, may
contain information that is confidential and privileged. [It may constitute
non-public information and is intended to be conveyed only to the
designated recipient(s).] If the reader or recipient of this communication
is not the intended recipient, or you believe that you have received this
communication in error, please notify us immediately by return e-mail and
promptly delete this e-mail including any attachments without reading or
saving them in any manner. Any other distribution, copying or disclosure is
prohibited and may be unlawful. We accept no responsibility for changes
made to this e-mail or to any attachments after transmission from our
office.