Posted: Thu Apr 28, 2011 11:04 am Post subject: Message set 6.1 for integer element
Centurion
Joined: 01 Aug 2010 Posts: 101
I am using the message set which is having one local element name ID_NBR datatype as xsd:integer,length as 5 with default value of the local element as 0 in MB6.1 .
using MRM domain for output root which is parsed against message set .
code
Set OutputRoot.MRM.PRTCode.ID_NBR = cast(Environment.variables.NBR as Integer)
The Environment.variables.NBR value is actually '11779'
I agree with Vitor. Make sure that it is a debug-level user trace.
I suspect that your OutputRoot structure does not match the structure of the message definition. The user trace will tell you whether that guess is correct.
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
vijayakumar wrote:
now the output is coming correctly as "11779"
Well done you.
If you'd checked the assignment in a debug level user trace you wouldn't have had to guess (or get my illustrious associate to guess) what the problem was.
It's a useful thing to familiarise yourself with. _________________ Honesty is the best policy.
Insanity is the best defence.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum