Home Forum Blog Market Events Resources
Showing results for 
Search instead for 
Do you mean 
Highlighted
TTN
Occasional Contributor
Posts: 10
Registered: ‎02-02-2017

Popluate String to Checkbox list

Hi,

 

I have a string like this Activation;CNPE;Conflict of Interest;Contract/Budget; from the view

and I want to load it into the checkbox list (subview LIke a picture below), Can someone tell me how do I do that.

thanks for you help.

checkboxlist.png

Valued Contributor
Posts: 631
Registered: ‎08-27-2014

Re: Popluate String to Checkbox list

Hi TTN,

 

What is your data source type? are you pulling the data from SQL?

Best Regards,
------------------------------------------------
Mustafa Al-Barghouthy
TTN
Occasional Contributor
Posts: 10
Registered: ‎02-02-2017

Re: Popluate String to Checkbox list

It  just a regular string concat them together with ; separation 

Valued Contributor
Posts: 631
Registered: ‎08-27-2014

Re: Popluate String to Checkbox list

[ Edited ]

Hi,

 

I though you could use stored procedure as data source of the checkbox list to split the string for you and return it as list:

 

examples:

http://stackoverflow.com/questions/23089579/how-to-separate-split-string-with-comma-in-sql-server-st...

http://community.k2.com/t5/K2-blackpearl/Populate-drop-down-with-each-item-from-picker-control/m-p/8...

Best Regards,
------------------------------------------------
Mustafa Al-Barghouthy
TTN
Occasional Contributor
Posts: 10
Registered: ‎02-02-2017

Re: Popluate String to Checkbox list

Thanks, Mustafa.

 

To get around, I did repopulate the listview with the orginal smartobject list, then I set the filter.

If I set filter Operator to "equal" and Value to CNPE then it work, it display one item for me.

Howerver if I set the fitler Operator to "contain" and value to "Activation;CNPE;Conflict of Interest;Contract/Budget;" then nothing happen.

The result I want is 4 checkboxlist display on the screen. Is there away to fitler anything like this.

 

Thanks