Skip to main content
Nintex Community Menu Bar

Populate String to Checkbox list

  • March 20, 2017
  • 10 replies
  • 61 views

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.

 

 

15975iE2DC1441EFDA31C1.png

 

10 replies

Albarghouthy
Forum|alt.badge.img+16

Hi TTN,


 


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


  • Author
  • March 21, 2017

It  just a regular string concat them together with ; separation 


Albarghouthy
Forum|alt.badge.img+16

  • Author
  • March 21, 2017

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

 

 


Albarghouthy
Forum|alt.badge.img+16

Hi,


 


 


If I understand correctly, you have those values already seperated but you want to display only 4 of them? if yes, then just modify your filter.


 


Go to the populate action and configure advanced condition in the filter tab, example:


 



 


If that doesn't help then you need to create stored procedure to retrieve the data you need.


 


 


  • Author
  • March 21, 2017

Thanks, Mustafa for your help.

 

However, My list string is dymanic, it can be 1 item or 10 or 20 items and so on.

And also the list value can be different all the time when I popup the subview.

Is there a way I can filter by seperate by semicolon ";"

 

Thanks 


Albarghouthy
Forum|alt.badge.img+16

Hi,


 


Unfortunately it's not possible, the only way I could think of is stored procedure.


 


 


  • Author
  • March 21, 2017

Thank again for your help.

I guess I have to build the smartobject list then store the data in it.


Albarghouthy
Forum|alt.badge.img+16
Is not an option to categorise these entries? Because I am not sure about your business requirements.

  • Author
  • March 21, 2017

Sorry, I am new to K2. I am not sure what do you mean by "categories" control. What control is this?

Do you have any example which I can look at

 

Thanks.