206
Views
2
Comments
Solved
[OutSystems Data Grid Web] Display Boolean Value as Y/N
outsystems-data-grid-web
Web icon
Forge asset by OutSystems

Just wondering if I have the backend data in a SQL Server table as bit data type. How do I format the grid to show 0 as N and 1 as Y?

2021-02-02 11-55-27
Tushar Panpaliya
Solution

As Jack suggested, the simplest option would be to use an IF statement. You can put it in the rest service itself while assigning the value so that it sends a Y or N instead of 0/1. 

UserImage.jpg
Jack.Wong

Hi George, 

You can use IF() in side the Expression, hope it can help you, thanks


Example:

If(GetDatabase.table.Ischecked = 1, "Y", "N")

2021-02-02 11-55-27
Tushar Panpaliya
Solution

As Jack suggested, the simplest option would be to use an IF statement. You can put it in the rest service itself while assigning the value so that it sends a Y or N instead of 0/1. 

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