Calendar

Element which gets reference to UI component Calendar.

Properties:
Control ID*: [String] Control ID
Control: [LTools.SAP.Model.SAPUIItem] Control reference
Calendar: [LTools.SAP.Model.SAPUICalendar] Variable that stores calendar reference
Variable: [LTools.SAP.Model.SAPUICalendar] Variable to store calendar reference
Date: [DateTime?] Focused date
Range - start: [DateTime?] Date range - start
Range - end: [DateTime?] Date range - end
Date: [DateTime?] Focus date
Range - start: [DateTime?] Date range - start
Range - end: [DateTime?] Date range - end
Time-out*: [Int32] Maximum waiting time for process completion (ms)
LTools.SAP.Model.SAPUICalendar:
[SAPFEWSELib.ISapCalendar] Element - Element reference;
[String] Id - Element ID;
[DateTime?] SelectionStart - Date range start;
[DateTime?] SelectionEnd - Date range end;
[DateTime?] FocusedDate - Focused date;
SelectRange(DateTime from - start, DateTime to - end) - Choose date range.
C#
LTools.SAP.SapApp app = LTools.SAP.SapApp.Init(wf);
LTools.SAP.Model.SAPUICalendar cal = app.Calendar("/app/con[0]/ses[0]/wnd[0]/usr/cntlIMAGE_CONTAINER/shellcont/shell/shellcont[0]/shell");
cal.SelectRange(new DateTime(2020, 2, 24), DateTime.Now);
Python
app = LTools.SAP.SapApp.Init(wf)
cal = app.Calendar("/app/con[0]/ses[0]/wnd[0]/usr/cntlCALE_CONTROL/shellcont/shell/shellcont[0]/shell")
cal.SelectRange(DateTime(2020, 2, 24), DateTime.Now)
JavaScript
var app = _lib.LTools.SAP.SapApp.Init(wf);
var cal = app.Calendar("/app/con[0]/ses[0]/wnd[0]/usr/cntlCALE_CONTROL/shellcont/shell/shellcont[0]/shell");
cal.SelectRange(new _lib.System.DateTime(2020, 2, 24), _lib.System.DateTime.Now);
Last updated