<?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: Can I query from a list using a value from a label? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/can-i-query-from-a-list-using-a-value-from-a-label/m-p/13494514#M11211</link>
    <description>&lt;P&gt;Does it work if you change it from getlabel(current,"Equipment" to getlabel(current,"Equipment") ?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="904-903-doesntwork.jpg"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1493635iE9AEEF304DBE2E29/image-size/large?v=v2&amp;amp;px=999" role="button" title="904-903-doesntwork.jpg" alt="904-903-doesntwork.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jun 2016 19:40:12 GMT</pubDate>
    <dc:creator>philboboADSK</dc:creator>
    <dc:date>2016-06-23T19:40:12Z</dc:date>
    <item>
      <title>Can I query from a list using a value from a label?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/can-i-query-from-a-list-using-a-value-from-a-label/m-p/13494511#M11208</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 16.0.1 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;
	I have a tugger that is searching for objects that it can pick up, but it has to be able to fit on the tugger's train, and be scheduled to be picked up by that specific tugger. I assumed the following code would work:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="903-doesntwork.jpg"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1493637i52E3503956E27F62/image-size/large?v=v2&amp;amp;px=999" role="button" title="903-doesntwork.jpg" alt="903-doesntwork.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It doesn't ever pull anything, but when I put in the values (instead of the FlexScript queries) it works e.g:&lt;/P&gt;&lt;P&gt;
	&lt;span class="lia-inline-image-display-wrapper" image-alt="902-works.jpg"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1493638i77B2CB335069CC13/image-size/large?v=v2&amp;amp;px=999" role="button" title="902-works.jpg" alt="902-works.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Note that current in the first section points to the tugger object that has the labels.&lt;/P&gt;&lt;P&gt;How can I reference these labels within the query? Do I need to put them on the token instead of on the object?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 19:31:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/can-i-query-from-a-list-using-a-value-from-a-label/m-p/13494511#M11208</guid>
      <dc:creator>cameron_pluim</dc:creator>
      <dc:date>2016-06-23T19:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can I query from a list using a value from a label?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/can-i-query-from-a-list-using-a-value-from-a-label/m-p/13494512#M11209</link>
      <description>&lt;P&gt;Your first query seems to be missing a ) after "Equipment". Maybe that's why?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 19:33:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/can-i-query-from-a-list-using-a-value-from-a-label/m-p/13494512#M11209</guid>
      <dc:creator>philboboADSK</dc:creator>
      <dc:date>2016-06-23T19:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can I query from a list using a value from a label?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/can-i-query-from-a-list-using-a-value-from-a-label/m-p/13494513#M11210</link>
      <description>&lt;P&gt;the first query also works if it is&lt;/P&gt;&lt;PRE&gt; WHERE Equipment = "Tugger1" AND Length &amp;lt; getlabel(current,"AvailableLength")&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Jun 2016 19:37:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/can-i-query-from-a-list-using-a-value-from-a-label/m-p/13494513#M11210</guid>
      <dc:creator>cameron_pluim</dc:creator>
      <dc:date>2016-06-23T19:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can I query from a list using a value from a label?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/can-i-query-from-a-list-using-a-value-from-a-label/m-p/13494514#M11211</link>
      <description>&lt;P&gt;Does it work if you change it from getlabel(current,"Equipment" to getlabel(current,"Equipment") ?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="904-903-doesntwork.jpg"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1493635iE9AEEF304DBE2E29/image-size/large?v=v2&amp;amp;px=999" role="button" title="904-903-doesntwork.jpg" alt="904-903-doesntwork.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 19:40:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/can-i-query-from-a-list-using-a-value-from-a-label/m-p/13494514#M11211</guid>
      <dc:creator>philboboADSK</dc:creator>
      <dc:date>2016-06-23T19:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can I query from a list using a value from a label?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/can-i-query-from-a-list-using-a-value-from-a-label/m-p/13494515#M11212</link>
      <description>&lt;P&gt;Since I currently only have 1 tugger in the model, I have taken that out completely, and just have:&lt;/P&gt;&lt;PRE&gt;WHERE Length &amp;lt; getlabel(current,"AvailableLength")&lt;/PRE&gt;&lt;P&gt;And this doesn't work, but &lt;/P&gt;&lt;PRE&gt;WHERE Length &amp;lt; 15&lt;/PRE&gt;&lt;P&gt;does work. So I don't think the typo on&lt;/P&gt;&lt;PRE&gt;getlabel(current,"Equipment"&lt;/PRE&gt;&lt;P&gt;missing a ) is the issue.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 19:44:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/can-i-query-from-a-list-using-a-value-from-a-label/m-p/13494515#M11212</guid>
      <dc:creator>cameron_pluim</dc:creator>
      <dc:date>2016-06-23T19:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can I query from a list using a value from a label?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/can-i-query-from-a-list-using-a-value-from-a-label/m-p/13494516#M11213</link>
      <description>&lt;P&gt;Can you post an example model so that we can debug what is happening?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 19:46:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/can-i-query-from-a-list-using-a-value-from-a-label/m-p/13494516#M11213</guid>
      <dc:creator>philboboADSK</dc:creator>
      <dc:date>2016-06-23T19:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can I query from a list using a value from a label?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/can-i-query-from-a-list-using-a-value-from-a-label/m-p/13494517#M11214</link>
      <description>&lt;P&gt;Here's the 2 examples of each. The model doesn't work beyond the pull in either of them, but it does pull correctly in the example that doesn't use the getlabel() command. The only difference between these 2 is that the pull from list uses Length &amp;lt; 15 in the one that works, and Length &amp;lt; getlabel(current,"AvailableLength") in the one that doesn't work&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.flexsim.com/storage/attachments/906-pulldoesntwork.fsm"&gt;pulldoesntwork.fsm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.flexsim.com/storage/attachments/907-pullworks.fsm"&gt;pullworks.fsm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 20:02:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/can-i-query-from-a-list-using-a-value-from-a-label/m-p/13494517#M11214</guid>
      <dc:creator>cameron_pluim</dc:creator>
      <dc:date>2016-06-23T20:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can I query from a list using a value from a label?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/can-i-query-from-a-list-using-a-value-from-a-label/m-p/13494518#M11215</link>
      <description>&lt;P&gt;Cameron, what if you set a Global Variable to getlabel(current,"AvailableLength") and then used that Global Variable in the Query?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 20:09:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/can-i-query-from-a-list-using-a-value-from-a-label/m-p/13494518#M11215</guid>
      <dc:creator>jeff_nordgren</dc:creator>
      <dc:date>2016-06-23T20:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can I query from a list using a value from a label?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/can-i-query-from-a-list-using-a-value-from-a-label/m-p/13494519#M11216</link>
      <description>&lt;P&gt;Looking into this, in the Query field, you don't have access to "current".&lt;/P&gt;&lt;P&gt;You only have access to "value" and "puller". In your case, puller is the entering token, so you would need to either change puller to the tugger, or get a reference via the token.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 20:09:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/can-i-query-from-a-list-using-a-value-from-a-label/m-p/13494519#M11216</guid>
      <dc:creator>philboboADSK</dc:creator>
      <dc:date>2016-06-23T20:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Can I query from a list using a value from a label?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/can-i-query-from-a-list-using-a-value-from-a-label/m-p/13494520#M11217</link>
      <description>&lt;P&gt;Also, in list SQL, getlabel(puller, "labelName") is the same as puller.labelName, and getlabel(value, "labelName") is the same as value.labelName is the same as labelName.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 03:47:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/can-i-query-from-a-list-using-a-value-from-a-label/m-p/13494520#M11217</guid>
      <dc:creator>anthony_johnsonT83CM</dc:creator>
      <dc:date>2016-06-24T03:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Can I query from a list using a value from a label?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/can-i-query-from-a-list-using-a-value-from-a-label/m-p/13494521#M11218</link>
      <description>&lt;P&gt;I was able to change puller to current, and then use puller.AvailableLength (as Anthony said above)&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 12:28:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/can-i-query-from-a-list-using-a-value-from-a-label/m-p/13494521#M11218</guid>
      <dc:creator>cameron_pluim</dc:creator>
      <dc:date>2016-06-24T12:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can I query from a list using a value from a label?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/can-i-query-from-a-list-using-a-value-from-a-label/m-p/13494522#M11219</link>
      <description>&lt;P&gt;Jeff, I could have set a Global Variable, but I would need a Global Variable for each instance of this Process Flow (maybe a Process Flow Variable would be better). I think the better solution (in order to keep the information on the tugger itself) is to change puller to be current (as stated by Phil), then I have access to the puller's labels.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 12:32:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/can-i-query-from-a-list-using-a-value-from-a-label/m-p/13494522#M11219</guid>
      <dc:creator>cameron_pluim</dc:creator>
      <dc:date>2016-06-24T12:32:46Z</dc:date>
    </item>
  </channel>
</rss>

