Hello, everybody
I'm actually creating an interface between SC6 and a third party workflow tool. The tool writes directly on EVENTINM1, and instead of populating the field evfields with positional data separated by "^", it writes XML text.
The first RAD expression to be evaluated (when a new record of this type arrives) takes the XML and calls a Javascript function that parses it.
For instance, the following XML
<xml>
<name>Hilton</name>
<email>hilton@com.com</name>
</xml>
is parsed into two Javascript statements, which are evaluated using eval() function:
system.vars.$xml.name="Hilton"
system.vars.$xml.email="hilton@com.com"
I've set some prints, and the attributions do occur without problems. But back in the RAD expressions, when I inspect the variables, both are empty :-(
How can I make the variables created within JS available to the RAD expressions ? Checking the "Service Center Programmer's Guide", it mentions assigning variables from within the Javascript of Format Control, and it does work - but doesn't meet my needs...
Best regards,
Hilton


Reply With Quote


Bookmarks