How can i change the color of a label object (in a repeatbox row)? I would like to change the object's value if it is less than zero. Smartface should offer us some ease to do.
I draged and droped all page's objects and used webclient wizard. I tried to do something in onRowRender
event but i could not get label value for each row. How can we access row objects programmatically in smartface app studio?
You can change the color of the Label object in repeatbox onRowRender function.
onRowRender first write this code to catch the index of your Dataset:
Now by seeking e.rowIndex, you get the same index from your Dataset. After that you can write an if block to check if Label's value less than 0 for every row.
Your rowRender function will be like this:
Smartface.io Team