I have an entity product that has a column for stock. the stock column has boolean values of true or false. I want the screen to display the value of the stock if true then it should show "Yes" or "None" otherwise.
please include visuals in the explanation if possible.
Thank you.
here is the output screen:
So, you create an expression, and inside of the value, you put if(stock=true, "yes","none") if you have the stock value and you know where it is, you need to get the value and use don't he condition inside of the expression widget.
ps: The stock value you can find in the aggregate
Thank you for helping me out. I have another question related to this.
I want the HasStock column to depend on the stock column. if stock is > 0 then HasStock = true, else false. But I cannot find how to put expression on data.
This question has been answered in your another question. Please have a look - https://www.outsystems.com/forums/discussion/81195/how-to-depend-the-value-of-data-in-one-column-from-another-column/