<script language="javascript"> function init() { //Do your init here... IWEventRegistry.addItemHandler("/ModelName","onCallout",launchCallout); } //The formAPI framework passes in the item that the callout was clicked on. function launchCallout(item) { var searchItem = IWDatacapture.getItem("/search"); var selIndex = searchItem.getValue(); var url; switch (selIndex) { case 0: url = "/iw-bin/InternetMarketing/resourcecenter/itpd_findproduct.cgi" ; break; case 1: url = "/iw-bin/InternetMarketing/resourcecenter/itpd_findasset.cgi"; break; default: //Some default } //You may have to append necessary values you'd like to pass to your CGI here... //BTW, you can also add window features to set the dimension, menu visibility, etc. window.open(url,"_blank"); }</script>
I have url value from form api as below:urlpath = '/down.cgi?path='+ workarea_nm + '/' + var1 + '/' + var2 +'/';can I use this in cgi callout like this?see attachment