Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Select 2 display in Browse form Topic is solved

Questions related to using nuBuilder Forte.
Post Reply
nc07
Posts: 118
Joined: Tue Jun 04, 2019 4:05 am
Has thanked: 5 times
Been thanked: 22 times

Select 2 display in Browse form

Unread post 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?
kev1n
nuBuilder Team
Posts: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: Select 2 display in Browse form

Unread post 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?
nc07
Posts: 118
Joined: Tue Jun 04, 2019 4:05 am
Has thanked: 5 times
Been thanked: 22 times

Re: Select 2 display in Browse form

Unread post 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
kev1n
nuBuilder Team
Posts: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: Select 2 display in Browse form

Unread post 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')
nc07
Posts: 118
Joined: Tue Jun 04, 2019 4:05 am
Has thanked: 5 times
Been thanked: 22 times

Re: Select 2 display in Browse form

Unread post 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
kev1n
nuBuilder Team
Posts: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: Select 2 display in Browse form

Unread post by kev1n »

If the values are stored in an other table:

viewtopic.php?p=16613
nc07
Posts: 118
Joined: Tue Jun 04, 2019 4:05 am
Has thanked: 5 times
Been thanked: 22 times

Re: Select 2 display in Browse form

Unread post 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
nc07
Posts: 118
Joined: Tue Jun 04, 2019 4:05 am
Has thanked: 5 times
Been thanked: 22 times

Re: Select 2 display in Browse form

Unread post by nc07 »

Thanks, Kevin, Both the suggestions worked well. Best Regards.
Post Reply