How Split String Seperated with comma

0
how we get words separated by input string  for example  my input is  ‘Option1, Option2, optinn3’ this is my input in the input it is words separeted by ‘,’ (comma) what is the process to get words as separate string in dropdown (Refrence Selector) list ex. dropdown Value = option1, option2, option3 (Single Select)        dropdown=option1                              option2                              option3 
asked
2 answers
0

Hi Shubham,

 

You could use replaceAll($string, ",")

Here is a documention from all string funtions

https://docs.mendix.com/refguide/string-function-calls/

 

Hope this Helps,

 

 

answered
0

Hi Shubahm ,

 

In community commons module there is a java action “String Split”. You can use this java action to split your input .

 

For more details, you can refer below doc

https://docs.mendix.com/appstore/modules/community-commons-function-library/#39-stringutils

answered