How to Capture and Restore the List's Scroll Position
/pages/HowTo/List Control/Capture and Restore Scoll Position.xml
Refreshing data in a list can sometimes cause it also reset it's scroll position. You can restore the List's scroll position by capturing the position before refreshing or performing some operation on the List and restore the scroll position after the operation completes with a few lines of code.
Go to Record Number
/pages/Guides/Desktop/Design/View/Database/Go to Record Number.xml
The Go to Record Number action displays a specified record number based on the current index/query order. This option is a staple part of record navigation.
Referring to Form and Browse Objects
/pages/Guides/Desktop/Design/Platform/Xbasic/Referring to Form and Browse Objects.xml
Using Xbasic you can control form and browse windows in much the same way that the user does when he or she makes selections from menus and presses toolbar buttons. For example, you might have opened a form called Customers. If you want to enter a new record in this form, you could press the New Record icon on the speed bar. To accomplish the same thing using an Xbasic method, you could type this in the Interactive window:
Go to New Record
/pages/Guides/Desktop/Design/Platform/Xbasic Action Scripting/Records/Go to New Record.xml
The Go to New Record action displays a new, empty record for the user. This option is a staple part of record navigation.
Using a Slider Control to Scroll a List
/pages/Guides/Mobile and Web Components/UX/Controls/Data Controls/List/Using a Slider Control to Scroll a List.xml
Say you have a List control and you want to put a Slider control under the List to scroll the List. Assume that the name of the Slider control is 'Slider1'.
Multiple Layouts
/pages/Guides/Mobile and Web Components/UX/Controls/Props/other/Form Properties/Form properties/Multiple Layouts/index.xml
Multiple Layouts give users the option to view a Form View control in different ways. What the Form View' CSS looks like, what items appear on it, and how the control is structured can be easily altered when more than one layout has been defined. Checking the 'Has multiple layouts' property in the Form Properties section of the Form Properties pane will open the Multiple Layouts pane. New Form View layouts are created on this pane and then defined in the Form Layout pane as usual.
Responding to a Browse Double-Click
/pages/Guides/Desktop/Design/View/Browse/Responding to a Browse Double-Click.xml
The following script was placed under the double-click event of a browse. It detects the name of the column and displays the current value of the double-clicked cell.
Top, Bottom, Nth Record and Random Record Queries
/pages/Desktop/Reference/Design/Data/DBF/Top, Bottom, Nth Record and Random Record Queries.xml
When Alpha Anywhere performs a query, sometimes you are only interested in the top or bottom x records in query. For example you may have a query that selects all donors who have given more than $1,000, sorted by size of donation. Perhaps you only want to see the 10 biggest donors. Alpha Anywhere has several functions designed to extract the top or bottom records from a query. It also has a function designed to extract every Nth record from a query. This is useful in certain mailing list applications where you want to mail to a subset of your list. Finally, Alpha Anywhere has functions that allow you to select records at random from a table.
How to Find Controls in a Large UX Component
/pages/HowTo/UX/Quick Find Genie.xml
The Quick Find Genie is useful for finding controls in components with a large number of controls.
Find Text
/pages/Guides/Desktop/Design/View/Form/Find Text.xml
The Find Text... command displays the Locate dialog box, which is available in both forms and browses. The dialog box lets you find the next or previous record containing the text, number, date, or series of characters you specify. You can keep the dialog open while you work on your form or Browse. When finding text, Alpha Anywhere displays the record and that contains the first match and places the cursor on the field that contains the match.