Skip to main content
17-Peridot
March 23, 2023
Solved

Add an attribute display field by "state"

  • March 23, 2023
  • 1 reply
  • 1547 views

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

 

Best answer by d_graham

@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

 

 

 

1 reply

d_graham18-OpalAnswer
18-Opal
March 24, 2023

@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

 

 

 

Dobi17-PeridotAuthor
17-Peridot
March 24, 2023

Yes! That is exactly right! 

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

18-Opal
March 24, 2023

@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.