question

Alessio Merlo avatar image
0 Likes"
Alessio Merlo asked Alessio Merlo commented

Recover fields value from an entry of the list

Hi,

today I inserted a fixed arguments in the fields of a list with the command listpush("mylist",id,0,argument1,...), but I am not able to retrieve the value when I pull the entry from the list because the listpull command returns only the value of the entry and from the value I can't recover the value of the field.

I attached a model which reproduces my problem.

Can someone help me?

pullfromlist.fsm

FlexSim 16.2.1
listpull from listretrieve fields from list
pullfromlist.fsm (18.0 KiB)
· 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.

Joerg Vogel avatar image Joerg Vogel commented ·

Maybe you query before the pull from list activity and evaluate the entries of the instance to assign them to label values.

0 Likes 0 ·
Alessio Merlo avatar image Alessio Merlo Joerg Vogel commented ·

I discovered that entire entry of the list can be pulled by command "listpull" with the flag LIST_PULL_ENTRY_NODES, but from the return value I am able to get only the push time value. How can I get the static field of the entry? I tried the command getstdvalue(entry,"staticFields"), but I failed. Any ideas? @Matt Long

0 Likes 0 ·

1 Answer

Matt Long avatar image
1 Like"
Matt Long answered Alessio Merlo commented

There currently isn't a way to do this. It's on our radar for integrating this functionality using the SELECT statement, but nothing yet. The work around would be to push a token or other node to the list and store that field value on the token/node.

· 3
5 |100000

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

Alessio Merlo avatar image Alessio Merlo commented ·

Hi @Matt Long,

have you done some integration about this topic? I'm using FlexSim 17.0.2, but I didn't note any difference. Do you confirm?

Moreover I'm using a C++ code and I discovered that staticFields is defined like "private" in the class Entry of the List then I can't access. Is there a different workaround with C++ code?

0 Likes 0 ·
anthony.johnson avatar image anthony.johnson ♦♦ Alessio Merlo commented ·

Alessio,

We haven't added anything related to this yet. I tried an initial implementation, but there were unforeseen issues with it, so we took it out.

1 Like 1 ·
Alessio Merlo avatar image Alessio Merlo anthony.johnson ♦♦ commented ·

Thanks!

I will wait...

0 Likes 0 ·