Table cels Background color
Good morning,
I would like to create a rule so that the background is green when the indication is 'NO' and green when the indication is 'YES'. I saw that NINOX provides this for sub-tables, but not for tables.
Does anyone have a solution?
Thanks in advance and have a nice day everyone


5 replies
- 
  Hi Didier, if I understand right it should be the following code if 'Gérer en stock' = 1 then 
 styled(text('Gérer en stock'), "Red", "", "")
 else
 styled(text('Gérer en stock'), "Green", "", "")
 endalternatively, if you like to chose color by RGB you can use the following code: let green := color("rgb(156,255,181)"); 
 let text_clr := color("rgb(255,255,255)");
 let red := color("rgb(255,145,135)");
 if 'Gérer en stock' = 1 then
 styled(text('Gérer en stock'), green, text_clr, "")
 else
 styled(text('Gérer en stock'), red, text_clr, "")
 endI hope that this will work for you. Cheers Kruna 
- 
  Thank’s Kruna Finally it's very simple, I expected a more complicated solution. 
 I just inverted the colors (via "if" which I placed at "0" earlier than at "1" .Thank you so much. On the other hand, the title of the column has disappeared and is replaced by the formula.  
Content aside
- Status Answered
- 2 yrs agoLast active
- 5Replies
- 176Views
- 
    2
    Following
    

 
         
        