Page 1 of 1

Select 2 display in Browse form

Posted: Fri Feb 25, 2022 8:09 am
by nc07
Hi,

How can i display select 2 multiselect data. At the moment it displays in array format eg

Code: Select all

["0","1"]
.

i want it to display as 0,1 etc only. How can this be achieved?

Re: Select 2 display in Browse form

Posted: Fri Feb 25, 2022 8:20 am
by kev1n
Hi,

How many distinct values are there? Are they stored a list 0|something|1|something2 or retrieved by SQL from another table?

Re: Select 2 display in Browse form

Posted: Fri Feb 25, 2022 8:59 am
by nc07
kev1n wrote: Fri Feb 25, 2022 8:20 am Hi,

How many distinct values are there? Are they stored a list 0|something|1|something2 or retrieved by SQL from another table?
At the moment two values and its a stored list

Re: Select 2 display in Browse form

Posted: Fri Feb 25, 2022 9:14 am
by kev1n
If it's just 2 values, do a replace

E.g.

Code: Select all

REPLACE(REPLACE(your_column,'1','something'),'2','something else')

Re: Select 2 display in Browse form

Posted: Fri Feb 25, 2022 9:16 am
by nc07
kev1n wrote: Fri Feb 25, 2022 9:14 am If it's just 2 values, do a replace

E.g.

Code: Select all

REPLACE(REPLACE(your_column,'1','something'),'2','something else')
How is it achievable if there are more than 2 values

Re: Select 2 display in Browse form

Posted: Fri Feb 25, 2022 9:17 am
by kev1n
If the values are stored in an other table:

viewtopic.php?p=16613

Re: Select 2 display in Browse form

Posted: Fri Feb 25, 2022 9:40 am
by nc07
kev1n wrote: Fri Feb 25, 2022 9:17 am If the values are stored in an other table:

viewtopic.php?p=16613
Thanks for your quick response, i will try your suggestions and let you know how it goes.

Thanks Kevin

Re: Select 2 display in Browse form

Posted: Mon Feb 28, 2022 5:37 am
by nc07
Thanks, Kevin, Both the suggestions worked well. Best Regards.