Question
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***