Facility Control

 View Only
  • 1.  Delete Line in a array

    Posted 04-03-2019 12:10

    How Do i delete a Line in a array.. i have Tried the slice or pop but can’t get it to work



  • 2.  RE: Delete Line in a array

    Posted 04-03-2019 20:40

    Hi Michael.

    Are you talking about an array parameter?

    You can use:

    params.getParam('OID', index).remove();

    You can also replace an entire array with a new one with:

    params.setAllValues('OID', newValueArray);

     

    One thing to be aware of: You should always keep at least one element in every array. 


    #DashBoard