<?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 use 2 row headers without clearing 1st row while reset? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-2-row-headers-without-clearing-1st-row-while-reset/m-p/13500585#M15896</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/19365/felixmh.html" nodeid="19365"&gt;@Felix Möhlmann&lt;/A&gt;,&lt;/P&gt;
 &lt;P&gt;I agree to you your point but I want to use clear cells also along with delete all option. but that is erasing the entry for 1st row which should not be the case since I am using it as header? &lt;/P&gt;
 &lt;P&gt;I tried changing row loop but even that is not solving my purpose.&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1652090089503.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1510223i30C0327A46C53356/image-size/large?v=v2&amp;amp;px=999" role="button" title="1652090089503.png" alt="1652090089503.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;My intention is to clearing cells from 2nd row. Can you suggest what I need to change if I am doing something wrong here?&lt;/P&gt;
 &lt;P&gt;Thank you!&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Mon, 09 May 2022 09:57:44 GMT</pubDate>
    <dc:creator>rajankur6494</dc:creator>
    <dc:date>2022-05-09T09:57:44Z</dc:date>
    <item>
      <title>How to use 2 row headers without clearing 1st row while reset?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-2-row-headers-without-clearing-1st-row-while-reset/m-p/13500576#M15887</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 20.0.10 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi Team,&lt;/P&gt;
 &lt;P&gt;I have 2 row headers in string format in global table as below in image. I want to write data from 2nd row in this table using code. While using clear all cells options of global table at reset my 1st row data is also getting clear. How retain data for 1st row as these are headers of table format?&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1651825303225.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1510226i44877B4991F6226C/image-size/large?v=v2&amp;amp;px=999" role="button" title="1651825303225.png" alt="1651825303225.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;Thank you!&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 06 May 2022 08:25:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-2-row-headers-without-clearing-1st-row-while-reset/m-p/13500576#M15887</guid>
      <dc:creator>rajankur6494</dc:creator>
      <dc:date>2022-05-06T08:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to use 2 row headers without clearing 1st row while reset?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-2-row-headers-without-clearing-1st-row-while-reset/m-p/13500577#M15888</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;FlexSim has got only one header row! First table row is a data row!&lt;/P&gt;&lt;P&gt;You can only fill first row with values upon reset in a trigger yourself, but please keep in mind, you maybe mix different datatypes in columns!&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 06 May 2022 09:32:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-2-row-headers-without-clearing-1st-row-while-reset/m-p/13500577#M15888</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2022-05-06T09:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to use 2 row headers without clearing 1st row while reset?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-2-row-headers-without-clearing-1st-row-while-reset/m-p/13500578#M15889</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/461/joerg.v.html" nodeid="461"&gt;@Joerg Vogel&lt;/A&gt; ,&lt;/P&gt;
 &lt;P&gt;I got your point. But how to access cell with column name here if we don't have any column name in top header (case 1) or we have same column name in top header (case 2). Do you have any idea?&lt;/P&gt;
 &lt;P&gt;case1:&lt;/P&gt;
 &lt;P&gt;Col1 Col2 Col3 Col4 Col5 Col6 Col7 Col8&lt;/P&gt;
 &lt;P&gt;Mon Tue&lt;/P&gt;
 &lt;P&gt;Case 2:&lt;/P&gt;
 &lt;P&gt;Col1 Col2 Col3 Col4 Col5 Col6 Col7 Col8&lt;/P&gt;
 &lt;P&gt;Mon Mon Mon Mon Tue Tue Tue Tue&lt;/P&gt;
 &lt;P&gt;Is there any way to do it more effectively?&lt;/P&gt;
 &lt;P&gt;Thank you!&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 06 May 2022 10:15:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-2-row-headers-without-clearing-1st-row-while-reset/m-p/13500578#M15889</guid>
      <dc:creator>rajankur6494</dc:creator>
      <dc:date>2022-05-06T10:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to use 2 row headers without clearing 1st row while reset?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-2-row-headers-without-clearing-1st-row-while-reset/m-p/13500579#M15890</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/461/joerg.v.html" nodeid="461"&gt;@Joerg Vogel&lt;/A&gt; ,&lt;/P&gt;
 &lt;P&gt;I got your point. But how to access cell with column name here if we don't have any column name in top header (case 1) or we have same column name in top header (case 2). Do you have any idea?&lt;/P&gt;
 &lt;P&gt;case1:&lt;/P&gt;
 &lt;P&gt;Col1 Col2 Col3 Col4 Col5 Col6 Col7 Col8&lt;/P&gt;
 &lt;P&gt;Mon Tue&lt;/P&gt;
 &lt;P&gt;Case 2:&lt;/P&gt;
 &lt;P&gt;Col1 Col2 Col3 Col4 Col5 Col6 Col7 Col8&lt;/P&gt;
 &lt;P&gt;Mon Mon Mon Mon Tue Tue Tue Tue&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;Is there any way to do it more effectively?&lt;/P&gt;
 &lt;P&gt;Thank you!&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 06 May 2022 10:17:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-2-row-headers-without-clearing-1st-row-while-reset/m-p/13500579#M15890</guid>
      <dc:creator>rajankur6494</dc:creator>
      <dc:date>2022-05-06T10:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to use 2 row headers without clearing 1st row while reset?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-2-row-headers-without-clearing-1st-row-while-reset/m-p/13500580#M15891</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;The 'Delete All Rows' option uses the 'Table.setSize()' command. You can edit the number of rows in the code window and set it to 1, so the trigger will leave the first row.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1651832427244.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1510222i02EA5D4C9D8640A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="1651832427244.png" alt="1651832427244.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 06 May 2022 10:21:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-2-row-headers-without-clearing-1st-row-while-reset/m-p/13500580#M15891</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2022-05-06T10:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to use 2 row headers without clearing 1st row while reset?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-2-row-headers-without-clearing-1st-row-while-reset/m-p/13500581#M15892</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;I'm not sure if I entirely understand you goal, but generally you could jstu combine the two expressions into one and create unique headers that way.&lt;P&gt;Mon_A Mon_B Mon_C Tue_A Tue_B Tue_C&lt;/P&gt;&lt;P&gt;When you know both parts you can combine them with a '+'.&lt;/P&gt;&lt;PRE&gt;string day = "Mon";
