21
Views
5
Comments
Solved
How to display the String Split list?

I got a string using GetRequest_Submit. The string has data separated by a comma. 

I'm trying to use String_Split to get the list with the data separately. 

I checked the local variable that has the string content in the "Text" property and in the "Delimiters" property I put "," But I was unable to see the result of the stratified list on the screen. 

I display the string with the data with commas. But the split string is not working or I was unable to display the populated list. 

I read several links about String Split here, but none show in detail the screens and options needed to display the populated list. Can someone help me?


Thanks.

Rank: #295
Solution

Hi Fabricio,

Here i have added an oml to show a list of comma separated strings on screen. Please check and do let me know if it works for you.

In below, i have also given you the link of demo

https://shweta-gedam.outsystemscloud.com/SplitStringList/SplitStringDemo.aspx?_ts=637436258974636071


Thanks

SplitStringList.oml

Hi Fabricio ,

String Split  function is easy & straight forward please go through below link I am assuming it will be helpful to you

https://www.outsystems.com/forums/discussion/33343/string-split/

In case still you have problem please share your oml to identify the issue.


Regards

Shahsikant Shukla

Rank: #295
Solution

Hi Fabricio,

Here i have added an oml to show a list of comma separated strings on screen. Please check and do let me know if it works for you.

In below, i have also given you the link of demo

https://shweta-gedam.outsystemscloud.com/SplitStringList/SplitStringDemo.aspx?_ts=637436258974636071


Thanks

SplitStringList.oml

Rank: #495

Hi Fabricio, 

It depends on how you want to display it.

After you split the string you can iterate the list or set it to the soam list items source list

Kindly Regards

 Hi Fabricio,

You can use string_split as follows - 

after the string split I have assigned the values in the list of text structure. You can iterate over the list and display the values on UI. 

Let me know if this helps.

Thanks,

Unnati K

Rank: #27050

Thank you very much to all of you!


You make it even easier to learn about this incredible platform that is OutSystems.


Special thanks to Shweta Gedam. Examples like yours are great for beginners. Often what seems obvious to those who are already experienced are the details that prevent the beginner from proceeding.