Results 1 to 3 of 3

Thread: Automatic expiration date.

  1. #1
    DanyC is offline Sugar Community Member
    Join Date
    Jan 2012
    Location
    Buenos Aires, Argentina
    Posts
    56

    Default Automatic expiration date.

    Good afternoon everyone,

    Here's the thing: I've made my own custom module for reports. Since I'm using Qlikview (the free version) with CuteWriter to make the pdfs files, the idea is to add reports that last a certain period of time (two weeks, a month, we'll see that) before replacing them with the up-to-date ones. The question is this: Is there any way to create an 'automatic' expiration date? I mean, if we decided to do a report valid for two weeks, that the expiration date will automatically be two weeks after the document was uploaded.

    I hope I've made myself clear.

    Thanks in advance!

  2. #2
    sts's Avatar
    sts
    sts is offline Sugar Community Member
    Join Date
    Aug 2010
    Posts
    978

    Default Re: Automatic expiration date.

    What about a scheduler job running once a day and setting an expiration flag (maybe the delete flag?) if the creation date or last modification date is more than x days ago?
    Stefan Ulrich Sauer
    System Analyst

    Devoteam Danet GmbH
    Gutenbergstraße 10
    D-64331 Weiterstadt
    Germany
    email: Stefan-Ulrich.Sauer@devoteam.com
    http://www.devoteam.de

  3. #3
    DanyC is offline Sugar Community Member
    Join Date
    Jan 2012
    Location
    Buenos Aires, Argentina
    Posts
    56

    Default Re: Automatic expiration date.

    Thank you for your answer. That sounds pretty good, actually.
    I'll work with the code, since I'm a bit new in Sugar, and let you know how it turns out.

    Thanks again!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 2010-11-19, 03:42 PM
  2. Alert on date expiration
    By Danielg42 in forum Developer Help
    Replies: 1
    Last Post: 2008-03-15, 01:39 AM
  3. "doucments" -> require "expiration date"?
    By techex in forum Developer Help
    Replies: 1
    Last Post: 2005-05-04, 05:47 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •