Data Source Tree Pane

Top  Previous  Next

Data Source Tree Pane

Filter and search the Data Source Tree items

 

On initial entry to the Data Source, the Tree Pane shows the database structure of Tables and Views.  A finder (Search) facility is available to narrow the full tree structure.

 

Data_source_tree1

 

 

       Enter any characters (Either File or part file number e.g. F42 or Address) in the Look for: field and then select the Find icon button find_icon or hit ENTER and the result of the search will be available in Tables or Views depending whether the search criteria is met.

 

 

Expand data source view

       The Data Source Tree shows any valid databases as a result of your sign on with a Plus_icon alongside.  In this example UTB_ONEWORLD database is displayed.

 

Data_source_tree3

 

Select the Plus_icon and then the two options Tables and Views are displayed in the tree structure.  These may be toggled on / off with the Plus_icon / Minus_icon icons.

 

Data_source_tree1

 

These two then may or may not be displayed with a Plus_icon depending on what has been stored in the database.   

 

 

Expand Tables list & Find Table

       In this example F42 has been entered in the 'Look for' field and a search carried out in the database 'Tables' only.  The 'Look In' drop down box gives three options All (both Tables and Views), Tables only or Views only. Table details are available to view and select by toggling the Plus_icon / Minus_icon button.

 

Data_source_tree5

Data_source_tree4

 

 

 

The Tables tree option shows a full list of all tables available in the database.  This list can be reduced selectively by use of the Filter as described above. 

 

(In the example the Filter or Look In facility has been used to select all Tables starting F42).

 

An alternative method of table selection, is to click the curser in the table list and then type either the full table designation (F4101) or the first part of the table (F41) and the curser will then 'go to' that position in the table.  You can then either drag and drop the full table or move the curser to the required table and drag the new resulting table...

 

Each Table table listed has two further selection options in the tree of Columns columns or Indexes indexsSelect any Table (F4201_Sales_Order_Header_File in this example) Plus_icon / Minus_icon button to toggled the Columns / Indexes on / off.

 

Data_source_tree6

Data_source_tree7

 


Another feature of the Data Source Tree pane is the ability to Right Click on a Table to display a window with two options:

       Open Table:

       If you select this option on the table it will then open the table with all columns in the Query Builder pane, as if the table had been dragged into the Builder Pane and all fields selected.  But note, when you then select the Designer option the table is not left in the Query Builder Pane.

 

       and Add Table to Designer:

       If you select this option on the table it will then add the table to the Query Builder Pane as if it had been dragged and dropped.  It will remain in the query Builder Pane.

 

 

Expand table columns

       Expand the Table Columns by selecting the Plus_icon / Minus_icon to toggle all column names on / off in the tree.   The columns are displayed for information and show by icon whether it is a keyed field or not.  These Columns will also be shown when a Table is dragged from the Data Source Tree Pane to the Query Builder Pane as described later.

 

 

Data_source_tree8

 

 

Column Properties

Right click on any field in the expanded Columns tree to show the Database Object Properties screen

 

Data_source_tree11

 

In the example shown for the SDDOCO_Order_number field; it is 10 numeric characters with no decimal (0 Scale) and 4 bytes long.  This object properties information is not available in the Query Builder Pane. 

 

 

Expand table indexes

       Expand the Table Indexes by selecting the Plus_icon / Minus_icon toggle and any indexes that exist in the database will be displayed.  If they exist they can be used to speed up the execution of the query.

       

 

Data_source_tree8a

Data_source_tree8b

 

 

In the example shown, the F4201_Sales_Order_Header_File Indexes have been expanded and show nine (9) defined indexes.  Further expansion shows the key fields in the Index.

 

 

 

Expand views list

       If View details are available select the Plus_icon / Minus_icon to toggle the Views List on or off.

 

Data_source_tree9

 

In the example View F42019A_F42019_Sales_Order_Header_all_Columns has been displayed.

If a view is available it will have been set up previously in the database and is a very useful way of creating a query with a reduced column set.

 

Expand View columns

       Expand the View Columns by selecting the Plus_icon / Minus_icon toggle and all columns will be listed in the tree.   The columns are displayed for information and show by icon whether it is a keyed field or not.  These Columns will also be shown when a View is dragged from the Data Source Tree Pane to the Query Builder Pane as described later.

 

Columns

       A Column in a table can be Keyed, or Indexed or both or neither.

 

Keyed column

       In database design, a primary key is a value that can be used to identify a unique row in a table.  Attributes are associated with it.  Examples are names in a telephone book (to look up telephone numbers) and words in a dictionary (to look up definitions).

       

Indexed column

       An index is a feature in a database  that allows quick access to the rows in a table. The index is created using one or more columns of the table. Not only is the index smaller than the original table (due to having fewer columns), but it is optimized for quick searching, usually via a balanced tree

 

Keyed and indexed column

       Both the above features exist in a database column if it is both keyed and indexed.

 

Foreign key on column

       A foreign key is a field or group of fields in a database record that point to a key field or group of fields forming a key of another database record in some (usually different) table.  Usually a foreign key in one table refers to the primary key of another table

 

Summary of the Main Data Source Tree Icons

 


find_icon

Filter and Find (search) the tree items



 


Tree_schema

Database Schema



 


tree_tables

Tables list


tree_views

Views list



 


table

Table


columns

Expand table columns


indexs

Expand table indexes



 


column

Column


index_preferences

Keyed column


index

Indexed column




 



Page URL: http://www.unitysolutions.com/Helps/UTB/HTML/index.html?data_source_tree_pane.htm