Hello everyone,
I need assistance with reversing a string in an input field within Outsystems, is a low-code platform. The desired output should be "platform code low a is Outsystems". I've gone through multiple resources regarding string splitting, but none provide a comprehensive solution. Can anyone provide some guidance? Thanks.
Hi,
You can check these post and component.
https://b-shumarov.outsystemscloud.com/StringUtils_Demo/
https://www.outsystems.com/forums/discussion/83817/reverse-string-program/
https://www.outsystems.com/forums/discussion/71296/how-can-i-reverse-text/
https://www.outsystems.com/forge/component-overview/13312/reversestring-v1-oml-o11
Regards,Wasimkhan S
Hi WasimThanks for your help
Anytime.
Cheers,
Wasimkhan S
Hello,
You can use String_Split action first to split you string using " " (space) as your delimiter which will return list of text each item has one word in your case will be like (platform, code, low, a, is, OutSystems)
After that I can suggest to use a local variable as list of text and start using ListInsert action inside a Foreach of returned list of String_Split and always use position into insert as 0 always.
Last step is to use String_Join action and input parameters will be your local text list and delimiter will be " " (space)
Hello Himanshu,
Just implemented what @Mostafa Othman suggested and it worked.
Please refer to the link and oml.
Demo Screen Link
Open 'TextReverse' screen in the attached oml.
Hope that helps.
Regards,
Anees