<?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: Fetching value from a table in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/fetching-value-from-a-table/m-p/13657552#M96407</link>
    <description>&lt;LI-CODE lang="cpp"&gt;Table("Products_PrepTime").getRowByKey(token.Product_Type,1) // just for ???&lt;/LI-CODE&gt;&lt;P&gt;but more efficiently replace the line completely by&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;Table("Products_PrepTime").getValueByKey(token.Product_Type,3,1)&lt;/LI-CODE&gt;&lt;P&gt;&lt;A href="https://docs.flexsim.com/en/25.1/Reference/CodingInFlexSim/FlexScriptAPIReference/Data/Table.html" target="_blank" rel="noopener"&gt;Api Table Class properties, methods&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 30 May 2025 09:56:32 GMT</pubDate>
    <dc:creator>joerg_vogel_HsH</dc:creator>
    <dc:date>2025-05-30T09:56:32Z</dc:date>
    <item>
      <title>Fetching value from a table</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/fetching-value-from-a-table/m-p/13657488#M96406</link>
      <description>&lt;P&gt;Hello, I am trying to fetch the SKU value from my table according to my product Type. I have a label in my token called Product_Type. and the name is exactly the same as the value in the Product_Type Column. I want to assign a new label called SKU and retrieve the SKU value of the product type from the table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="miyeDP27D_1-1748595644502.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1538789i360172242C12F753/image-size/medium?v=v2&amp;amp;px=400" role="button" title="miyeDP27D_1-1748595644502.png" alt="miyeDP27D_1-1748595644502.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;what Would it be in the???&amp;nbsp; Table("Products_PrepTime")[???][3]&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 09:02:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/fetching-value-from-a-table/m-p/13657488#M96406</guid>
      <dc:creator>miyeDP27D</dc:creator>
      <dc:date>2025-05-30T09:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching value from a table</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/fetching-value-from-a-table/m-p/13657552#M96407</link>
      <description>&lt;LI-CODE lang="cpp"&gt;Table("Products_PrepTime").getRowByKey(token.Product_Type,1) // just for ???&lt;/LI-CODE&gt;&lt;P&gt;but more efficiently replace the line completely by&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;Table("Products_PrepTime").getValueByKey(token.Product_Type,3,1)&lt;/LI-CODE&gt;&lt;P&gt;&lt;A href="https://docs.flexsim.com/en/25.1/Reference/CodingInFlexSim/FlexScriptAPIReference/Data/Table.html" target="_blank" rel="noopener"&gt;Api Table Class properties, methods&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 09:56:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/fetching-value-from-a-table/m-p/13657552#M96407</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2025-05-30T09:56:32Z</dc:date>
    </item>
  </channel>
</rss>

