|
|
Recent News
|
Hotel Software DocumentationCreating Recordset Variables
IntroductonRecordSet Variables are variables that store lists of records. Recordsets can be used for the mass modification of records, printing records, modifying relational fields, etc. How to create a RecordSet?By QueryThe variable will have records selected from database by the specified query. Parameters:
By Relational FieldThe variable will have records stored in many-to-many relational field or simple relation field of the current record. For example, if we have a Book type record, and it has the Authors relational field, we can create a recordset variable, to which we will place authors from the Authors field and then print them. Parameters:
By Filtering RecordsetIn this case, the records variable will be created by applying a filter to an existing recordset. For example, we can create a recordset based on records selected By Folder Input and then remove some records from it. Parameters:
By Recordset InputThe user will be offered to choose one or several records from the existing recordset. For example, a recordset can be created by means of Query, and the user can be offered to choose one record from the query results. Parameters:
By Folder InputUser will be offered to select necessary records from a database folder. Parameters:
By Standard SetRecordset will be created, based on one of the standard record sample: Parameters:
Other meansIn order to create a relational variable, you can use forms for data entry. To learn more... Usage of RecordSet VariablesFurther on this variable can be used for the following purposes:
Examples1. Adding Records to Relational FieldAn sample of a script that carries the selected records from the many-to-many Field_A to Field_B and displaying the number of carried records:
2. Changing Records
In this example:
See Also: Creating Variables Using Forms |
Today"s Poll What software do use for your inn/b&b/hotel/etc? |
Home Page | Contacs | Terms and Conditions | Copyright (C) 2001-2010 Binary Brilliant Inc | |