OpenModalCalendar

<< Click to Display Table of Contents >>

Manual > Control Reference > Common to all controls > Common methods >

OpenModalCalendar


 

Simple common dialogOpens the calendar dialog modally.

 


syntax

OpenModalCalendar(

         target,

         startdate,

         enddate,

         selectarea

         )

 

cr_0008

 


Parameters

 

target

 

Type:

Object

 

An object that notifies the currently selected date via the OnCommonEvent event when the OK button is pressed.

 

startdate

 

Type:

time

 

The start date to select. If set to 0, no date is specified.

 

enddate

 

Type:

time

 

End date to select. If set to 0, no date is specified.

 

selectarea

 

Type:

character

 

"DAY" - Select a date

"DAYS" - Select a period (a number of consecutive dates)

For details, please refer to Calendar control.

 

Return Value

 

 

Type:

Boolean

 

FALSE - Failure. TRUE - Success.

 

 

<OnCommonEvent>

 

name

 

Type:

character

 

"RCCalendar"

 

value

 

Type:

character

 

value[0] - Selected start date

value[1] - Selected end date

When selectarea is "DAY", value[0] and value[1] will be the same date.

 


hmtoggle_plus1Explanation

 


Supported


×

Script Action

○

Browser script

×

Calculation Expression Syntax

 


reference