String split Function

0
Hello Everyone,   How to use the split string in the community commons for separate the serial numbers as a row in overview main page using commos. Please share your ideas, how to do this?
asked
2 answers
0

Hi Swetha,

To separate serial numbers into individual rows using CommunityCommons.SplitString, first pass the serial number string along with a delimiter (e.g., ",") to the function. This will return a list of split serial numbers. Iterate over this list in a loop within your microflow, creating a new Inspection object for each serial number and assigning the value to its Serial_Number attribute. Once all records are created, commit them to the database. Finally, refresh the data source on the overview page to display the newly added rows dynamically.

Let me know, if you have any issues,

Hope it helps!!

answered
0

Hi Swetha,

 

If the serial number contains no more than 10 delimiters, you can use Non-Persistent Entities. You can also persist the serial number after splitting it and display the number on the page. However, the following approach demonstrates the process using Non-Persistent Entities.

Please follow these steps to display the serial number separator in each row:

  1. Create entities – Refresh the object with a one-to-many association with Inspection NP.
  2. Construct a microflow to split the serial number using the delimiter ','.
  3. Use the String Split Java action to separate the serial number.
  4. Refer to the microflow below for implementation

 

microflow.png

5. Refer to the below change action inside the loop

changeaction.png7. refer to the page to show the serial number in project and browser

pages.png

 

answered