question

Lambert avatar image
0 Likes"
Lambert asked Logan Gold commented

Access labels in the backorders of a list

Hi, I am trying to read the value of a label ("Status") of every backorder item in a list.


I have tried this code with no success:


List Lista = List("MBV");

pt("Lenght: "); pd(Lista.backOrders().length); pr();

for(int i = 1; i <= Lista.backOrders().length; i++)

{

pt(Lista.backOrders()[i].labels["Status"].value);

}


could you please help?

thank you

FlexSim 24.2.2
listbackorders
· 6
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Joerg Vogel commented

I would try to evaluate label values of a list

a. by a table query

b. by a list query with SELECT clause to get access to field values of this list, otherwise you get only access to the entry value itself. If this value is the ownerobject of your label, then you can read this value.

· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.