- Simple UX Example
/documentation/pages/Client/Guide/Design/View/Component/Simple Dialog Example.xml
In this example we will create a simple dialog with three fields, add some validation to the fields, and add code to display the submitted values in a pop-up message. The example is the minimum information an American soldier had to give to a captor under the old Code of Conduct. (Other countries added date of birth to the list.) Create a new Dialog web component, and add 3 textbox controls: Name, Rank, and SerialNr. Then add the Defined Control Submit-Reset. Your tree view should look like this:
- Simple Embedded Dialog Box
/documentation/pages/Guides/Desktop/Xdialog/Simple Embedded Dialog Box.xml
This example creates a dialog box named "Embedded" with a second dialog box named "frame1" inside it. The second dialog box does nothing more than to display some text.
- Simple Modeless Dialog Box
/documentation/pages/Guides/Desktop/Xdialog/Simple Modeless Dialog Box.xml
The following example displays a modeless dialog. The dialog is "modeless" because it does not require you to close it, before switching focus to another window. as a result, the dialog box can remain open for an arbitrary amount of time.
- Sending Dialog Contents via Email
/documentation/pages/Guides/Desktop/Design/Email/Sending Dialog Contents via Email.xml
There are times when the output of a dialog should not go directly to a database. You may want to email the entry, for example. Here is how you would do that, assuming that once again you are starting with our Simple Dialog example.
- Office Example: Simple Weekly sales spreadsheet
/documentation/pages/Ref/Api/Namespace/Office/Examples/WeeklySales.xml
This example creates a simple spreadsheet with summarized sales and expense data for a single week. The spreadsheet is populated with a title, column headings, labels, and formulas to calculate the daily gross profit, summarize the weeks sales and expenses and the week's gross profit.
After the spreadsheet is populated, it is opened in Microsoft Excel.
- Genie-Style Dialog Example
/documentation/pages/Server/Guide/Design/View/Genie-Style Dialog Example.xml
For this example, we obtained the fields from the customer DBF table in Alphasports. Then we divided the fields logically into tabs and turned on Genie style for the outer tab control. Finally we added validation rules for the fields we deemed essential.
- Simple Example Using Redis Keys
/documentation/pages/Guides/Services/Redis/Simple Example.xml
Redis can be used to get/set keys/value pairs.
- Quick Dialog Example
/documentation/pages/Guides/Desktop/Design/Platform/Xbasic Action Scripting/Quick Dialog Example.xml
How to create a quick dialog.
- Parent-Child Dialog Example
/documentation/pages/Guides/Desktop/Design/Data/FieldRules/Parent-Child Dialog Example.xml
Adding fields from a child table (such as InvoiceItems as children of InvoiceHeader) introduces some complications in the database insertion logic. Our Genies handle these in a graphical way, but you can write the code yourself if you wish.
First, you'll want to save the parent record, and get the record ID (primary key) if it was automatically generated. Then, you'll want to save each child record along with the record ID of the parent record as a foreign key.
- Simple Edit Control
/documentation/pages/Guides/Desktop/Xdialog/Simple Edit Control.xml
To create an edit control (also called a "text box") on a dialog box, use the '[' and ']' delimiters. The syntax for a text object is: