Hi guys, so I'm trying to figure out how to use string_split.Right now, I'm using data from my local computer, and I want to use string_split to split one of my column (title of the client email) and display it on the UI.
Since I'm VERY new to Outsystems, I've been trying to look for some source to learn but I just can't get it. TBH, I don't really know how logic works?? And I don't know how to display it in the UI. Can someone lighten me up on this, please T-T
okay do as i have told you. after spliting the string it will revert a list right. and now create a output variable result with the split function and it should be a list type of text and then list append all into the output variable after the spliting and then you will be able to see the list as you want to.
Thanks
Prince
hi Fiorentika Devasha ,
when you use string split. this server action reverts into the list format so if you want to show it on the screen use Outsystems UI List element for it.
if both are not your solutions please elaborate your exact problem of try to attach your oml
@Prince Aadil Khan Panwar @Mostafa Othman
ok wait let me explain.Say that I have this column called Movie Title and i want to show the list of all the word that exist in that column (Word List) in my ui screen
What's the first thing I should do? I already add the string_split from the text entension, but I'm not sure what I should do next. Where is the right place to use the string_split? rn i'm trying it in the server action but idk if that's right lol
Thank you both!
Yes, its right to use it into server action or data fetch action or client action based on your requirement and business scenario. Then you can assign output of this string_split to variable of type Text List. After that you can use this variable into screen to display data using table or list widget.
As you are new to OutSystems I suggest to complete following course which will help you to understand and get hands on OutSystems through some assignments:
https://learn.outsystems.com/training/journeys/web-developer-662/
Hello,
You can add reference to String_Split action from Text extension then you can drag it to your action flow.
You need to pass string and delimiters for example comma or space so the action will return list of text from input string you passed.
You can find documentation here
hi Mostafa,
provided link is not working.
Thank you for letting me know. link updated
Hi,
Please find attached the sample OML, let me know if you have any questions
Please find the example for using string split functionality.
sample_Link -
attached oml too FYR.
Hope it helps
Based on the more details you shared, do you mean that each movie record in your database might have more than one words in Word List column? And then you want to display all the words on your screen for a single movie at a time?
If that is not the case and you simply want to show the results as shown in your database snapshot, then you don't need to use String_Split action. Just put one grid on your screen, add an aggregate to get movie details and set it as source for your grid.