Page 1 of 1

2D Array with Button Group?

PostPosted: Tue Mar 14, 2023 2:41 am
by john1598360627
I have a dataprovider column that is numbers. I want to convert these numbers into a display text so it's more readable for the user. However, I also want this data to be connected to a Button Group so the user can change the data in that column.

The problem is that the Button Group only takes a valuelist.

Is there a way to make the valuelist a 2D array where one column is the real value, and the other is the display text? And then, how would that be setup into an actual Input Group / Button Group?

ie

real value vs display text
[ 0, 'None' ],
[ 1, 'Read Only' ]

Re: 2D Array with Button Group?

PostPosted: Tue Mar 14, 2023 10:10 am
by mboegem
Hi John,

if you create a valuelist having 'Custom Values' being entered like below, that should do the job.
Also mind the real value type setting of the valuelist being integer.
Code: Select all
None|0
Read Only|1

Re: 2D Array with Button Group?

PostPosted: Wed Mar 15, 2023 11:26 pm
by john1598360627
mboegem wrote:Hi John,

if you create a valuelist having 'Custom Values' being entered like below, that should do the job.
Also mind the real value type setting of the valuelist being integer.
Code: Select all
None|0
Read Only|1

That seemed to work! Thank you!