Skip to Content

Hi All,

 

I hope there no key word in SDK for splitting the string. Here i am sharing my attempt for splitting the string. If any improvement required in code or logic. If any of you have any alternate thought or any other technique which already exist in SDK. please let me know.

 

I hope SDK Experts Horst Schaude, Alessandro Iannacci, @Stefan Krauth …… has better coding or technique then this 🙂 .

 

Step 1: Reuse library for splitting the string. It has two importing parameters(STRING_QU_RE -> String to be split, SPLIT_QU_RE -> Splitting Variable, Return will be collection split strings ).

Reuse_library.PNG

 

Step 2: Logic for splitting the string.

Logic.png

Step 3: Business object for testing the Reuse Library for splitting the string.

Business Object.png

Step 4: Script for executing the Reuse Library.

Script.png

Step 5: Testing the Business Object for splitting the string.

 

5.a: Input the String and Split Key

output.PNG

5.b: Click on Split String.

output1.PNG

output2.PNG

If this blog is help full. Please Share it, Like it and Comment it below 🙂 😆 😆 .

 

Thanks,

Quddus.

To report this post you need to login first.

13 Comments

You must be Logged on to comment or reply to a post.

      1. Benny Huang

        Hi Ludger,

             Thanks.

             I debug it, when the function is running, the result is Ok.

            

        But at the end of the fuction run, it raise 4 errors at con.Find() and 4 errors at con.Substring(), every time is not success?

        (0) 
        1. Ludger Buenger

          Hi Bin,

          for some reason, the script calls the substring method with a negative substring length: -16.

          So there is some bug or missing length/string validity check in the script causing this error.

          Please ask McQuddus to check and update the code.

          Best regards,

          Ludger

          (0) 

Leave a Reply