Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
TeamSite
TeamSite, LiveSite and OpenDeploy
cgi-callout not updating value ?
System
Hello,
I am using a CGI callout to allow people to select an item from a drop-down list, the target field is properly updated with the selected value in the datacapture.cfg (on the screen) but when I save the DCR and the open it again or when I preview it, it's still the old value that is visible and not the updated one. I think I'm missing something in the javascript of the perl script :
PS: getSelectedItem() returns the value selected in the drop down list.
PPS: it's the function bgc_doSubmit() that is called first
function check_datacapture() {
if ((window.opener == null) || (window.opener.closed)) {
return false;
}
if (!opener.top.datacapture) {
return false;
}
var calloutForm = eval($iw_form_name);
if (!calloutForm) {
return false;
}
return true;
}
function bgc_doSubmit() {
if (check_datacapture()) {
${iw_form_name}["${iw_callback_var}"].value = getSelectedItem();
opener.top.datacapture.refreshItem('${iw_callback_var}');
// opener.top.datacapture.refreshForm();
}
else {
alert('Fatal callout error. Did you close the datacapture window?');
}
self.close();
}
Anyone can help please ??????
Find more posts tagged with
Comments
There are no comments yet