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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Add an attribute display field by "state"

Dobi
14-Alexandrite

Add an attribute display field by "state"

Bit of a long shot but does anyone know if it's possible to add a custom field by the state (in the top right, under "Recently Accessed") that I can map a business attribute to so that it's displayed there? 

 

Dobi_0-1679611827791.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
d_graham
17-Peridot
(To:Dobi)

@Dobi , the short answer is yes, this is very doable.  See second image below.

 

I did something similar.  In my case I added and alert to show the object is on an active Promotion Request.

What I did was add a yellow background color and included the text " - Active Promotion Request: <PR number and name>.

d_graham_0-1679621993218.png

 

In your case you're looking for something like this:

I hard coded "Some Attribute Value".  Getting an attribute's value and displaying it rather than "Some Attribute Value" would be no problem.  In fact, you could display anything that it is possible to navigate to from the object.

d_graham_0-1679627645553.png

 

Same thing with an attribute's value being displayed.

d_graham_1-1679629187161.png

 

 

 

View solution in original post

4 REPLIES 4
d_graham
17-Peridot
(To:Dobi)

@Dobi , the short answer is yes, this is very doable.  See second image below.

 

I did something similar.  In my case I added and alert to show the object is on an active Promotion Request.

What I did was add a yellow background color and included the text " - Active Promotion Request: <PR number and name>.

d_graham_0-1679621993218.png

 

In your case you're looking for something like this:

I hard coded "Some Attribute Value".  Getting an attribute's value and displaying it rather than "Some Attribute Value" would be no problem.  In fact, you could display anything that it is possible to navigate to from the object.

d_graham_0-1679627645553.png

 

Same thing with an attribute's value being displayed.

d_graham_1-1679629187161.png

 

 

 

Dobi
14-Alexandrite
(To:d_graham)

Yes! That is exactly right! 

Can you point me to some documentation to getting this setup? 

d_graham
17-Peridot
(To:Dobi)

@Dobi it would be much easier to work with you to implement it.  The code is done, I just need to know the attribute's internal name and if you need this on all object types of just some.

Maybe this is only for WTParts or WTDocuments?

Or maybe all objects as long as the attribute has a value?

Or all objects and if attribute has no value apply a default display?

 

How much to you know about Java?  Nothing, a little, a lot?

I can show you how to figure this kind of stuff out for other uses too.

d_graham
17-Peridot
(To:Dobi)

@Dobi 

I did not use any documentation to do this. I just figured it out.

 

That said, I can teach you the method to the madness.

Top Tags