We can call any IPL from datacature using callserver... but Is there any other way to call an IPL on onSave event of form handler.. without using callserver?Thanks & Regards,Nitesh
We can call any IPL from datacature using callserver... but Is there any other way to call an IPL on onSave event of form handler.. without using callserver?Nitesh
We can call any IPL from datacature using callserver... but Is there any other way to call an IPL on onSave event of form handler.. without using callserver?
It depends on what you're trying to do - if you want to run a script after the DCR has been saved and closed - you cn look at workflows and/or iwat triggers. If you need to do it within the confines of editing the DCR - no, there's no other way.
N case we are using callserver..var parameters = new Object();var item = IWDatacapture.getItem("/Taxonomy");var nodeValue = item.getValue();parameters.Taxonomy = item.getValue();IWDatacapture.callServer("/iw-bin/checkTaxonomyNodes.ipl", parameters, true);Is above the correct way of passing parameters... Also tell me how to retrieve this parameter in checkTaxonomyNodes.ipl??
I'm using below code in checkTaxonomyNodes.ipl for getting parameter value..$q = new CGI; my $taxonomyNodes = $q->param("parameters");but it's giving me null value.. can you please suggest how to get this parameter value in IPL..Thanks & Regards,Nitesh
var parameters = new Object();var item = IWDatacapture.getItem("/Taxonomy");var nodeValue = item.getValue();parameters.Taxonomy = item.getValue();
my $q = CGI->new();my $taxonomyNodes = $q->param("Taxonomy");
Ok... Let me try to find out the solution...One more problem we are getting with callout scripts.. [html][/html]In above code the IPL (taxonomytest.ipl) is setting a numeric value to calling text field but when we are trying to save this form it's giving error "Required fields have not been filled" for Taxonomy... Once we click explicitly in the text field, it works fine... this problem we are facing with all last callout of each form... I'm not sure whether it's a bug or we need to do some configuration for this...Thanks & Regards,Nitesh
You need to read the manuals and search the forums a bit more - if you're running this CallServer during an onSave event it's your responsibility to get all the standard parts of the save process called correctly in the proper order - otherwise the system assumes you've taken care of things your own way and won't try to prompt for anything.To begin with you're going to have to explicitly return 'false' after you do the CallServer - and the script you use for CallServer will then have to invoke some "callback" function to continue the save procecssing.CallServer, and its affect on other code, is probably the most complicated aspect of working with FormAPI - so take your time doing the research because you're going to need to spend a bit of time figuring out how all the pieces work together.
you said I can explicitly return 'false' after callserver.. can you tell me how to do it with IPL... I mean if I need to return true or false from IPL which I'm calling from callserver.. how to do this?Thanks & Regards,Nitesh