![]() |
![]() | clearString neatComponents
|
|
![]() | clearString neatComponents
|
| |
Record Links - an example |
neatComponents is the hybrid-cloud database engine that powers clearString. | ||
Previous page | Techniques & KB Articles | Next page |
Record Links - an example |
![]() | ![]() |
Record Links - an exampleNote:The illustrations and component references on this page refer to an older version of neatComponents. We are in the process of updating the documentation. The functionality and results are the same. Using Record Link fields – an exampleThis example shows how to use a Recordlink field How to use this example:Download the example site, and use this documentation to understand how it was constructed before adapting it for your own needs.
Start with a blank site, and follow the documentation to replicate the example site yourself.
Why use a Record Link Field?For our example, we want to store the name of a State – "New York", "California", etc. in a Form record. The first thing is to choose what datatype to use.
By using a Record Link you gain several advantages:
A simple exampleThis example provides a Recordlink field which will show a list of States. First we need to create the Form containing the States.
The configuration should look like this: Now we need to populate the Form with the names of the States
You are then shown a confirmation of the entry. To enter another record, choose View Form from the Toolbox. Note: To speed entry, you can skip this screen: In The Behavior Editor / Settings / Options / Redirect target after record update, click [...] and select Local Relative Page / Current PageWhen done, the form should show them all: Note: if instead of names, you see a list of numbers, that means the Navigation Field was not set to the Name field – see configuration instruction above. It's not too late to correct this.
For this example we will create a Form called 'F: Contact' and we will use the Record Link as part of a set of name and address fields:
The State field is shown as a drop down, populated with the list of States. (They will be shown in alphabetical order, even if you didn't enter them that way) A long dropdown is unwieldy. The Recordlink field's properties allows you to set the threshold, above which the dropdown will be replaced with a search mechanism. This settings is the 'Show search after [50] options' (see illustration in 'F: State' above). So this value is changed from 50 to 25, the State field looks like this: The user clicks the [...] button, and is shown a dialog where they can type in a few letters from the entry. In this example the user entered 'co', and clicked 'Go'. This then showed all the entries containing that fragment. The user then clicks the desired option, and OK. |
![]() |
|