I see a similar issue. the onchange event is not registered when you populate fields using a callout. I feel this should be a bug..
I feel this should be a bug..
so you're best bet is to call your event handler functions yourself after populating the fields via the callout.
But I don't think there is such a method or function, right?
Lot's of various System Designers would disagree. Matter of fact, none of the GUI I recall fired onChange Eventwhen a field was changed programmatically. That includes Windows, X Window, JavaScript, Forté, VB, to name a few.(Some systems allow you to "Force Fire" certain events programmatically. I consider that a separate issue. You stillhave to code for it). Pros and cons of such designs are debatable, my only point is that declaring it a bug (or even "IWOV Bug"!) maybe a bit premature.
Good find.. Well, i agree, even I have not seen many systems recognising this and this should be considered a FR. My only point was that it is there and biting .. :-)
...you're best bet is to call your event handler functions yourself after populating the fields via the callout
Take a look at IWItem.isValid(), IWItem.setValid(), IWDatacapture.setHighlightMode() and and IWDatacapture.displayMessage()
Hi Boris,I'm aware of these FormAPI functions but I don't see a way of calling any of them from my Perl callout. Since this callout generates HTML and JS out of the "regular" DCT I don't have access to these FormAPI-specific functions.All I get when I try to call let's say setValid() is the following JS error: "calloutForm.elements.setValid is not a function"
var api = opener.top.getScriptFrame();if (api) { api.YourCallback_0(...); api.YourCallback_1(...); ...}else { alert("Oh, Oh...");}