<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to set a Pull from List activity with Query &amp;quot;IN&amp;quot; a label in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-set-a-pull-from-list-activity-with-query-quot-in-quot-a/m-p/13495819#M12173</link>
    <description>&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jun 2016 15:20:46 GMT</pubDate>
    <dc:creator>david_besson</dc:creator>
    <dc:date>2016-06-28T15:20:46Z</dc:date>
    <item>
      <title>How to set a Pull from List activity with Query "IN" a label</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-set-a-pull-from-list-activity-with-query-quot-in-quot-a/m-p/13495817#M12171</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 16.1.0 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;Flowitems with itemtypes 1, 2 and 3 enter in a queue and are pushed to a list (with a Field itemtype).&lt;/P&gt;
&lt;P&gt;A Fixed resource Process flow tells a Processor to pull the flowitems from this list, but only ones with itemtype 2 and 3. -&amp;gt; Activity "Pull from List" with Query "WHERE itemType IN (2, 3)":&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="987-capture.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1493678i396060B1D0E0C01E/image-size/large?v=v2&amp;amp;px=999" role="button" title="987-capture.png" alt="987-capture.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It works, but is it possible to reference the itemtype which are pulled with a label on the Processor? Indeed, the itemtypes to pull could be different: only itemtype 1, itemtype 1 and 2, ...&lt;/P&gt;
&lt;P&gt;A label "itemType" on the Processor with the value "(2, 3)" and the Query "WHERE itemType IN getlabel(current, "itemType")" seems wrong.&lt;/P&gt;
&lt;P&gt;Thanks for your help!&lt;/P&gt;
&lt;P&gt;&lt;A rel="nofollow" href="https://answers.flexsim.com/storage/attachments/988-how-to-set-a-pull-from-list-activity-with-query-in.fsm"&gt;how-to-set-a-pull-from-list-activity-with-query-in.fsm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2016 12:38:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-set-a-pull-from-list-activity-with-query-quot-in-quot-a/m-p/13495817#M12171</guid>
      <dc:creator>david_besson</dc:creator>
      <dc:date>2016-06-28T12:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a Pull from List activity with Query "IN" a label</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-set-a-pull-from-list-activity-with-query-quot-in-quot-a/m-p/13495818#M12172</link>
      <description>&lt;P&gt;You don't have access to "current" in a Query field. You have access to "puller" (from the Puller field; the entering token in your example) and "value" (the value of each entry on the list that you are comparing to).&lt;/P&gt;&lt;P&gt;You can use the IN clause with an array stored on a label:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="999-sql-in-array.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1493675iACF829E17ED3FEDF/image-size/large?v=v2&amp;amp;px=999" role="button" title="999-sql-in-array.png" alt="999-sql-in-array.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.flexsim.com/storage/attachments/1004-query-in-array.fsm"&gt;query-in-array.fsm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You could also form the query as a string on a label and then use that label:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1002-sql-query-label.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1493676iE7B0B67FDE3CF967/image-size/large?v=v2&amp;amp;px=999" role="button" title="1002-sql-query-label.png" alt="1002-sql-query-label.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.flexsim.com/storage/attachments/1005-query-in-string-label.fsm"&gt;query-in-string-label.fsm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2016 14:23:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-set-a-pull-from-list-activity-with-query-quot-in-quot-a/m-p/13495818#M12172</guid>
      <dc:creator>philboboADSK</dc:creator>
      <dc:date>2016-06-28T14:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a Pull from List activity with Query "IN" a label</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-set-a-pull-from-list-activity-with-query-quot-in-quot-a/m-p/13495819#M12173</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2016 15:20:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-set-a-pull-from-list-activity-with-query-quot-in-quot-a/m-p/13495819#M12173</guid>
      <dc:creator>david_besson</dc:creator>
      <dc:date>2016-06-28T15:20:46Z</dc:date>
    </item>
  </channel>
</rss>

