Re: check box on a form should be visible depending on the date of the month (200 Views)
Reply
Advisor
Chosavarapu
Posts: 28
Registered: ‎10-15-2008
Message 1 of 5 (257 Views)
Accepted Solution

check box on a form should be visible depending on the date of the month

Hello All,

 

I have a condition where the software uninstall requests are allowed to log only between 25th and 30th of the month. I created a check-box to make the uninstall true in the request. Now my challange is to make this visible only between 25th and 30th of every month.

 

I created this check-box in svccat.request.info form.

 

Please help achieving this functionality.

 

Regards,

Chosavarapu.

Please use plain text.
Honored Contributor
Vadim Gorda
Posts: 5,533
Registered: ‎11-10-2008
Message 2 of 5 (238 Views)

Re: check box on a form should be visible depending on the date of the month

Hello,

if i am not mistaken there is not format control available for it.

 

You might try to tailor a global variable via login.DEFAULT.

There for  example on JS tab you can write a scipt which will make some global variable to true if system.functions.date(tod())>25 && system.functions.date(tod())>30. You have to play with commands day, date and so on as i don't have a system under hand to check the exact name  of it myself.

Please use plain text.
Frequent Advisor
bzember
Posts: 42
Registered: ‎10-09-2011
Message 3 of 5 (229 Views)

Re: check box on a form should be visible depending on the date of the month

Dynamic View Dependency - DVD is described in format dep.g.

open it with Format Designer.

Please use plain text.
Honored Contributor
Piku
Posts: 3,687
Registered: ‎06-17-2010
Message 4 of 5 (213 Views)

Re: check box on a form should be visible depending on the date of the month

Hi,

As Vadim said you have to use some variable and use it in visible condition of check box.

Add below expression in Initialization Expressions on FC svccat.request.info form or to FC svcCart

if (day(tod()) >=25) then ($uninstall=true) else ($uninstall=false)

then but this variable in visible condition of check box as
[$uninstall]=true


Here assumed that you want to make it visible all the days after 25 (and since max value would be 31 hence it would be again invisible from first day of month).

Also can try it in FC login.DEFAULT but it will have small overhead for all the user logging at login time.

hth,
Please use plain text.
Advisor
Chosavarapu
Posts: 28
Registered: ‎10-15-2008
Message 5 of 5 (200 Views)

Re: check box on a form should be visible depending on the date of the month

Hello Vadim and Piku,

 

First of all, I apologize for a delayed response.

 

I sincerely thank you for giving me the solution. 

 

@Piku, thank you for providing the step by step procedure to configure this visible condition.

 

Regards,

Subbu.

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation