question

Scott Ainsworth avatar image
0 Likes"
Scott Ainsworth asked Joerg Vogel commented

How to query by text label

If I pull from a list and use a query like:

WHERE BatchVal = Puller.Batch

It works fine if the BatchVal label is a number and Puller.Batch is a number.

If I query:

WHERE BatchText = Puller.Batch

It does not work if BatchText and Puller.Batch are text labels.

However if I query

WHERE BatchText = "The text"

It does work. However, I'm stuck with static query that does not modify for the next incoming token.

I would like to query the batch with a text label so I can pull the tokens with matching text label.

FlexSim 18.2.2
pull from listqueries no result
· 4
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
1 Like"
Joerg Vogel answered Joerg Vogel commented

I haven't got any problems to pull by strings from a list. Please see attached model.

pull-by-string.fsm

  1. WHERE Puller.batch = batchId

This works, where batchId is a list entry of string values, Puller is the token, batch is a label at the token containing a string.

The result contains a NULL if there is not a possible match.


pull-by-string.fsm (23.7 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.