Building Mobile Enterprise Applications : webMethods Mobile Designer Native User Interface Reference : Native User Interface (NativeUI) Objects : nUIDateEntry
nUIDateEntry
com.softwareag.mobile.runtime.nui.nUIDateEntry
Use to display a date or time selector control.
Usage Notes
*Use the Format attribute to indicate whether you want a date or time selector control:
For this type of selector
Specify the following for the Format attribute
Date with day, month, and year
nUIDateEntry.dd_MM_yyyy
Time with hours and minutes
nUIDateEntry.HH_mm
*When getting the Date attribute after an EVT_POST_EDIT call to a nUIDateEntry object, only the information for the requested Format is valid. Data outside the specific Format is undefined.
Example
This code sample displays a date selector control. Illustrations of how the example code is rendered on various platforms follows the code sample.
view.add(new nUIDateEntry(NUIID_MY_DATE, null)); //null = current date
Platform
Platform-Specific Class and Illustration
Android
DatePickerDialog
Closed
Open
iOS 7
UIDatePicker
Closed
Open
iOS 6
UIDatePicker
Closed
Open
Windows Phone
Microsoft.Phone.Controls.DatePicker or TimePicker
Closed
Open
 
Windows RT
Windows 8
Windows.UI.Xaml.Controls.Button and ListBox
 
Other
Closed
Open
Copyright © 2007-2017 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback