<?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 Due Date - Javascript in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/due-date-javascript/m-p/300884#M254014</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to filter and list all records that will be due in 7 days.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this correct? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var now = new Date();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var filter = {filter&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://connect.hyland.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;ueByDate:[MIN TO \"" + (now.getDate()+7)&amp;nbsp; + "\"]};&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Oct 2013 02:43:21 GMT</pubDate>
    <dc:creator>davedran</dc:creator>
    <dc:date>2013-10-25T02:43:21Z</dc:date>
    <item>
      <title>Due Date - Javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/due-date-javascript/m-p/300884#M254014</link>
      <description>Hi!I am trying to filter and list all records that will be due in 7 days.Is this correct? var now = new Date();var filter = {filter&lt;IMG id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;ueByDate:[MIN TO \"" + (now.getDate()+7)&amp;nbsp; + "\"]};Thank you.David</description>
      <pubDate>Fri, 25 Oct 2013 02:43:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/due-date-javascript/m-p/300884#M254014</guid>
      <dc:creator>davedran</dc:creator>
      <dc:date>2013-10-25T02:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Due Date - Javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/due-date-javascript/m-p/300885#M254015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I believe that the dates must be ISO8601 with the - quoted.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 14:04:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/due-date-javascript/m-p/300885#M254015</guid>
      <dc:creator>rjohnson</dc:creator>
      <dc:date>2013-10-25T14:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Due Date - Javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/due-date-javascript/m-p/300886#M254016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It depends on what record you want to filter and where.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;By Due Date I guess you mean to use a filter on tasks page or on workflow instance.If so you can use dueBefore and dueAfter paramter in webscript api url.I you want to search the model directly use dueDate property&amp;nbsp; in iso08601 format.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Oct 2013 01:02:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/due-date-javascript/m-p/300886#M254016</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2013-10-27T01:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Due Date - Javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/due-date-javascript/m-p/300887#M254017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your replies.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did the following and it almost works&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var filters = [label:"Due next 7 days ",filter:"@dueDate:[MIN TO \"" + now.getFullYear() + "-" + (now.getMonth()+1) + "-" + (now.getDate()+7) + "\"]"}];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It will list all of due records that will due within next 7 days, but it will also list all records that dates are less than today's date.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I only need to list records that are GTE (than today) and LTE (7 days from today).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was not able to find any method in JavaScript called dueAfter (which sounds prefect for my need), that will list all due date from today and show records for next 7 days.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Appreciate your guidance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 06:45:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/due-date-javascript/m-p/300887#M254017</guid>
      <dc:creator>davedran</dc:creator>
      <dc:date>2013-10-28T06:45:29Z</dc:date>
    </item>
  </channel>
</rss>

