<?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 calculate due date from receivedTime() in ArcGIS GeoEvent Server Questions</title>
    <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/how-to-calculate-due-date-from-receivedtime/m-p/367619#M1558</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok - I see what you are saying.&amp;nbsp; But, I can't change the field type because I was using an existing field -- i think that boolean is irrelevant (and confusing).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="501763" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/501763_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So then - i tried to a new field and then using the field mapper -- but that didn't work either.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Then, i remembered this: the due date field is new since this geoevent service was created. and even though i had added it to the geoevent definitions i was using for the inputs, etc --- the output service (Update a Feature Service) didn't know about my new duedate field. BUT - i don't know how to fix that without recreating the output service.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways -- removing this output,&amp;nbsp; deleting the corresponding output service, recreating it that service, then reconfiguring my geoevent service fixed the use.&amp;nbsp; The field calculator as originally designed worked as expected. oy!&lt;/P&gt;&lt;P&gt;&lt;IMG alt="highlight" class="jive-emoji jive-image image-2 j-img-original" src="https://community.esri.com/legacyfs/online/501815_geoevent.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jul 2020 02:16:12 GMT</pubDate>
    <dc:creator>jessneuner</dc:creator>
    <dc:date>2020-07-30T02:16:12Z</dc:date>
    <item>
      <title>How to calculate due date from receivedTime()</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/how-to-calculate-due-date-from-receivedtime/m-p/367615#M1554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I'm missing something simple and hoping the group will be able to set me straight. And possibly offer a different way to accomplish this --&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We want to calculate a standard due date based on the submit/creation date of problems added to our hosted feature layer. By default, all new problems should be due 5 days after they were created. Because we are already using GeoEvent for a few other things as new records are submitted, thought we could add this in as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT, I don't know how to do it -- I think that maybe I'm missing a conversion back to date format?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a look at the whole geoevent service:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/501755_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's what the Calculate Due Date looks like now -- but it does not work --&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/501757_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any and all ideas!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2020 19:43:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/how-to-calculate-due-date-from-receivedtime/m-p/367615#M1554</guid>
      <dc:creator>jessneuner</dc:creator>
      <dc:date>2020-07-29T19:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate due date from receivedTime()</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/how-to-calculate-due-date-from-receivedtime/m-p/367616#M1555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried using field calculator to fill in a received field then use the received field in your field calculator for due date instead of calculating it all at once?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2020 20:37:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/how-to-calculate-due-date-from-receivedtime/m-p/367616#M1555</guid>
      <dc:creator>BrianLomas</dc:creator>
      <dc:date>2020-07-29T20:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate due date from receivedTime()</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/how-to-calculate-due-date-from-receivedtime/m-p/367617#M1556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No -- but I do have a 'created date' field (editor tracking) so I tried that, but it didn't work either ...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/501759_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not totally confident about this millisecond calculation either. the best examples I've seen are only for filtering, not for calculating... but maybe it needs to go to a Long field and then to a date field?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2020 20:43:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/how-to-calculate-due-date-from-receivedtime/m-p/367617#M1556</guid>
      <dc:creator>jessneuner</dc:creator>
      <dc:date>2020-07-29T20:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate due date from receivedTime()</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/how-to-calculate-due-date-from-receivedtime/m-p/367618#M1557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tested this in our geoevent environment and it seemed to work. It resulted in a time of "&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: small;"&gt;Mon Aug 03 15:58:04 CDT 2020&lt;/SPAN&gt;"... In the last screenshot your field type is "boolean", you should set it to date type. I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/501765_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2020 21:02:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/how-to-calculate-due-date-from-receivedtime/m-p/367618#M1557</guid>
      <dc:creator>BrianLomas</dc:creator>
      <dc:date>2020-07-29T21:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate due date from receivedTime()</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/how-to-calculate-due-date-from-receivedtime/m-p/367619#M1558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok - I see what you are saying.&amp;nbsp; But, I can't change the field type because I was using an existing field -- i think that boolean is irrelevant (and confusing).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="501763" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/501763_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So then - i tried to a new field and then using the field mapper -- but that didn't work either.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Then, i remembered this: the due date field is new since this geoevent service was created. and even though i had added it to the geoevent definitions i was using for the inputs, etc --- the output service (Update a Feature Service) didn't know about my new duedate field. BUT - i don't know how to fix that without recreating the output service.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways -- removing this output,&amp;nbsp; deleting the corresponding output service, recreating it that service, then reconfiguring my geoevent service fixed the use.&amp;nbsp; The field calculator as originally designed worked as expected. oy!&lt;/P&gt;&lt;P&gt;&lt;IMG alt="highlight" class="jive-emoji jive-image image-2 j-img-original" src="https://community.esri.com/legacyfs/online/501815_geoevent.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2020 02:16:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/how-to-calculate-due-date-from-receivedtime/m-p/367619#M1558</guid>
      <dc:creator>jessneuner</dc:creator>
      <dc:date>2020-07-30T02:16:12Z</dc:date>
    </item>
  </channel>
</rss>

