IF InputRoot.XMLNSC.Msginfo.Attributes.Msgship[].supplier = '333' THEN
IF InputRoot.XMLNSC.Msginfo.Attributes.Msgship[].Ctry[].ind = 'yes' THEN
IF InputRoot.XMLNSC.Msginfo.Attributes.Msgship[].Ctry[].dim[].obj = 'PACK' THEN
SET Environment.Varible.ItemInfo[].Height = ----
SET Environment.Varible.ItemInfo[].weight = ----
END IF;
END IF;
END IF;
Please correct with correct code to access particular element among unbounded.
If you dont where in the repeating group the "structure" you are looking for is then use a FOR loop something like
FOR loopref AS InputRoot.XMLNSC.Msginfo.Attributes.Msgship[] DO
If loopref.supplier = '333' AND loopref.ind = 'yes' AND loopref.Ctry.dim.obj = 'PACK' THEN
SOME OTHER ENVIRONMENT SETTING CODE.....
END IF
END FOR
From your message exampkle there is no need for the array [] situation for some of these elements as thre is only one occurence in that Msgship structure
Alternatively use a slect statement if you want to filter something like
SET Environment.Variables.save = (SELECT A.length FROM inputroot.......Msgship[] AS A where A.supplier = '333' and A.Ctry.ind = 'yes' and A.Ctry.dim.obj = 'PACK'
You can then check your saved variable in Environment to see that you got any results.
There are many ways to do this suggest look at some of the example supplied with the toolkit or scour the forum for FOR loops or whatever code snippets, whilst reading the manual to understand what it is doing
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