priya_ms's Profile
Agile User
8
Points

Questions
5

Answers
2

  • Agile User Asked on April 13, 2020 in Software Development Kit (API).

    Hi Raj,

    Thanks for reply. I did it using the user session. The integration code is run with Admin user session. So I got the current user from session in PX, if it is admin user, I will skip the validation.

     

    Regards,

    Vidya

     

    • 1126 views
    • 2 answers
    • 0 votes
  • Agile User Asked on July 29, 2015 in Agile PLM (v9).

    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 code

        public 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 values
                               IAgileList agileList = cell.getAvailableValues();
                               agileList.setSelection(attributeValueArray);
                               cell.setValue(agileList);
                         }
                  } catch (Exception e) {
                       e.printStackTrace();
                   
           }

    • 3031 views
    • 4 answers
    • 0 votes