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

Expression Binding syntax in Table

Former Member
0 Likes
1,457

Hi experts,


In my table it is showing the percentages under "OK" column, As per my requirement I need to validate the employee percentage.

  1. If employee percentage <  90, The value should display with Error  "Red"
  2. If  employee percentage > 90, The value should display with Success "Green"

As per my understanding need to use the expression binding we can handle this instead of formatter calling, Anyone of you please help on expression binding Syntax while using percentage ("%");

Expression Binding

{OK} is the filed its having the Percentages of employee. Please find the below screen snap for your reference.

Accepted Solutions (1)

Accepted Solutions (1)

saivellanki
Active Contributor
0 Likes

Hi Sravya,

Will this sample help? JS Bin - Collaborative JavaScript Debugging

Regards,

Sai.

Former Member
0 Likes

Thank you very much sai, issue resolved

Former Member
0 Likes

Hi Sai,

I need your help, instead of using the value state along with expression binding, I need to use our own custom css .

Help me on this , how can i add the custom css to formatters.

My requirement is instead of standard value state : "success" , "Error " , "warning" messages  . Need to show the custom colors.

@Thanks in advance,

Regards,

Sravya

agentry_src
Active Contributor
0 Likes

Hi Sravya,

With a new subject, please create a new Discussion.

Regards, Mike (Moderator)

SAP Technology RIG

Answers (1)

Answers (1)

padma_mundru
Participant
0 Likes

Hi Sravya,

follow below code. It may be helpful to you

<ObjectNumber number= "{OK}" state = "{= ${OK} > 90 ? 'Error': 'Success'}"/>

regards

Padma

Former Member
0 Likes

While using table how can you handle this

padma_mundru
Participant
0 Likes

Hi

Place below code instead of Label

<ObjectNumber number= "{Price}" unit="%" state = "{= ${Price} > 20 ? 'Error': 'Success'}"/>

regards

Padma

padma_mundru
Participant
0 Likes

Hi Sravya,

I have tried table control only.

Below is the code for your reference.

regards

Padma