string ID = "B";
int value = Table(tableName)[row][day + "_" + ID];&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 06 May 2022 11:47:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-2-row-headers-without-clearing-1st-row-while-reset/m-p/13500581#M15892</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2022-05-06T11:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to use 2 row headers without clearing 1st row while reset?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-2-row-headers-without-clearing-1st-row-while-reset/m-p/13500582#M15893</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;If you have want to get access to a multiheader table structure, you can convert a table cell address to an array and put each cell into a List to look for field values matching your conditions like&lt;/P&gt;&lt;PRE&gt;List("List1").pull("WHERE name = 'a' AND weekday = 'tue',0,0);&lt;/PRE&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/51825-translate-table-to-list-multiple-keys.fsm" target="_blank"&gt;translate_table_to_list_multiple_keys.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 06 May 2022 12:13:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-2-row-headers-without-clearing-1st-row-while-reset/m-p/13500582#M15893</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2022-05-06T12:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to use 2 row headers without clearing 1st row while reset?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-2-row-headers-without-clearing-1st-row-while-reset/m-p/13500583#M15894</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Have you considered &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;renaming your column headers Mon-A, Mon-B, Mon-C, Tue-A etc.  &lt;/LI&gt;&lt;LI&gt;having column headers,   Name, Day, Shift   and then a row for each of your shift assignments&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;That way you can preserve the table integrity and use SQL or other functions without having to allow for row 1 being a header.&lt;/P&gt;&lt;P&gt;By the way you can preserve the column headers and have no rows using :&lt;/P&gt;&lt;OL&gt;&lt;LI style="line-height: 20px; list-style-type: decimal;"&gt;&lt;PRE&gt;&lt;SPAN style="color: rgb(102, 0, 102);"&gt;Table&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 0);"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 136, 0);"&gt;"GlobalTable1"&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 0);"&gt;).&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;setSize&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 0);"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 102, 102);"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 0);"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 0, 102);"&gt;Table&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 0);"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 136, 0);"&gt;"GlobalTable1"&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 0);"&gt;).&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;numCols&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 0);"&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 06 May 2022 12:38:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-2-row-headers-without-clearing-1st-row-while-reset/m-p/13500583#M15894</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2022-05-06T12:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to use 2 row headers without clearing 1st row while reset?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-2-row-headers-without-clearing-1st-row-while-reset/m-p/13500584#M15895</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Hi 
 &lt;A rel="user" href="https://answers.flexsim.com/users/226/jason.l.html" nodeid="226"&gt;@Jason Lightfoot&lt;/A&gt;,
 &lt;P&gt;I don't understand properly. I only understood 1st point to consider Weedays Name based on column like Mon-A, Mon-B............etc. Can you upload screenshot or model for better explanation?&lt;/P&gt;
 &lt;P&gt;Thank you!&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 09 May 2022 09:51:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-2-row-headers-without-clearing-1st-row-while-reset/m-p/13500584#M15895</guid>
      <dc:creator>rajankur6494</dc:creator>
      <dc:date>2022-05-09T09:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to use 2 row headers without clearing 1st row while reset?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-2-row-headers-without-clearing-1st-row-while-reset/m-p/13500585#M15896</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/19365/felixmh.html" nodeid="19365"&gt;@Felix Möhlmann&lt;/A&gt;,&lt;/P&gt;
 &lt;P&gt;I agree to you your point but I want to use clear cells also along with delete all option. but that is erasing the entry for 1st row which should not be the case since I am using it as header? &lt;/P&gt;
 &lt;P&gt;I tried changing row loop but even that is not solving my purpose.&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1652090089503.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1510223i30C0327A46C53356/image-size/large?v=v2&amp;amp;px=999" role="button" title="1652090089503.png" alt="1652090089503.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;My intention is to clearing cells from 2nd row. Can you suggest what I need to change if I am doing something wrong here?&lt;/P&gt;
 &lt;P&gt;Thank you!&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 09 May 2022 09:57:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-2-row-headers-without-clearing-1st-row-while-reset/m-p/13500585#M15896</guid>
      <dc:creator>rajankur6494</dc:creator>
      <dc:date>2022-05-09T09:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to use 2 row headers without clearing 1st row while reset?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-2-row-headers-without-clearing-1st-row-while-reset/m-p/13500586#M15897</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Here's an example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1652091627602.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1510225i34157B214F497921/image-size/large?v=v2&amp;amp;px=999" role="button" title="1652091627602.png" alt="1652091627602.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;From this data you can either retrieve it globally using select statements like&lt;/P&gt;&lt;PRE&gt;SELECT Shift FROM ShiftAllocation WHERE Person='Pete' AND Day='Mon'&lt;/PRE&gt;&lt;P&gt;..or you can use it to make a data structure on the object as a label.  In your version that would be a table or array or in the later versions you could create a Map type where reading the value is really simple:&lt;/P&gt;&lt;PRE&gt;Map shiftmap=operator.shiftMap; &amp;nbsp;// the label
