<?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: Delay time using global table in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/delay-time-using-global-table/m-p/13570038#M70589</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/87/matthew.g.html" nodeid="87"&gt;@Matthew Gillespie&lt;/A&gt; yes sure here is the model&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/65239-delay-time.fsm" target="_blank"&gt;delay time.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Tue, 07 Mar 2023 16:48:26 GMT</pubDate>
    <dc:creator>ahmedmedhat</dc:creator>
    <dc:date>2023-03-07T16:48:26Z</dc:date>
    <item>
      <title>Delay time using global table</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/delay-time-using-global-table/m-p/13570033#M70584</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 23.0.1 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;please help me link the delay activity with the global table "C1", I want it to look for the label "Code" assigned to each flow item and return the value in column "Time".&lt;/P&gt;
 &lt;P&gt;I used the global table lookup function as shown below and it gives me the errors shown below.&lt;/P&gt;
 &lt;P&gt;NB. this process flow is linked to a 3D model processor.&lt;/P&gt;
 &lt;span class="lia-inline-image-display-wrapper" image-alt="1678145307361.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1515827iA142A2C3FBAD2BC6/image-size/large?v=v2&amp;amp;px=999" role="button" title="1678145307361.png" alt="1678145307361.png" /&gt;&lt;/span&gt;
 &lt;span class="lia-inline-image-display-wrapper" image-alt="1678145546940.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1515828i852E11B3C741F46E/image-size/large?v=v2&amp;amp;px=999" role="button" title="1678145546940.png" alt="1678145546940.png" /&gt;&lt;/span&gt;
 &lt;span class="lia-inline-image-display-wrapper" image-alt="1678145394575.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1515829iF197BECE279DBE6E/image-size/large?v=v2&amp;amp;px=999" role="button" title="1678145394575.png" alt="1678145394575.png" /&gt;&lt;/span&gt;
 &lt;P&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 Mar 2023 23:35:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/delay-time-using-global-table/m-p/13570033#M70584</guid>
      <dc:creator>ahmedmedhat</dc:creator>
      <dc:date>2023-03-06T23:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Delay time using global table</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/delay-time-using-global-table/m-p/13570034#M70585</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;The global table lookup looks in the row headers (the gray boxes on the left side) for the specified row value. So that lookup will only work if you move the Code column into the row headers.&lt;/P&gt;&lt;P&gt;Otherwise you need to use the &lt;A rel="noopener noreferrer" href="https://docs.flexsim.com/en/23.0/Reference/CodingInFlexSim/FlexScriptAPIReference/Data/Table.html#Method-getValueByKey" target="_blank"&gt;Table.getValueByKey()&lt;/A&gt; method:&lt;/P&gt;&lt;PRE&gt;Table("C1").getValueByKey(token.Code, 3, 2)&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 Mar 2023 23:58:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/delay-time-using-global-table/m-p/13570034#M70585</guid>
      <dc:creator>Matthew_Gillespie</dc:creator>
      <dc:date>2023-03-06T23:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Delay time using global table</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/delay-time-using-global-table/m-p/13570035#M70586</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 no it doesn't work. it says: label Code doesn't exist on token id: ...
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Mar 2023 12:38:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/delay-time-using-global-table/m-p/13570035#M70586</guid>
      <dc:creator>ahmedmedhat</dc:creator>
      <dc:date>2023-03-07T12:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Delay time using global table</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/delay-time-using-global-table/m-p/13570036#M70587</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;There are many examples of how to create tokens based on table values here on Answers.&lt;/P&gt;&lt;P&gt;Often within the token source you will create as many tokens as there are table rows and use the token index to read the correct row for the token.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Mar 2023 13:49:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/delay-time-using-global-table/m-p/13570036#M70587</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2023-03-07T13:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Delay time using global table</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/delay-time-using-global-table/m-p/13570037#M70588</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;It's hard to give you the right answer just looking at an image. Can you attach your model?&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;If the Code label is on an item then you'd want to assign the item to a label in the source activity and then use token.item.Code.&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Mar 2023 16:02:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/delay-time-using-global-table/m-p/13570037#M70588</guid>
      <dc:creator>Matthew_Gillespie</dc:creator>
      <dc:date>2023-03-07T16:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Delay time using global table</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/delay-time-using-global-table/m-p/13570038#M70589</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/87/matthew.g.html" nodeid="87"&gt;@Matthew Gillespie&lt;/A&gt; yes sure here is the model&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/65239-delay-time.fsm" target="_blank"&gt;delay time.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Mar 2023 16:48:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/delay-time-using-global-table/m-p/13570038#M70589</guid>
      <dc:creator>ahmedmedhat</dc:creator>
      <dc:date>2023-03-07T16:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Delay time using global table</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/delay-time-using-global-table/m-p/13570039#M70590</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/65252-delay-time-1.fsm" target="_blank"&gt;delay-time_1.fsm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In this version of your model, the Event-triggered Source is listening to the processor's OnExit and it assigns the exiting item to token.item. Then in the delay activity it uses&lt;/P&gt;&lt;PRE&gt;Table("C1").getValueByKey(token.item.Code, 3, 2)&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Mar 2023 17:27:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/delay-time-using-global-table/m-p/13570039#M70590</guid>
      <dc:creator>Matthew_Gillespie</dc:creator>
      <dc:date>2023-03-07T17:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Delay time using global table</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/delay-time-using-global-table/m-p/13570040#M70591</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 yes it worked thx alot
&lt;/DIV&gt;</description>
      <pubDate>Thu, 09 Mar 2023 21:40:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/delay-time-using-global-table/m-p/13570040#M70591</guid>
      <dc:creator>ahmedmedhat</dc:creator>
      <dc:date>2023-03-09T21:40:54Z</dc:date>
    </item>
  </channel>
</rss>

