Skip to main content
12-Amethyst
October 28, 2024
Question

How to get a custom User Picker datautility as object reference in advanced search?

  • October 28, 2024
  • 2 replies
  • 718 views

Version: Windchill 12.1

 

Use Case: How to get a custom User Picker datautility as object reference in advanced search?


Description:

RG_11025060_0-1730116793206.png

PR Owner is a custom data utility, which gets string url of a WTUser and displays as a link in the UI.
Is there a possibility to get this IBA as a user picker like the 'created by' , instead of a plain text field?

2 replies

avillanueva
23-Emerald I
23-Emerald I
October 28, 2024

Can you re-write this clearer? Are you saying that PR Owner is a custom IBA? Or have you already linked a custom data utility to this IBA value? Try turning on jcaDebug=true

1102506012-AmethystAuthor
12-Amethyst
October 28, 2024

I created a Global Attribute(String), and implemented a custom data utility extending the default Data utility class.
then I created an attribute on Problem Report called PR Owner based on the Global Attribute, and then added it to the Problem Report Layout. So, now I can use it as a UserPicker field on Create/Edit screens, and in View mode I'm returning that as a Hyperlink by taking the user ID and forming a URL.

My question is, this PR Owner(being a String) is a free text field in Advanced Search. Can I get it as a user picker in Advanced Search too?

18-Opal
October 28, 2024

@11025060 , not sure if you are aware of this but "Owner" is an OOTB attribute, and it does include the functionality you are looking for.

 

Note, only attributes, such as Owner, are visible is you select only Object Types that have "Owner" attribute.  If you select two types and one has Owner attribute and one does not have that attribute, Owner will not be available for searching.

 

You might already know all of this, but maybe not.

 

d_graham_0-1730120153500.png

 

1102506012-AmethystAuthor
12-Amethyst
November 4, 2024

Hi @d_graham 

I'm looking to for a custom attribute, as I need it on other Object types too. In this case, PR Owner is just an example of how I need it. Thanks!