<?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 Statistics Collector on Event Create/Update in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/statistics-collector-on-event-create-update/m-p/13501815#M16821</link>
    <description>&lt;P&gt;&lt;I&gt;[ FlexSim 20.1.1 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hello!&lt;/P&gt;
 &lt;P&gt;I want to create a Statistics Collector to keep track of the date of the entry and exit for a item on a processor, but the problem is that it is also possible that the item comes back to the same processor again for another process.&lt;/P&gt;
 &lt;P&gt;Right now it is updating the old record when the item reenters (because I need to update the exit date for the same name when the item enters. So it will do the same if the item comes back, it will update, not create a new row, only if it has a new item name), so I lose the previous record, and have an updated one... &lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="30836-4.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1502966iB276B88194181E9E/image-size/large?v=v2&amp;amp;px=999" role="button" title="30836-4.png" alt="30836-4.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;Does anyone have an idea on how to do keep both records with same item name: update only for exit (EndTime) and create a new row only when the item enters (StartTime)? Could it be done with a custom code at the Row value on the statistics collector Events properties?&lt;/P&gt;
 &lt;P&gt;My Row Value on the Events properties is the Item Name (return data.item.Name), so it can find it at the Item Column and update the item for the EndTime Column.&lt;/P&gt;
 &lt;P&gt;Any help is appreciated, thanks for your time!&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Mon, 13 Jul 2020 05:35:20 GMT</pubDate>
    <dc:creator>ana_pc2</dc:creator>
    <dc:date>2020-07-13T05:35:20Z</dc:date>
    <item>
      <title>Statistics Collector on Event Create/Update</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/statistics-collector-on-event-create-update/m-p/13501815#M16821</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 20.1.1 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hello!&lt;/P&gt;
 &lt;P&gt;I want to create a Statistics Collector to keep track of the date of the entry and exit for a item on a processor, but the problem is that it is also possible that the item comes back to the same processor again for another process.&lt;/P&gt;
 &lt;P&gt;Right now it is updating the old record when the item reenters (because I need to update the exit date for the same name when the item enters. So it will do the same if the item comes back, it will update, not create a new row, only if it has a new item name), so I lose the previous record, and have an updated one... &lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="30836-4.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1502966iB276B88194181E9E/image-size/large?v=v2&amp;amp;px=999" role="button" title="30836-4.png" alt="30836-4.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;Does anyone have an idea on how to do keep both records with same item name: update only for exit (EndTime) and create a new row only when the item enters (StartTime)? Could it be done with a custom code at the Row value on the statistics collector Events properties?&lt;/P&gt;
 &lt;P&gt;My Row Value on the Events properties is the Item Name (return data.item.Name), so it can find it at the Item Column and update the item for the EndTime Column.&lt;/P&gt;
 &lt;P&gt;Any help is appreciated, thanks for your time!&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 13 Jul 2020 05:35:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/statistics-collector-on-event-create-update/m-p/13501815#M16821</guid>
      <dc:creator>ana_pc2</dc:creator>
      <dc:date>2020-07-13T05:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Statistics Collector on Event Create/Update</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/statistics-collector-on-event-create-update/m-p/13501816#M16822</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Below where you set the Row Value, there is a checkbox "Finish involved rows after this event". If you check that for your Processor Exit event, the Statistics Collector will create a new row when the row value is ever seen again after that event.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="30853-1594627041866.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1502964iB06A52F423C41F97/image-size/large?v=v2&amp;amp;px=999" role="button" title="30853-1594627041866.png" alt="30853-1594627041866.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="30854-1594627066739.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1502965i2543678D54BCC644/image-size/large?v=v2&amp;amp;px=999" role="button" title="30854-1594627066739.png" alt="30854-1594627066739.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;See &lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/30855-statscollectorfinishrow.fsm" target="_blank"&gt;StatsCollectorFinishRow.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 13 Jul 2020 07:58:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/statistics-collector-on-event-create-update/m-p/13501816#M16822</guid>
      <dc:creator>mischa_spelt</dc:creator>
      <dc:date>2020-07-13T07:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Statistics Collector on Event Create/Update</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/statistics-collector-on-event-create-update/m-p/13501817#M16823</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Oh, Thanks!! It was easier than I thought &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 13 Jul 2020 08:46:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/statistics-collector-on-event-create-update/m-p/13501817#M16823</guid>
      <dc:creator>ana_pc2</dc:creator>
      <dc:date>2020-07-13T08:46:29Z</dc:date>
    </item>
  </channel>
</rss>

