Multiple Selection List Style Xdialog


To create a property-sheet style Xdialog.

  1. Create a new Action Script.

  2. Select "Xdialog Windows" in the Category list.

  3. Select "Display an XDialog Box" in the Action list.

  4. Click OK to display the Script Genie.

  5. Enter the name of new variable in the Variable Name field.

  6. Optionally, change the value of the Prompt field.

  7. Optionally, change the selection in the data Type list.

  8. Set the Width and Height of the resulting dialog box.

  9. Select "Multi-select List Box" in the Style list.

  10. Click Define List Box to display the Multi-select List Box dialog.

  11. Define Choices

    Make a selection from Choices for Multi-select List Box. The options are:

    • "User Defined"

    • "Computed Automatically"

  12. If you selected "User Defined" in step 11:

    • Enter a list of choices, one choice per line.

    • Use a pipe "|" character between items to create columns, as illustrated below.

    • Optionally, sort the entries by clicking the 'AZ up arrow' icon or the 'ZA down arrow' icon.

  13. If you selected "Computed Automatically" in step 11, make a choice from the Source list. The options are:

    • Values from a table/set

      See Values from a table set

    • Field List

      Select the table or set that will provide the field list.

    • Expression (that returns a CR-LF delimited list)

      Enter the expression into the Expression control. Optionally, click the 'xy' button to use the Expression Builder.

    • Layouts and Operations

      Select one or more tables or sets that will provide the list of layouts. Applies to the following

      • "Browse layouts"

      • "Form layouts"

      • "Report layouts"

      • "Label layouts"

      • "Letter layouts"

      • "Append Operations"

      • "Copy Operations"

      • "Export Operations"

      • "Import Operations"

      • "Join Operations"

      • "Mark Operations"

      • "Post Operations"

      • "Query Operations"

      • "Summary Operations"

      • "Update Operations"

      • "Xtab Operations"

    • Email Templates

      Select the table or set that will provide the email template list.

    • Tables, Sets, Objects, etc..

      Returns objects from the current table. Applies to the following:

      • "Tables"

      • "Sets"

      • "Menu Objects"

      • "Toolbar Objects"

      • "Scripts

      • "Functions"

      • "Bitmaps"

  14. Optionally, select Advanced Formatting and click Define Advance Format to display the Advanced Formatting dialog.

  15. Make a choice from the Multi-Select List Box Behavior list. The options are:

    • "Single click on item to add to selected list"

    • "Standard Windows behavior (Shift or Ctrl Click to add to selected list"

  16. Click OK to continue.

  17. Optionally, click Preview Xdialog to see how the dialog will appear.

  18. Finish the Dialog Definition

    Click Next >.

  19. Optionally, enter the title of the dialog box in the Dialog Title field.

  20. Optionally, enter text to appear at the top of the dialog box into the Header Text field.

  21. Optionally, enter text to appear at the bottom of the dialog box into the Footer Text field.

  22. Optionally, modify the bottom labels in the Button Text fields.

  23. Click Next >.

  24. Optionally, modify the name of the variable in the Variable Name field that will capture the return value of the Xdialog box.

  25. Optionally, change the Scope of the return variable to one the following values. A variable's scope refers to where the variable can be seen, i.e. which other scripts can access the variable.

    • "Shared". Variables are available throughout the current form.

    • "Global". Variables are available anywhere in Alpha Anywhere.

    • "Local". Variables are available only in the current script.

  26. Click Next >.

  27. Optionally, modify the comment that describes the action.

  28. Click Finish.

Values from a table/set

  1. Select an entry from the Table or Set list. The options are:

    • "" - allows you to navigate to and select a table or set.

    • "" - only valid if run from a form.

    • the tables and sets in the current database

  2. Make a selection from the Field list. Select "" if you want to create a multi-column list.

  3. Optionally, enter an expression into the Filter control that selects records from the selected table or set. Leave the field blank to select all records.

  4. Optionally, enter an expression that sorts the entries into the Order control.

See Also