Show a DatePicker Dialog with default date, weeknumbers. Parameter: Title, Header, Prompt, Default Date Result: String with selected date or an empty string if cancelled Note: Important To set the pattern prior calling this method; If default date Is empty ("") Then actual date Is set
Show DidYouKnow Dialog with Icon. The content is shown in an expanded TextArea. Parameter Title, Header and the Did You Know Content as string. Returns None Note: Ensure the icon file dyk.png is added to the B4J project.
Show an Exception Dialog in an expanded Textarea. Parameter Title, Header, Content as string. Ex as Exception. Returns None Note: For the content, an option is to use LastException.Message and for Ex the LastException.
Show an Extended Dialog which has a expandable Textarea. This textarea is by default not expanded. Parameter Title, Header, Content and Extended Content as string. Returns None
Show a List Dialog from which one item can be selected. Parameter: Title, Header information, List of items to select from. Result Selected item As String OR an empty String
Show a List Dialog from which multiple items can be selected. Parameter: Title, Header information, List of items to select from. Result One OR more selected items As a Map (nr:item) OR a non initialized Map
LoginDialog (TitleAsString, HeaderAsString) AsMap
Show a Login Dialog. Parameter Title, Header as string. Returns a map username:username, password:password If cancel selected, the returned map will not be initialized.
Show a Login Dialog with Icon and default UserName. Parameter Title, Header and default Username as string. Returns a map username:username, password:password If cancel selected, the returned map will not be initialized. Note: Ensure the icon file login.png is added to the B4J project.
Show a Message Dialog with HTML formatted content in an expanded WebView. Anchors are handled if defined like Jump To myanchor ... Parameter Title, Content HTML formatted as string. Returns None
Show a Select Dialog from which a single item can be selected. Parameter: Title, List of items to select from, Height and Width Result Selected item As Int or -1 if nothing selected
SetParentWindow (ParentFormAsForm) AsString
Set the parent window for the dialogs. Parameter: The form to be used as parent window Example: SetParentWindow(MainForm) Notes: To reset the parentwindow, call SetParentWindow(Null) The parent window can not be set for ToastMessageShow
Show a Spinner Double Dialog with default value and amount to step by. Parameter: Title, Header, Label as string, Double Values for Min, Max, InitialValue, AmountToStepBy Result: Double with selected value or -1 if cancelled
Show a Spinner Integer Dialog with default value, amount to step by. Parameter: Title, Header, Label, Integer Values for Min, Max, InitialValue, AmountToStepBy Result: Integer with selected value or -1 if cancelled
Show a Spinner List Dialog. Parameter: Title, Header and label as string, Items As List Result: String with selected value or empty string if cancelled
Show a TextInput Dialog with one field with user cancel handling. Parameter Title, Header, Input Label and the default text as string. Returns the text entered as string or a null string if dialog cancelled To test the result of the dialog use like If result.EqualsIgnoreCase(Null) Then ...
Show a TextInput Dialog with one field. Parameter Title, Header, Input Label and the default text as string. Returns the text entered as string or an empty string
Show a TextInputDialog with two fields. Parameter: Title and Header, Prompts (Label1 and Label2) for field1 and 2, Default values For field1 and 2 Result: Map with 2 entries holding field1:textinputfield1, field2:textinputfield2 or if cancelled a non initialized Map
Show a TextInput Dialog with one field with user cancel handling Parameter Title, Header, Input Label and the default text as string. Returns the text entered as string or a null string if dialog cancelled To test the result of the dialog use like If result.EqualsIgnoreCase(Null) Then ...
Show a ToastMessage. Parameter: Message displayed. Can include html tags (ensure to include the html and /html tags Parameter: Duration miliseconds keeping the message visible. Must be greater 0.