8
Points
Questions
5
Answers
2
-
- 1126 views
- 2 answers
- 0 votes
-
Please try the below code :
String newValue = “100”;
String attributeValue = agileObj.getValue( “Page Two.attribute”).toString();
String [] strArr = attributeValue.split(“;”);
ArrayList <String> list = Arrays.asList(strArr);
list.add(newValue);//Call this method
//Cell is the Page Two Attribute Cell which you want to update
//ArrayList is the list which you get from the above lines of codepublic void appendValuesToMultiListCell(ICell cell, ArrayList<String> valuesList) {try {if(null!=valuesList && !valuesList.isEmpty()) {int valuesListSize= valuesList.size();String[] attributeValueArray= new String[valuesListSize];for(int i=0; i<valuesListSize; i++) {attributeValueArray[i] = valuesList.get(i);}//Set the final list of valuesIAgileList agileList = cell.getAvailableValues();agileList.setSelection(attributeValueArray);cell.setValue(agileList);}} catch (Exception e) {e.printStackTrace();}- 3031 views
- 4 answers
- 0 votes