Message Boards

how to add/define column color 2018EE

Gergő Deák, modified 3 Years ago.

how to add/define column color 2018EE

Post Date: 3/10/19 (Bronze, 4 Posts) Recent Posts

Hi All,

Can I modify, add, define column color of a browse?

2018EE there is a standard browse which contains red column as you can see following the link:

https://imgur.com/XIGHoXm

browse: wobr081.p

Or can you please explain this feature why it appears only in this browse?

(f.e. if I copy this browse wobr081.p and only give new name the red-color column will disappear...)

So what are the conditions of this feature?

Thank you very much!

Kind Regards,

Gergő Deák

Robert Jensen, modified 7 Years ago.

Re: how to add/define column color 2018EE

The browse cell color is set by a program called "com/qad/shell/browse/wo081.r". When a browse (wo081 in this case) is run, the browse engine looks for this program.

The call signature is important. The handle to the browse results tab is sent in. There is a hidden field in the browse table called "local-variables.decoration_cell". This character field is a comma separated list of field names and status. The color for each status is set in client-session.xml.

Take a look at the program on your system and you will see how it is set.

Paulius Jucys, modified 6 Years ago.

Re: how to add/define column color 2018EE

Post Date: 9/3/19 (Bronze, 3 Posts) Recent Posts

Hi,

how can I change colors in client-session.xml ?

Didin't find any code based on colors setup so I assume there are 3 default colors:

Status_3 - green, warning - yellow and error - red.

This is possible to add new colors or change existing ones?

Regards

Paulius

 

Tomaz Ranzinger, modified 6 Years ago.

Re: how to add/define column color 2018EE

Post Date: 9/4/19 (Silver, 77 Posts) Recent Posts
@Robert, how to change color of browse cell depending of browse condition: for example, if qty falls under some level, we want red color of cell?
Robert Jensen, modified 6 Years ago.

Re: how to add/define column color 2018EE

There are 8 colors available.

"normal","info","warning","error","status_1","status_2","status_3,"status 4"

You can try them out and see the various colors.

 

 

 

 

 

 

 

Paulius Jucys, modified 6 Years ago.

Re: how to add/define column color 2018EE

Post Date: 9/5/19 (Bronze, 3 Posts) Recent Posts
@Robert, can I add new custom colors ?
Robert Jensen, modified 6 Years ago.

Re: how to add/define column color 2018EE

I'm sorry to say no, you cannot. You are limited to the 8 supplied.

 

Paulius Jucys, modified 6 Years ago.

Re: how to add/define column color 2018EE

Post Date: 9/8/19 (Bronze, 3 Posts) Recent Posts

@Robert

I can use 6 colors

Status_1 Status_2 Status_3 Status_4 error warning

how can I invoke last 2 ? Because u mentioned there are 8 collors supplied

Robert Jensen, modified 6 Years ago.

Re: how to add/define column color 2018EE

"normal","info","warning","error","status_1","status_2","status_3,"status 4"

However, normal is the default. So you really have 7 colors plus the default.

Message place holder