Hello,
I have a query that is based on DOM data.
I want to make an extra column in the table with a value based on the values of one of those DOM data columns.
For example:
If DOM Column Status is equal to "New" or "In progress" I want the new column to display "Busy"
Otherwise (else) it should show "Done"
How do I do this?
Mieke Dryepondt [SLC] [DevOps Advocate] Selected answer as best 19th July 2023
Sounds like a job for a Custom Operator.
The docs should be able to guide you through it completely. Let us know if we can improve somehow.
Mieke Dryepondt [SLC] [DevOps Advocate] Selected answer as best 19th July 2023
Hi Mieke,
I believe a good example will be the following GQI operator available in GitHub:
https://github.com/SkylineCommunications/SLC-GQIO-PercentageCalculation/blob/main/PercentageCalculation_GQIO/PercentageCalculation_GQIO_1/PercentageCalculation_GQIO_1.cs
This custom operator requires two input arguments. In your case, you will need only one. The HandleRow method will need to be updated to take into account the if-else logic that you are planning to implement.
Hope it helps.