Skip to main content
1-Visitor
Mar 2, 2017 9:07 AM UTC
Question

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

10-Marble
Mar 2, 2017 4:35 PM UTC

May I know how did you achieve this?

Translate
12-Amethyst
Mar 3, 2017 1:00 PM UTC

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

Translate
ShirishMorkhade
16-Pearl
Mar 23, 2017 11:41 AM UTC

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

Translate
15-Moonstone
Mar 29, 2017 7:59 AM UTC

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

Translate