Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
raju_salmon
Creator II
Creator II

Calendar object date restriction

Hi,

In one of my application i have created two calendar objects two select date range for user. These steps i have followed.

Create 4 variables: Date is the field in my app

vLimit1 - =Min(Num(Date))

vLimit2 = =Max(Num(Date))

vToDate = Null()  - Changes based on user selection

vFromDate = Null()  - Changes based on user selection

Created two calendar objects using vToDate and vFromDate variables with min and max values are vLimit1 and vLimit2.

Applied variable level triggers on vToDate and vFromDate with below expression on Date field (select in field)

='>='&Date(vToDate)&'<='&Date(vFromDate)

Now this is working absolutely fine, if i select date range from calendar objects then Date field getting selected. But however i cannot able to select out of the range (which i have already selected ) unless i clear the date field. This is may because of Min and Max date for vLimit1 and vLimit2 variables.

My problem is, can we select any date range without clearing the date filter? Please suggest.

Thanks a ton,

Raju.

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Do you mean you want the limits to remain the same even after you've selected a date? Then

     Set vLimit1 = =Min({1} Date);

     Set vLimit2 = =Max({1} Date);

Num() is probably unnecessary here - it is a formatting function.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

2 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Do you mean you want the limits to remain the same even after you've selected a date? Then

     Set vLimit1 = =Min({1} Date);

     Set vLimit2 = =Max({1} Date);

Num() is probably unnecessary here - it is a formatting function.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
arvind_patil
Partner - Specialist III
Partner - Specialist III

Hi Raju,

Please give sample Example of It. then it will understand more .

Thanks,

Arvind Patil