User Defined Controls
/documentation/pages/Guides/Desktop/Xdialog/Controls/User Defined Controls.xml
The following section gives examples of User Defined Controls (UDCs) on a form. The sample forms and Xbasic scripts can be found in the Samples\Xbasic directory off the directory in which Alpha Five was installed. Open the Xbasic database in this directory.
User-Defined Watch Events
/documentation/pages/Index/Old Feature Peeks/User-Defined Watch Events.xml
A User-Defined Watch Event lets you to define Javascript code that will be executed whenever the value in a "watched" field in your Grid changes. This video shows how the label on the "state" field can be changed to "state" if the country is "USA" and to "province" for all other countries.
Global (User Defined) Functions
/documentation/pages/Guides/Desktop/Design/Platform/Xbasic/Global User Defined Functions.xml
Like the properties and methods and events of objects, the functions you saw in the previous section are all built-in to Alpha Four. Like object methods, you can call a function to accomplish a pre-designated task. Object events, however, you can define yourself. You control what happens when you write Xbasic code for an object event.
Custom and User-Defined Custom Components
/documentation/pages/Guides/Mobile and Web Components/Custom/index.xml
A Custom Component or User-defined Custom Component is a way to create a component for reuse. Like Grid or UX Components, custom components are configured using a Component Builder and can be invoked using Action Javascript. Custom Components are an advanced feature for building web and desktop interfaces. Custom Components are not recommended for use in mobile applications.
User-Defined Functions
/documentation/pages/Ref/Xbasic/Xbasic_User-Defined Functions.xml
It is also possible to define and use functions of your own.
File Upload - User Defined
/documentation/pages/Ref/Action Javascript/File Upload User Defined.xml
Upload one or more files to the server. A server-side event then gets called to allow you to process the uploaded files.
Date/Time Picker Properties
/documentation/pages/Guides/Mobile and Web Components/Grid/Grid Fields/Grid Field Properties/Control Properties/Date Picker Properties.xml
A date picker is a variation on a TextBox control. The date picker option appears in a TextBox control if the grid is updatable.
Display text for NULL values
/documentation/pages/Guides/Mobile and Web Components/UX/Controls/Props/Data/List Properties/listprops/List Prop/ListProp/Display text for NULL values.xml
If your data has NULL values, you can now specify the text to show for the NULL values. For example, you might want to show n/a for null values.
Prompting for User Input
/documentation/pages/Guides/Desktop/Design/View/Form/Prompting for User Input.xml
When you use variables in an expression, you can use a special type of variable that prompts you for a value when the expression is evaluated. These variables, called Ask variables, can be used just like any other variable. When Alpha Anywhere encounters an Ask variable, an input dialog box appears requesting that you type in a value. The expression result will depend upon the value you enter. The outcome of a query, the filter expression for an export, and the value of an update expression are all examples of operations and expressions which can be based on an Ask variable.
UX Component - User-Defined Sub-Themes
/documentation/pages/Guides/Mobile and Web Components/UX/Code/Javascript In UX Components/User-Defined Sub-Themes.xml
Most of the Javascript controls on a UX component support the concept of 'sub-themes'. This topic discusses how user-defined sub-themes can be added to a UX component.