I am trying to update an attribute of a WTDocument.
I assume I have to Check it out first, then Update the Attribute and finally Check it in again.
My Checkout work fine:-
<ie:webject name="CheckOut-Objects" type="ACT">
<ie:param name="INSTANCE" data="$(@FORM[]supporting-adapter[*])" delim="!" valueseparator="!" default="<%=com.infoengine.au.NamingService.getVMName()%">"/>
<ie:param name="TYPE" data="wt.doc.WTDocument"/">
<ie:param name="WHERE" data="number=LM0000007428"/">
<ie:param name="WHERE" data="version=1"/">
<ie:param name="GROUP_OUT" data="docs"/">
</ie:webject>
My Update doesnt :-
<ie:webject name="Update-Objects" type="ACT">
<ie:param name="INSTANCE" data="$(@FORM[]supporting-adapter[*])" delim="!" valueseparator="!" default="<%=com.infoengine.au.NamingService.getVMName()%">"/>
<ie:param name="TYPE" data="wt.doc.WTDocument"/">
<ie:param name="OBJECT_REF" data="obid=${docs[0]obid[0]}"/">
<ie:param name="FIELD" data="Originator=FRED"/">
</ie:webject>
Where Originator is the Logical Identifier of the IBA.
This fails with:-
<wc:collection xmlns:wc="<a" href="http://www.ptc.com/infoengine/1.0">http://www.ptc.com/infoengine/1.0">
<exception name="Exception" type="Exception" status="-1">
<wc:message>wt.services.applicationcontext.UnableToCreateServiceException: Unable to create service named "wt.fc.QueryStringDelegate" with requestor "null" and selector "obid=VR". Nested exception is:
java.lang.InstantiationException
Nested exception is: wt.services.applicationcontext.UnableToCreateServiceException: Unable to create service named "wt.fc.QueryStringDelegate" with requestor "null" and selector "obid=VR".
Nested exception is: java.lang.InstantiationException; nested exception is: wt.util.WTException: wt.services.applicationcontext.UnableToCreateServiceException: Unable to create service named "wt.fc.QueryStringDelegate" with requestor "null" and selector "obid=VR". Nested exception is:
java.lang.InstantiationException
Nested exception is: wt.services.applicationcontext.UnableToCreateServiceException: Unable to create service named "wt.fc.QueryStringDelegate" with requestor "null" and selector "obid=VR".
Nested exception is: java.lang.InstantiationException</wc:message>
<wc:instance>
<hierarchy>com.infoengine.util.IEException</hierarchy>
<hierarchy>javax.servlet.jsp.JspException</hierarchy>
<hierarchy>java.lang.Exception</hierarchy>
<hierarchy>java.lang.Throwable</hierarchy>
<hierarchy>java.lang.Object</hierarchy>
</wc:instance>
</exception>
</wc:collection>
Can anyone help please ?
Many thanks Martin - works fine.
However the CheckOut fails when documents have embedded spaces in their Number - does anyone know if there is an 'escape' character or some other method of forcing the spaces through ?