35
Views
3
Comments
Solved
How to display the value of stock
Question
Service Studio Version
11.53.14 (Build 61243)

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:

2021-06-02 20-50-04
Márcio Carvalho
Solution

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

UserImage.jpg
Rhyz Dela Cruz

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.


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.