Question

8
Replies
680
Views
PetarHR Member since 2018 13 posts
Louis Dreyfus Company
Posted: 1 year ago
Last activity: 1 year 3 months ago
Closed
Solved

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 Interface
Moderation Team has archived post
Share this page LinkedIn