Copying ArrayList values to a Value List property in java step.
I am having a requirement where i must copy items from an ArrayList into Clipboard property ValueList. This needs to be achieved in a java step.
Kindly, help me with this.
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
Here is a basic example of iterating through an array and adding the items to a value list property.
ClipboardProperty myProp = myStepPage.getProperty("TestList");
ArrayList<String> myArray = new ArrayList<String>();
for(int i = 0; i < myArray.size(); i++)
Keep up to date on this post and subscribe to comments
- How to create a PRPC Page 'pxResults' type page from Java Step.
- Read File size in bytes using File Listener without Java step.
- Copy Page list values to a property
- add diff values to value list property using JAVA
- Page-Copy method is not copying properties which is having null values to destination page