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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Object reference attribute

skuppamohanram
11-Garnet

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?

4 REPLIES 4

May I know how did you achieve this?

KD
12-Amethyst
12-Amethyst
(To:skuppamohanram)

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

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

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%20link&ProductFamily=Windchill%7CWPA&source=search

Announcements

Top Tags