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

Object reference attribute

Highlighted

Object reference attribute

Hello,

I have created ObjectReference attribute for WTPart which refers to WTDocument (other Side class: wt.doc.WTDocument and otherside attribute : number), but in create part wizard this attribute shows as "unassignable". How to to display dropdown list of Document instances?

Tags (1)
4 REPLIES 4
Highlighted

Re: Object reference attribute

May I know how did you achieve this?

Highlighted

Re: Object reference attribute

Hi Sarvanan,

You can follow below steps.

  • Create an IBA of String type in WTPart.
  • Use an custom data utility to create Document Picker or Dropdown list of existing document.

Regards,

Kaushik

Highlighted

Re: Object reference attribute

Hi Saravanan Kuppa Mohanram & Shashikantha Shankaracharya,

Just like @Kaushik said, you can create IBA and then hook data utility. I believe when says Data Utility, he is referring to SuggestTextBox.

I recently worked on SuggestTextBox. In this you will have to create a suggestion class (implementing Suggestable interface) which would basically do the query. This class should be registered as a service, This service could be called from suggestTextBox wrapper tag.

Something like this: datautility for a non single-value constraint attribute

In Windchill installation there are some example provided there at http://YOUR_WINDCHILL/Windchill/app/#ptc1/carambola/customization/examples/picker/suggest

I hope this helps you!

Regards,

Shirish

Highlighted

Re: Object reference attribute

If you want to create an association between WTDocument and WTPart, you may take a look at configurables links :

https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS156972&art_lang=en&posno=1&q=configurable...

Announcements