Skip navigation
864 Views 1 Reply Latest reply: Jan 6, 2012 7:49 AM by KarenPeacock RSS
Apprentice 25 posts since
Aug 25, 2010

Has received 1 of 9 achievements.
Currently Being Moderated

Jan 6, 2012 6:31 AM

Future Date Fields

Dear All

 

Implementation Dates.gif

we have the above fields on our change request form.  Does anyone have any ideas on how I can ensure that Planned Date into Pre-Live is a later date than Planned Date into Project etc...

 

I am stumped!

 

Thanks

 

Gillian

  • KarenPeacock Employee 1,131 posts since
    Jul 29, 2008

    Has received 6 of 9 achievements.
    Currently Being Moderated
    1. Jan 6, 2012 7:49 AM (in response to GillReid)
    Re: Future Date Fields

    Hi Gillian

     

    There is a way to set this on the attributes (in Window manager highlight the datetime attribute and set the Date Range Operator = After / Before and then Date Range Attribute = the attribute you want this to check against).  However it looks from your screen extract that you might be using this on Web Access?  If so then I am afraid that this functionality will not work until the next release is out.  7.5 is due for release this month.

     

    You could do a calculation to check whether one date is before the other, and if it isn't the process won't move on.  You can do this by adding in a precondition in the process containing a calculation which will check that the date/time field is filled in as should.

     

    This example calculation below will check that the attributes are filled in and it will also check that the start date is before the end date.
    If this is not true then the action to move the Process forward will not show.

     

    ---
    import System
    static def GetAttributeValue(Change):
    Value = 'False'
    if Change._StartDateTime is not null and Change._EndDateTime is not null and Change._StartDateTime < Change._EndDateTime: Value = 'True'
    return Value
    ---

     

    Best wishes

    Karen

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • Correct Answers - 20 points
  • Helpful Answers - 10 points
LANDESK Community powered by Jive SBS® 4.5.7.1  |  Legal Notices  |  Privacy Policy  |  Icon 

TweeterOn Twitter  |  Icon FacebookOn Facebook © 2007 LANDESK Software