Solved

radio button with value 1 or 2

  • 6 December 2017
  • 2 replies
  • 26 views

Badge +8

I have a list of record

Name   Active

Jen        1 = active

Don       0 - inactive

Mark     0  - inactive

John     1 - Active

 

I want to have a grid where  I can add and edit rows where the active column with a default value of (1,0)  should reflect a display of (Active, Inactive)

 

 

Really appreciate.

icon

Best answer by Dabuskol 7 December 2017, 07:49

View original

2 replies

Badge +9

Hello Dabuskol,

 

To Achieve this you need to use Expression.

 

In the ListView's Active Column, add an expression using an if condition (Which you can drag from Context Browser  Logical Operators) in the first box you need to drag the Active Column from SMO and then drag Equals operator from Logical Operators and then in Second text box enter 1 and in third textbox enter Active and in 4th Textbox enter Inactive. That's it ..Click ok and execute. You should see Active & Inactive Text in place of 1 and 0.

 

Let me know if it works..

 

Regard

Badge +8

Thanks for the response and idea but it doesn't work on me.

 

I changed the control to dropdown list, create a reference smart object for 1=Yes, 0=No. Then it worked.

I did also for editing/update.

 

For saving or editing, I created a rule since my column is number that when dropdown contains yes then 1 else 0.

 

So far so good. Happy since I am new to K2.

Reply