Testing Siebel Business Applications > Keywords Reference > Keywords Description >
SetDateTime
You use the SetDateTime keyword to call the DateTime or Date pop-up calendar specify the date and time. Signature
The SetDateTime keyword supports the following signature: SetDateTime(AppletRN|FieldRN|[RowNum]/[Active_Record],DD|MM|YYYY|HH|MM|SS (or) today(+/-))
Note the following about the SendDateTime keyword signature:
- Active_Record obtains the row number of the active record during execution.
- If the time is not specified, then the default time is 00:00:00. Value can be a DATETIME, a DATE, or a Variable.
Desktop Examples
The following table describes how to use the SetDateTime keyword to call the DateTime or Date pop-up calendar to provide the date and time in desktop applications.
|
|
|
|
Opportunity Form Applet - Child|CloseDate2 |
01|01|2015 |
|
Chooses a date in the Calendar pop-up window. |
Activity List Applet With Navigation|Planned |
Today |
|
Sets the current date and time. |
Activity List Applet With Navigation|Planned|Active_Record |
Today |
|
Sets the current date and time in the field of the active record. |
Activity List Applet With Navigation|Planned |
05|08|2014|10|17|20 |
|
Sets the specified date and time. |
Activity List Applet With Navigation|Planned |
05|08|2014|10|17|20 |
|
Sets the specified date and time. |
Opportunity Form Applet - Child|CloseDate2 |
Today+365 |
|
Sets the specified date plus (+)365 days. |
Opportunity Form Applet - Child|CloseDate2 |
Today-365 |
|
Sets the specified date minus (-) 365 days. |
Opportunity Form Applet - Child|CloseDate2 |
28|01|CURRENTYEAR |
|
Sets a specified date in the current year. |
Opportunity Form Applet - Child|CloseDate2 |
28|01|CURRENTYEAR-1 |
|
Sets the specified date in the previous year. |
Opportunity Form Applet - Child|CloseDate2 |
28|01|CURRENTYEAR+2 |
|
Sets the specified date in the current year plus (+)2. |
Mobile Examples
The following table describes how to use the SetDateTime keyword to call the DateTime or Date pop-up calendar to provide the date and time in mobile applications (on mobile devices).
|
|
|
|
SHCE Sales Contact Opportunity List Applet - Mobile|Primary Revenue Close Date |
Today |
|
Sets the current date and time. |
SHCE Sales Opportunity Quote List Applet ReadOnly - Mobile|Start Date |
Today+9 |
|
Sets the current date and time. |
SHCE Quote Entry Applet - Mobile|StartDate |
11|5|2014 |
|
Sets the specified date in the target object. |
SHCE Sales Order Entry List Applet - Mobile|Order Date |
11|5|2014|12|12|30 |
|
Sets the specified date and time in the target object. |
SHCE Sales Order Entry List Applet - Mobile|Order Date |
1|8|2014|12|30|20 |
|
Sets the specified date in the target object. |
|