string shift =shiftMap["Mon"]; &amp;nbsp; //sets the shift local variable to 'A' &amp;nbsp;for example.&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 09 May 2022 10:26:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-2-row-headers-without-clearing-1st-row-while-reset/m-p/13500586#M15897</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2022-05-09T10:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to use 2 row headers without clearing 1st row while reset?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-2-row-headers-without-clearing-1st-row-while-reset/m-p/13500587#M15898</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;The table is cleared in line 10 ("current.clear()"). That command sets all cells to an appropriate 'empty' value based on the datatype. The code afterwards checks for certain types that are not covered by the command.&lt;/P&gt;&lt;P&gt;I don't understand your intention though. Why would you need to clear cells which you just deleted?&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 09 May 2022 10:35:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-2-row-headers-without-clearing-1st-row-while-reset/m-p/13500587#M15898</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2022-05-09T10:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to use 2 row headers without clearing 1st row while reset?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-2-row-headers-without-clearing-1st-row-while-reset/m-p/13500588#M15899</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/35485/ankura3.html" nodeid="35485"&gt;@Ankur A3&lt;/A&gt;, was one of Felix Möhlmann's or Jason Lightfoot's or Joerg Vogel's or Iago MF's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. 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 unaccept and comment back to reopen your question.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 12 May 2022 18:47:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-2-row-headers-without-clearing-1st-row-while-reset/m-p/13500588#M15899</guid>
      <dc:creator>kavika_faleumu</dc:creator>
      <dc:date>2022-05-12T18:47:33Z</dc:date>
    </item>
  </channel>
</rss>

