As you raised the ticket for the same and that is resolved already. I am suggesting the 2 different solutions here as well.
In your script, there is repetition of the select element for each case. To optimize this, you can use a single select statement for the if block and another for the else block.
Additionally, note that arc:select works on the value, so you should use <arc:select value> instead of <arc:select attr>
When referencing elements from the source file, ensure to utilize the xpath() instead of directly passing element names as strings within double quotes. Here is an example:
<arc:select value=“[xpath(/Items/Data/RSNCode)]”>
This ensures proper xpath() usage to reference the source file elements.
Achieving this can be done through two methods. The first one involves using Arc script with the Arc select and case keywords.
Another approach to achieve this use case is by using the IF-Else condition on your Rsn element. Within each condition, you can include multiple IF conditions to handle various edge cases, as demonstrated below:
This website stores cookies on your computer. These cookies are used to collect information about how you interact with our website and allow us to remember you. We use this information in order to improve and customize your browsing experience and for analytics and metrics about our visitors both on this website and other media.
Review section III of our Privacy Policy for more information on cookies.
To opt out of “sale” or “sharing” of non-cookie data, visit our Privacy Rights Request Form.