on ‎2021 Sep 21 7:05 AM
Hello All,
I am using Cloud Studio.
Requirement : I am implementing a requirement where I have to multiple "single values" in the multi-select field using the CLIPBOARD button in the SAP GUI screen.

Steps I did: -
1. The list of single values is in an array. I looped over the array and tried to create a string with concatenation of '\r\n' between each of the values using custom script as below
var concatenatedString;
for (var i = 0; i <= Materials.length; i++) {
concatenatedString += Materials[i] + '\r\n';
}
return concatenatedString;
2. The returned string variable is then set to the clipboard using "SET Clipboard" activity.
3. On clicking on the button to import data from clipboard (marked in the multi-select screen), a single string is returned where the \r\n is converted as shown below:

Expectation is: On clicking the "Import from Clipboard", each of the single values should be populated separately.
I know that we could loop over the array and fill each single item one by one, but I am looking at the clipboard functionality and hence need the community's help.
Thanks & Regards
Srinivas Rao.
Please note :I had to take the screenshot of the converted string and paste, because that string is itself "carriage return and new line" and even in this question editor, it was auto-converting to new line but the same does not happen in the multi-select box.
Request clarification before answering.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, can anyone help me with the resolution to this? Is it still open? Even I'm facing the similar issue. Thanks in advance!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
jeromegrondin are there any prospects of changing this functionality to allow bulk copy from the clipboard like a list of values?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, Did you tried just \n ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 6 | |
| 6 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.