|
| | |
|
|
A Looper is a Table with Controls. You can define the content of the Looper and it will repeat itself according to the number of the records to display. You can add records manually or through the database, just like a Table. A Looper can interact with the user
through its Events. You should use a Looper when you need to
present an item composed with information that needs to be displayed en
separated fields (columns) and when you need them to be from various types or want to position them freely.
Value - It has no value.
|
Properties - Content |
Link Controls to:
Nothing - The control will be empty by default but you can use "Looper Add Line" Action to populate it.
Database Table - The control will be linked to a Database Table and the number of records will be the same as the source Database Table. For the data to be displayed, "Refresh Control" Action must be called.
Kalipso Syntax - A slightly different form of SQL.
Everything remains the same but instead of single-quotes to enclosure
string types, you should use double-quotes. When referring to Controls
or Variables, quoting is not needed.
String Expression - A string
expression who will be evaluated and the result is executed over the
database. You are responsible by specifying a result with the syntax
expected by the database. Quoting is also your responsibility.
Filter - "Where" clause to be applied in the "select" to the Database Table.
Order By - "Order By" to be applied in the "select" to the Database Table.
SQL Advanced - You're able to define the query that fills the control. The query should return a column for each link.
Database Profile - Database connection over which the specified query should be executed. You only need to specify one if it's online.
Query - String expression who will be evaluated and the result executed over the database.
Links - Connections between the Looper controls and the database. You can define a link between any editable property of a control belonging to the Looper and the Database. When the source is set to "Database Table", the link source is a Column. When the source is set to "SQL Advanced", the link source is the index of the returned column in the query.
|
Properties - Relations |
This option allows you to define the relation between tables selected as source in Content.
Usage
Assume the following database:
Products |
|
Families
|
Code |
|
Code |
Name |
|
Name |
Price |
|
|
Assume the following properties of your Table (Grid):
Link Control to: Database Table
Links:
Table
|
Column
|
Products |
Name |
Products
|
Price
|
Families
|
Name |
Relations:
Products |
Families |
Code
|
Code
|
|
|
Shortcuts |
F2 – Actions
F3 – General properties
|
|
|
|
Updated: 5/6/2016 3:41 PM |
| |
|
|
|