Posted: Wed May 16, 2007 12:33 pm Post subject: Trim to required length in CWF Message Set
Novice
Joined: 19 Dec 2006 Posts: 15
Is there any option to trim for required length in CWF Message Set.
For eg:
There is a field called "Name" in Output MRM (CWF format):
Name Length(15) String
In esql:
OutputRoot.MRM.Name = InputRoot.MRM.XXX.Name
Since Input MRM is a XML format it can be of any length i.e. more than 15
If the input is more than 15, the above line throws exception due to exceeding the length in CWF.
To avoid this it can be coded as:
OutputRoot.MRM.Name = Substring(InputRoot.MRM.XXX.Name from 1 for 15)
I have more fields like this, do I need to use Substring for each field.
I would like to know instead of controlling thru coding, is there any properties in message set to trim for required length.
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