AnsweredAssumed Answered

Hide Object When...

Question asked by bvanni on Sep 12, 2018
Latest reply on Sep 14, 2018 by bvanni

Hello,

 

I am trying to use the "Hide Object When" function on an object within a layout in our database.

The argument I am using in "hide object when" is:

 

Case (

Appointments::VisitResultMinusDemo = 0 or PatternCount (  $$Permissions ; "3DayDemo" ) = 1; 1;

Get (WindowMode ) = 1; 1;

0 )

 

The above works great.

 

Now I am trying to introduce a new part where it will only hide the object if the current date is not already 3 days past the date of the appointment.

So basically a 72 hour rule where the object will disapear if it has been 3 days past the Appointment::Date

(Hope that makes sense)

 

So something along these lines,

 

Case (

Appointments::VisitResultminusDemo = 0 and ( Appointments::Date + 3 ) ≤ Get( CurrentDate ) or PatternCount (  $$Permissions ; "3DayDemo" ) = 1; 1;

Get (WindowMode ) = 1; 1;

0 )

Outcomes