on 08-21-2009 4:36 PM
Hi there,
I have a transaction that calls another transaction and the transaction call action block is named OPER_DATA.
When I look at OPER_DATA in the Logic Editor the OutputXML doesn't show any meta data, ROWSETS, etc.
How do I get the meta data about the output from the OPER_DATA transaction loaded into the calling transaction?
Thanks,
--Amy Smith
--Haworth
Hi.
If I understand the question right, the subtransaction includes an output parameter of type XML ? This should be set to a default XML of some kind, i.e. take some sample XML and insert this into the parameterdefinition of the XML output parameter. Then this default XML should appear within the caller transaction.
Or did I miss something in your question?
BR
Poul.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks.
You should remember to set the default XML empty or something similar. In case the transaction fails due to error, the default XML will be returned if I remember right (If you do not handle it in one way or another).
BR
Poul.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, as Christian mentions by using the Reference Document approach the hard-coded default value for the output parameter will not give you a problem if something goes amuk in the nested TRX like Poul mentions.
Amy - in your situation this is just design-time help you are looking for but for the runtime execution you can place an Assign block near the beginning of your TRX to properly initialize this XML output parameter to something more harmless than what you might have in your default value.
My recommendation would be to use the Ref Doc approach (which you need to use when calling a TRX as a webservice anyhow) and assign an object that leads to the output as the reference.
User | Count |
---|---|
8 | |
7 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.