<?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: Read from Table to Token in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/read-from-table-to-token/m-p/13597156#M91661</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;
 Yay! We're glad to hear it!
&lt;/DIV&gt;</description>
    <pubDate>Thu, 20 Jul 2023 14:27:38 GMT</pubDate>
    <dc:creator>julie_weller</dc:creator>
    <dc:date>2023-07-20T14:27:38Z</dc:date>
    <item>
      <title>Read from Table to Token</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/read-from-table-to-token/m-p/13597149#M91654</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 23.1.1 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi,&lt;/P&gt;
 &lt;P&gt;Looking for help as a newbie.&lt;/P&gt;
 &lt;P&gt;I have a table of products (see example below) each with different parameters associated with it.&lt;/P&gt;
 &lt;P&gt;I would like to be able to generate tokens and add the labels regarding the raw materials from each row to the token (while knowing what each product is). My desired end result is to have for example:&lt;/P&gt;
 &lt;P&gt;Product A - RawMaterial1 10, RawMaterial2 10.&lt;/P&gt;
 &lt;P&gt;I would really appreciate any help!&lt;/P&gt;
 &lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="width: 25.0000%;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD style="width: 25.0000%;"&gt;Product A / batch&lt;/TD&gt;&lt;TD style="width: 25.0000%;"&gt;Product B / batch&lt;/TD&gt;&lt;TD style="width: 25.0000%;"&gt;Product C / batch&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 25.0000%;"&gt;Raw Material 1&lt;/TD&gt;&lt;TD style="width: 25.0000%;"&gt;10&lt;/TD&gt;&lt;TD style="width: 25.0000%;"&gt;20&lt;/TD&gt;&lt;TD style="width: 25.0000%;"&gt;22&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 25.0000%;"&gt;Raw Material 2&lt;/TD&gt;&lt;TD style="width: 25.0000%;"&gt;10&lt;/TD&gt;&lt;TD style="width: 25.0000%;"&gt;25&lt;/TD&gt;&lt;TD style="width: 25.0000%;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sun, 16 Jul 2023 19:57:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/read-from-table-to-token/m-p/13597149#M91654</guid>
      <dc:creator>KhadijaM</dc:creator>
      <dc:date>2023-07-16T19:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Read from Table to Token</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/read-from-table-to-token/m-p/13597150#M91655</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/43055/khadijam.html" nodeid="43055"&gt;@KhadijaM&lt;/A&gt; , you store data typically by labels at tokens. So you have to know how to assert a label, declare an initial value, change a label value. On the other hand you need to know how to read a table cell value. I assume you are familiar with value assignments in a programming language. If you aren’t then there are templates you can use from picklist options in triggers or process flow activities. Please look for table and treenode Flexscript Class API in manual.&lt;/P&gt;&lt;P&gt;&lt;A id="isPasted" href="https://docs.flexsim.com/en/23.1/Reference/CodingInFlexSim/FlexScriptAPIReference/Data/Table.html&amp;lt;/a&amp;gt;"&gt;&lt;/A&gt;&lt;A href="https://docs.flexsim.com/en/23.1/Reference/CodingInFlexSim/FlexScriptAPIReference/Data/Table.html"&gt;https://docs.flexsim.com/en/23.1/Reference/CodingInFlexSim/FlexScriptAPIReference/Data/Table.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A id="isPasted" href="https://docs.flexsim.com/en/23.1/Reference/CodingInFlexSim/FlexScriptAPIReference/Tree/treenode.html#Property-labelProperties&amp;lt;/a&amp;gt;"&gt;&lt;/A&gt;&lt;A href="https://docs.flexsim.com/en/23.1/Reference/CodingInFlexSim/FlexScriptAPIReference/Tree/treenode.html#Property-labelProperties"&gt;https://docs.flexsim.com/en/23.1/Reference/CodingInFlexSim/FlexScriptAPIReference/Tree/treenode.html#Property-labelProperties&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A id="isPasted" href="https://docs.flexsim.com/en/23.1/Reference/CodingInFlexSim/FlexScriptAPIReference/Tree/treenode.html#Property-labels&amp;lt;/a&amp;gt;"&gt;&lt;/A&gt;&lt;A href="https://docs.flexsim.com/en/23.1/Reference/CodingInFlexSim/FlexScriptAPIReference/Tree/treenode.html#Property-labels"&gt;https://docs.flexsim.com/en/23.1/Reference/CodingInFlexSim/FlexScriptAPIReference/Tree/treenode.html#Property-labels&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A id="isPasted" href="https://docs.flexsim.com/en/23.1/Reference/CodingInFlexSim/FlexScriptAPIReference/ProcessFlow/Token.html#Property-labelProperties&amp;lt;/a&amp;gt;"&gt;&lt;/A&gt;&lt;A href="https://docs.flexsim.com/en/23.1/Reference/CodingInFlexSim/FlexScriptAPIReference/ProcessFlow/Token.html#Property-labelProperties"&gt;https://docs.flexsim.com/en/23.1/Reference/CodingInFlexSim/FlexScriptAPIReference/ProcessFlow/Token.html#Property-labelProperties&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 17 Jul 2023 05:03:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/read-from-table-to-token/m-p/13597150#M91655</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2023-07-17T05:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Read from Table to Token</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/read-from-table-to-token/m-p/13597151#M91656</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/43055/khadijam.html" nodeid="43055"&gt;@KhadijaM&lt;/A&gt;! I would just use the schedule source activity. You can set the time they arrive, the quantity, and add any labels you want! Let me know if that helps!&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1689601523804.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1518307i7CE3FA0FB3C2C2E6/image-size/large?v=v2&amp;amp;px=999" role="button" title="1689601523804.png" alt="1689601523804.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;Additionally if you wanted more control over the arrivals you could use a date/time source and choose the distribution of when the tokens are created.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 17 Jul 2023 13:45:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/read-from-table-to-token/m-p/13597151#M91656</guid>
      <dc:creator>julie_weller</dc:creator>
      <dc:date>2023-07-17T13:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Read from Table to Token</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/read-from-table-to-token/m-p/13597152#M91657</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;For a walkthrough, see&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://docs.flexsim.com/en/23.2/ModelLogic/GlobalTables/UsingData/UsingData.html" target="_blank"&gt;https://docs.flexsim.com/en/23.2/ModelLogic/GlobalTables/UsingData/UsingData.html&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 17 Jul 2023 15:24:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/read-from-table-to-token/m-p/13597152#M91657</guid>
      <dc:creator>JordanLJohnson</dc:creator>
      <dc:date>2023-07-17T15:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Read from Table to Token</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/read-from-table-to-token/m-p/13597153#M91658</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/43055/khadijam.html" nodeid="43055"&gt;@khadijam&lt;/A&gt;, was my answer helpful? If so, please click the "Accept" button at the bottom of the answer. Or if you still have questions, add a comment and we'll continue the conversation.&lt;/P&gt;
 &lt;P&gt;If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 20 Jul 2023 14:06:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/read-from-table-to-token/m-p/13597153#M91658</guid>
      <dc:creator>julie_weller</dc:creator>
      <dc:date>2023-07-20T14:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Read from Table to Token</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/read-from-table-to-token/m-p/13597154#M91659</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Thank you Julie &amp;amp; Jordan, I had forgotten to reply but your answer did help and I'm now able to use a global table as a reference. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Really appreciate it!&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 20 Jul 2023 14:18:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/read-from-table-to-token/m-p/13597154#M91659</guid>
      <dc:creator>KhadijaM</dc:creator>
      <dc:date>2023-07-20T14:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Read from Table to Token</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/read-from-table-to-token/m-p/13597155#M91660</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Thank you Joerg!!
&lt;/DIV&gt;</description>
      <pubDate>Thu, 20 Jul 2023 14:18:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/read-from-table-to-token/m-p/13597155#M91660</guid>
      <dc:creator>KhadijaM</dc:creator>
      <dc:date>2023-07-20T14:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Read from Table to Token</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/read-from-table-to-token/m-p/13597156#M91661</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Yay! We're glad to hear it!
&lt;/DIV&gt;</description>
      <pubDate>Thu, 20 Jul 2023 14:27:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/read-from-table-to-token/m-p/13597156#M91661</guid>
      <dc:creator>julie_weller</dc:creator>
      <dc:date>2023-07-20T14:27:38Z</dc:date>
    </item>
  </channel>
</rss>

