-
Notifications
You must be signed in to change notification settings - Fork 0
pts lookup field
Click Lookup Field on the CONTENT ribbon panel to display the Lookup Field window. Read more: Command Syntax
|
|---|
This is used to extract a single piece of data from a single row of the database. You must press Insert (or Update if editing an existing command) for your changes to be applied to the current script in the editor.
It displays the regular LOOP / Raw SQL window with some extra controls:
Make sure the option Simple field lookup to variable is ticked. Then select the field you want to lookup the value for from the drop-down list. Finally, type in or select a dynamic variable to save the value of the field to. |
|---|
You must be comfortable with using the LOOP command with criteria (WHERE clauses) to reduce the record set to one database row. Please read up about LOOP's if you are unsure.
A lookup field can also be generated from a raw SQL statement rather than a normal LOOP with WHERE criteria. A similar set of lookup field controls appear on the window when you ask to use raw SQL. Note, however, that the field list will be empty until you enter a valid SQL SELECT statement. The list is re-populated after a 2-second delay whenever you update the SQL.
Copyright © 2002 - 2025 by Andrew Truckle. All Rights Reserved.
- Using Public Talks
- Main Application Menu
-
Database Ribbon Panel
- Assignments Editor
- Backup Database
- Check Talk Exchange
- Compact Database
- Convert Database
- Create Unassigned Date Entries
- Database Security
- Maintain Databases
- Purge Database
- Rearrange Dates
- Restore Database
- Help Ribbon Panel
-
Home Ribbon Panel
- Create a Report
-
Manage Custom Reports
- Editing Scripts
- Content Ribbon Panel
- System Ribbon Panel
- Script Command Syntax
-
Tutorials
- Using The Script Editor
-
How To Write Scripts
- Module 1 - The Basics
- Module 2 - Hello, World!
- Module 3 - Multiple Text Blocks
- Module 4 - It's A Date, Then
- Module 5 - Oh, I'm Blushing!
- Module 6 - It is a Rainbow!
- Module 7 - The Font Of All Knowledge
- Module 8 - Queue To The Right
- Module 9 - Memory Like An Elephant
- Module 10 - May I Squeeze In There?
- Module 11 - Move Over, Please
- Module 12 - You Move Over Here
- Module 13 - Is My Back A Funny Colour?
- Module 14 - I'm Going Loopy Here!
- Module 15 - Fields Of Golden... Text
- Module 16 - Man, That Looks Weird
- Module 17 - Inner Peace, Inner Loop
- Advanced Script Features
- Quick Access Toolbar
- Settings Ribbon Panel
- Tools Ribbon Panel
- Revision History
- Contact Information
Click Lookup Field on the CONTENT ribbon panel to display the Lookup Field window. Read more:
Make sure the option Simple field lookup to variable is ticked. Then select the field you want to lookup the value for from the drop-down list. Finally, type in or select a dynamic variable to save the value of the field to.