|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to default value to zero in Messageset? |
« View previous topic :: View next topic » |
Author |
Message
|
Fuzzy_mq |
Posted: Thu Sep 15, 2005 9:20 am Post subject: How to default value to zero in Messageset? |
|
|
Apprentice
Joined: 27 May 2004 Posts: 31 Location: US
|
Hi,
I am converting CWF to XML. I have an attribute in xml as integer. The value in CWF is space. I want it to come as '0' in the xml. Basically if there is a value, it should take that else if space then default to zero. Is there some property in message set that I change to do this.
Thanks,
Scht |
|
Back to top |
|
 |
Fuzzy_mq |
Posted: Thu Sep 15, 2005 9:24 am Post subject: |
|
|
Apprentice
Joined: 27 May 2004 Posts: 31 Location: US
|
Forgot to mention, this is on WBIMB V5 |
|
Back to top |
|
 |
elvis_gn |
Posted: Thu Sep 15, 2005 8:03 pm Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
I dont think you can do if then conditional filling up of values in the message set...
What u could do is , by default fill in 0 always....and when u have some value SAT that in your ESQL....u'll save on a ELSE condition... |
|
Back to top |
|
 |
kimbert |
Posted: Fri Sep 16, 2005 12:21 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
You may be able to do this using the MRM's null handling features. Try this:
1. Go to the CWF physical properties of the attribute and set 'Encoding Null' to 'NullLiteralValue'. Set 'Encoding Null Value' to space.
2. Go to the XML physical properties for the message set. Set 'Encoding Numeric Null' to 'NullValue' and set 'Encoding Numeric Null Value' to '0'.
You should find that
- the space becomes a null value in the tree, because of the CWF settings.
- the null value in the tree becomes a '0' in the XML output because of the XML settings.
Note that, because the XML null handling properties apply to the entire message set, any explicit nulls in your tree will now become '0' in your XML output. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|