AnsweredAssumed Answered

GEL script to add custom information

Question asked by OrlinTwo on Oct 7, 2010
Latest reply on Oct 28, 2010 by Patrick Cooper

I am writing a GEL script that will insert ColumnValue tag into an existing CustomInformation tag that is part of an instance of a project in XML form.

The problem I'm encountering is that the inserted tag appears after an Instance tag that exists in the CustomInformation tag, as below:

<ColumnValue name="obj_align_factor1">75</ColumnValue>
<instance instanceCode="SR10I7" objectCode="catsprjstatusrep" parentInstanceCode="PR1029" parentObjectCode="project">
<ColumnValue name="ca_inv_company">XYZ</ColumnValue> <!-- new entry that was inserted -->

When I run the script (or XOG the resulting XML) I get the following exception error:
tag name "ColumnValue" is not allowed. Possible tag names are: &lt;instance&gt;

So my question is this: is there a way to force the insertion to occur before the instance tag? Or is there another way to handle this kind of update/insertion?