Domains: ALN

Created
Nov 22, 2021 06:52 AM
Tags
configuration
Status
Completed
Created Date
 
ALN domains are used for static values of ALN, UPPER or LOWER types. In this post I will explain about using using ALN domans and how to use them conditionally. These are the most simple and most easy to use domain type.
Let’s examine this by an example.
I have an object named TEST. In that I have an attribute called STATUS
The status is ALN and it’s length is 20. We want only the values APPROVED, PENDING and COMPLETE to be entered.
Step 1: Create Domain:To make a domain attached to it we need to make an ALN domain whose length is equal to or less than 20.
notion image
I will name this domain TESTSTATUS. Lets add values of APPROVED, PENDING and COMPLETE in it by clicking the new row.
notion image
ℹ️
There is also option of adding Organization and Site against each values. In that case these values would only be showed when a specific site is selected
Step 2: Database configuration
Open Database configuration and open the TEST object. Select the desired attribute (in our case its STATUS).
notion image
Select our created domain. Then configure database, adding or removing a domain from an attribute does not require admin mode to be turned on.
Step 3: Application Designer
Open the desired application and select the attribute and click on details and attach a lookup to it. You do not need to attach a lookup if you are using combo boxes.
notion image
Save
Open your application to view the result. After adding the lookup a magnifier icon will show against your textbox.
notion image
You can only enter these values. Any other value will throw an error.
ℹ️
Domains can conditionally show values. Please refer to Domains: Conditionally displaying domain values