Petar Hristozov (PetarHR)
Louis Dreyfus Company
Senior Developer LowCode & Pega
Louis Dreyfus Company
PetarHR Member since 2018 15 posts
Louis Dreyfus Company
Posted: July 10, 2019
Last activity: July 17, 2019
Posted: 10 Jul 2019 10:07 EDT
Last activity: 17 Jul 2019 10:34 EDT

Highlighting a row thru Inline style - how to check if property has a value

Hi Team,

We have a section displaying a table. The table has it's columns dynamically sourced thru a report. In our application we also have two properties for a price field - numeric and text.

We are working on a requirement to highlight the rows which have only text price listed and no numeric price.

In similiar community post I found that we can use the below as inline style for the section:

<%=tools.getProperty(".pyID").getStringValue().startsWith("DXC") ? "background-color: red;" : "" %>

to highlight the specific row that has case ID starting with DXC, for example.

What method can I use to see if a property has a value or not? I need the activity to check if .NumericPrice property has a value in pyWorkPage for the specific item.

Kind Regards,

Petar Hr.

***Edited by Moderator: Lochan to update platform capability tags***

Pega Platform Reporting User Experience
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.