cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1153
Views
0
Helpful
3
Replies

What value to use for lineSelectionOrder in addMembers for updateLineGroup ?

alidavid
Cisco Employee
Cisco Employee

Hello All,

When updating lineGroup members, a unique value is required for lineSelectionOrder.
Is there any special value that will add the member at the end or beginning of the list and reorder existing members? This would avoid extra steps to check the linegroup members.

 

Thanks,

Alin

3 Replies 3

KiranKL
Cisco Employee
Cisco Employee

Not sure about any unique value. Tried updating a directory number and the name of an existing Line group with selection order value as "1". Got successful response.

 

If your questions is different, Please explain the same in detail

Hi Kiran, I was talking about updating the members of the linegroup, not the linegroup itself.
If you use an existing lineSelectionOrder id you get

Unique constraint (informix.mx_202_1357_1359) violated. 

There isn't any special value that will reorder the list. The first line in the list will have the lowest number in lineSelectionOrder of all the lines in the list and the highest number of all the lineSelectionOrders will be last in the list. As you mentioned the values need to be unique. So if the lowest number in the current list is 0 and you want to add a new one to the top off the list you could set this to lineSelectionOrder = -1