cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

We are happy to announce the new Windchill Customization board! Learn more.

Update-Objects Webject - updating a Document Attribute

iwebb
2-Guest

Update-Objects Webject - updating a Document Attribute

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="&lt;%=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="&lt;%=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="&lt;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 ?

3 REPLIES 3

object_ref goes without obid=

hth, martin

iwebb
2-Guest
(To:iwebb)

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 ?

tbusch
1-Newbie
(To:iwebb)

Hey guys, have you seen this post made about two months ago?


Top Tags