32
Views
12
Comments
Split the string on clicking of button.
Application Type
Traditional Web

I want to split my first name and the last name in different rows.

For example- 

Input- Vibhor Agarwal

After clicking on button, the output must be-

Output- Vibhor

Agarwal

Please help me with the OML so that I can go through that.

Hi Vibhor,
Please find the attached OML.

Hope this helps you.

SplitStringDemo.oml

Hi Vibhor,

You need to split the string, there is a action "String_Split" available inside "text' extension. You can use that action to split your string with (" ") as delimiters, it will return you list of value. 

Thanks,

Sachin

I cannot find the text extension can you please help me on this?

Hi Vibhor,

You will have to take a reference using manage dependencies. 


Hi Vibhor

Adding to earlier post, it seems you are using a reactive web. I would recommend you to use JavaScript code to achieve this. Please find the below oml, I tried this with JavaScript.


Thanks,

Sachin


DemoApp.oml

Hello Sachin,


It is only for the static input. How can we create it as a dynamic input.

You can check the above OML, in which I have attached the logic for dynamic input.

Hi Vibhor,

It is just an example, you can pass string through an input variable and make it dynamic.

Thanks,

Sachin

Thanks for all of the valuable inputs and answers. I will be working on these solutions.


Thanks.

Hi @vibhor Agarwal ,

In this post you got solution from other community member , you can those people to solution.
Why you marked your one line statement as solution. 

Hello Vibhor,

Please refer the below link:

https://www.outsystems.com/forums/discussion/66997/how-to-display-the-string-split-list/ 

Thanks

Ayush

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.