<?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: Access puller label from back orders of internal list in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/access-puller-label-from-back-orders-of-internal-list/m-p/13547900#M53151</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Yes, I did replace it with "List_Loc1". The value I get back for the "backOrders" node is 0 (according to the Script Console output), but when I try to run the second line it gives the error described above.&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Thu, 11 Aug 2022 13:33:58 GMT</pubDate>
    <dc:creator>esther_j2</dc:creator>
    <dc:date>2022-08-11T13:33:58Z</dc:date>
    <item>
      <title>Access puller label from back orders of internal list</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/access-puller-label-from-back-orders-of-internal-list/m-p/13547896#M53147</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 21.2.4 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Is it possible to access the label of a puller token that's sitting on the Back Orders of an internal list?&lt;/P&gt;
 &lt;P&gt;I know that with a global list, I can use a command such as: List("List1").backOrders()[1].puller.labelName&lt;/P&gt;
 &lt;P&gt;Is there an equivalent command for internal lists?&lt;/P&gt;
 &lt;P&gt;Thanks in advance!&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Aug 2022 19:01:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/access-puller-label-from-back-orders-of-internal-list/m-p/13547896#M53147</guid>
      <dc:creator>esther_j2</dc:creator>
      <dc:date>2022-08-09T19:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Access puller label from back orders of internal list</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/access-puller-label-from-back-orders-of-internal-list/m-p/13547897#M53148</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You can read that information from the tree. The following code assumes a single (global) instance.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1660113061941.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1512064iB4CD92F13D6DC4BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="1660113061941.png" alt="1660113061941.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;treenode backOrders = Model.find("/Tools/ProcessFlow/ProcessFlowName/List&amp;gt;stats/instances/ProcessFlow/list&amp;gt;variables/partitions/1/backOrders");
int typeLabelValue = getsdtvalue(backOrders.subnodes[1], "puller").as(Token).Type;&lt;/PRE&gt;&lt;P&gt;Note that the developers do not guarantee forward compatability when reading values directly from the tree like this, as the tree structure might change in future releases.&lt;/P&gt;&lt;P&gt;(The 'as.(Token)' isn't strictly necessary, but it makes accessing valid methods/properties for the puller token easier when writing the code (such as 'entryTime' for example).)&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 10 Aug 2022 06:36:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/access-puller-label-from-back-orders-of-internal-list/m-p/13547897#M53148</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2022-08-10T06:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: Access puller label from back orders of internal list</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/access-puller-label-from-back-orders-of-internal-list/m-p/13547898#M53149</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Thanks for the response! I'm not able to get the second line of the code to work. The error that gets returned is:&lt;/P&gt;
 &lt;P&gt;exception: FlexScript exception: &amp;lt;no path&amp;gt; c: &amp;lt;no path&amp;gt; i: &amp;lt;no path&amp;gt;&lt;/P&gt;
 &lt;P&gt;If it'll be helpful, this is what that section of the tree looks like:&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1660163614184.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1512065i75280157E5D194C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="1660163614184.png" alt="1660163614184.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 10 Aug 2022 20:34:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/access-puller-label-from-back-orders-of-internal-list/m-p/13547898#M53149</guid>
      <dc:creator>esther_j2</dc:creator>
      <dc:date>2022-08-10T20:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Access puller label from back orders of internal list</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/access-puller-label-from-back-orders-of-internal-list/m-p/13547899#M53150</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;The first mention of 'List' in the path in line 1 is the name of the list activity (forgot to mention that, sorry). Did you replace it with "List_Loc1" when testing the code? That could explain the error, because the "backOrders" node would be NULL.&lt;/DIV&gt;</description>
      <pubDate>Thu, 11 Aug 2022 05:59:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/access-puller-label-from-back-orders-of-internal-list/m-p/13547899#M53150</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2022-08-11T05:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Access puller label from back orders of internal list</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/access-puller-label-from-back-orders-of-internal-list/m-p/13547900#M53151</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Yes, I did replace it with "List_Loc1". The value I get back for the "backOrders" node is 0 (according to the Script Console output), but when I try to run the second line it gives the error described above.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 11 Aug 2022 13:33:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/access-puller-label-from-back-orders-of-internal-list/m-p/13547900#M53151</guid>
      <dc:creator>esther_j2</dc:creator>
      <dc:date>2022-08-11T13:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Access puller label from back orders of internal list</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/access-puller-label-from-back-orders-of-internal-list/m-p/13547901#M53152</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;"backOrders" should point to the respective node of the same name in the tree. Based on the section of the tree you posted the path should be correct. The only section I can't see is the ProcessFlow.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1660225313583.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1512067i46441AA278616AE6/image-size/large?v=v2&amp;amp;px=999" role="button" title="1660225313583.png" alt="1660225313583.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1660225415431.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1512068i592C0C15429ED0B7/image-size/large?v=v2&amp;amp;px=999" role="button" title="1660225415431.png" alt="1660225415431.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You could try to add steps to the path one by one and see at which point no valid treenode is returned.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 11 Aug 2022 13:46:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/access-puller-label-from-back-orders-of-internal-list/m-p/13547901#M53152</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2022-08-11T13:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Access puller label from back orders of internal list</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/access-puller-label-from-back-orders-of-internal-list/m-p/13547902#M53153</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Thank you! For some reason it works now, I'm not sure what I did differently...
&lt;/DIV&gt;</description>
      <pubDate>Fri, 12 Aug 2022 20:09:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/access-puller-label-from-back-orders-of-internal-list/m-p/13547902#M53153</guid>
      <dc:creator>esther_j2</dc:creator>
      <dc:date>2022-08-12T20:09:11Z</dc:date>
    </item>
  </channel>
</rss>

