Posted: Mon Feb 06, 2006 1:28 pm Post subject: eSQL
Chevalier
Joined: 17 Jan 2006 Posts: 475
Hi All
I am trying to create some fields and using the following code but it not working.
It is creating "name" but not "value".
Code:
SET OutputRoot.XML.Publish.Item.Data.ItemAttr[1].(XML.Attribute)name = 'NUMBER';
DECLARE cursor1 REFERENCE TO OutputRoot.XML.Publish.Item.Data;
CREATE FIELD cursor1.ItemAttr[1].Attr.(XML.Attribute)"value";
SET cursor1.ItemAttr[1].Attr.(XML.Attribute)"value" = FIELDVALUE(InputRoot.XML.Product.ProductID);
By the way, if InputRoot.XML.Product.ProductID IS NULL (not in input message, typing error, ...) you will see no attribute value in your message, cause its deleted.
Perform a debug trace of your message flow to see what it does.
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