<?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: How to check if a Column in a Global Table exist? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-check-if-a-column-in-a-global-table-exist/m-p/13539369#M46519</link>
    <description>&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/11546/manuels4.html" nodeid="11546"&gt;@Manuel Sinco&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I used the getColHeader() function to parse through the column header values to match to a desired name. If the name is not in any of the columns, a new column with the desired name is added. Here's a model with the code you can test. Simply press Play on the Script and watch it add "Col 5" to GlobalTable1.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="26042-column-value-found.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1501422iB5BBCB117806D8E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="26042-column-value-found.png" alt="26042-column-value-found.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A id="26043" href="https://answers.flexsim.com/storage/attachments/26043-column-value-lookup.fsm"&gt;column-value-lookup.fsm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Feb 2020 20:31:52 GMT</pubDate>
    <dc:creator>tanner_p</dc:creator>
    <dc:date>2020-02-28T20:31:52Z</dc:date>
    <item>
      <title>How to check if a Column in a Global Table exist?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-check-if-a-column-in-a-global-table-exist/m-p/13539368#M46518</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 19.1.0 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;I want to check if a column in a global table with a certain name exists, if not create that column.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Manuel.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 17:22:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-check-if-a-column-in-a-global-table-exist/m-p/13539368#M46518</guid>
      <dc:creator>manuel_s4</dc:creator>
      <dc:date>2020-02-28T17:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if a Column in a Global Table exist?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-check-if-a-column-in-a-global-table-exist/m-p/13539369#M46519</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/11546/manuels4.html" nodeid="11546"&gt;@Manuel Sinco&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I used the getColHeader() function to parse through the column header values to match to a desired name. If the name is not in any of the columns, a new column with the desired name is added. Here's a model with the code you can test. Simply press Play on the Script and watch it add "Col 5" to GlobalTable1.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="26042-column-value-found.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1501422iB5BBCB117806D8E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="26042-column-value-found.png" alt="26042-column-value-found.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A id="26043" href="https://answers.flexsim.com/storage/attachments/26043-column-value-lookup.fsm"&gt;column-value-lookup.fsm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 20:31:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-check-if-a-column-in-a-global-table-exist/m-p/13539369#M46519</guid>
      <dc:creator>tanner_p</dc:creator>
      <dc:date>2020-02-28T20:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if a Column in a Global Table exist?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-check-if-a-column-in-a-global-table-exist/m-p/13539370#M46520</link>
      <description>&lt;P&gt;Thanks Tanner, I thought about it before posting the question. I was thinking about a command referring maybe to the tree to assert something, but if it does not exist is okay. &lt;/P&gt;
&lt;P&gt;I accept the answer based on that someone can use it. &lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 21:54:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-check-if-a-column-in-a-global-table-exist/m-p/13539370#M46520</guid>
      <dc:creator>manuel_s4</dc:creator>
      <dc:date>2020-02-28T21:54:28Z</dc:date>
    </item>
  </channel>
</rss>

