Professional Documents
Culture Documents
TurboCASH 4
With thanks to:
Pieter Valentijn (Delphidreams)
Philip Copeman
Selwyn Wacks
Sylvain Ntumba
Razak Accounting
The staff of Liandor Financial Accountants (Pty) Ltd
ISBN 0-620-30923-7
Author : DP Van Zyl
Date : 19 February 2009
© 2004-2009 Philip Copeman
This document contains proprietary information that is protected by copyright law. All rights are
reserved.
The return or result of your SQL rows can be grouped, filtered and sorted with just a few
mouse clicks. This SQL browser also allows drag and drop features, which make it easy to work
with.
Anything can be exported to the XML (Extensible Mark-up Language), HTML (Hypertext Mark-
up Language), Microsoft Excel, or Text File formats. This powerful tool will empower you to
produce your own custom view of your data in TurboCASH4.
Even if you are not an expert in the details or file structure of TurboCASH4, you can also use
this SQL Browser to filter and sort to see what you need to see. You may also use the SQL
Browser to filter, sort and analyse your data.
This option allows you to generate queries and connect to the Database of a selected Set of
Books using the Structured Query Language (SQL) standard. This Browse will list all the
Firebird Database Files (*.fdb File extension) for the Set of Books. See the topic on the
Structure of TurboCASH4 for an overview of the file structure of TurboCASH4. You may also
read more on the Developers Guide to TurboCASH4.
This SQL Browser as a TurboCASH4 plug-in is developed by P Valentijn in the Netherlands and
more information may be obtained from the osFinancials Website in the Netherlands at
http://www.osfinancials.org.
License
This program is licensed under a commercial license. The following screen will be displayed
when this plugin is launched and will pop up with regular intervals:
Alt + T + L + Q
The SQL Browser screen will be displayed. This will list all the tables of the active Set of
Books.
2. Select a table from the list. Right-click on the selected table and select he Open option
from the context menu. The data for the selected table will be loaded in the bottom half
of the TCASH Browser screen. In this documentation, the “TRANSACT” table is opened.
The transactions will be displayed as follows:
You may click on the + icon on the list to view the list of columns on the selected table
(e.g. TRANSACT as in this example).
3. You may use the context menu's on each of the sections to work with your data, if
necessary:
a. Tables – Open, Drop or Empty a selected table. You may also extract data (i.e.
all Table names or the entire table including the properties (i.e. datatype and
width) in the wiki format to the Script Editor all the Table names in a Set of
Books. This can be copied and used in documentation and for development.
b. Script Editor – You may write or edit SQL script in this section. If the entire
table or a selected record is exported as SQL script in the Records section, it will
also be displayed in this section. You may also configure the editor font.
c. Records – This is the records in a table. For example, each line in a posted batch
will create a record in the TRANSACT (Transaction) table. In this section, you may
configure columns, filters, groups to view the data in a table. You may also
export the entire table or a selected record as SQL script to the SQL Editor.
4. Once you are done, you may Export, Save SQL and Load SQL.
5. To exit the SQL Browser, click on the File → Exit menu; or click on the Close button on
the titlebar.
File Menu
The SQL Browser screen consists of the following sections:
Options Menu
Speedbar
Tables
TRANSACT.SREFERENCE
http://www.turbocash.net/wiki/index.php?title=TC4:SQL_Browser_-_Extract_modal_for_wiki
Font Editor
You may also customise the font in which the query data is to be displayed on the SQL Script
Editor.
To Edit the Font:
1. Right-click on the SQL Script Editor section of this screen and select the Editor Font …
option. Alternatively, click on the Options → Editor Font menu.
Alt + O + E
2. Change the font, font style, size, effects and colour as necessary.
3. Click on the OK button. The text in the SQL Script Editor will be displayed in the
selected font.
Records
The data for the selected table will be loaded in the bottom half of the TCASH Browser screen.
If you right-click on the records (table data) the following context menu is displayed:
The following buttons are available to navigate and edit or add new data records in
the SQL Browser:
- Insert a new record (a blank line in which you may enter data).
- This button will activate the next two buttons (accept or reject).
Alt + O + C
For example, the Reference column (i.e. SREFERENCE) of the Transaction table (i.e.
TRANSACT) will display as follows:
The filter for this column (as per example) will list all reference numbers as entered in batches
(journals) example, the reference for balancing entries (i,e, 8 asterisks ********) Reference
column (i.e. SReference) of the Transaction Database table (i.e. TransAct.DB).
Custom Filter
You have the following options to sort or filter the data:
Select a specific entry from the list - only those entries which match the selection in the
table, will be listed, e.g. with the same reference number.
All - Select to display all the entries in the selected table.
Custom - This will launch a screen on which you may set further criteria to filter the
data.
.
a. Equal to - list or display all values which is the same as the specified value.
b. Not equal to - list or display all values which is not the same as the specified
value.
c. Less than - list or display all values smaller than the specified value.
d. Less than or equal to - list or display all values smaller or equal to the specified
value.
e. Greater than - list or display all values greater than the specified value.
f. Greater than or equal to - list or display all values greater or equal to the
specified value.
g. Like - list all values in the table similar to the specified value.
h. Not like - list all values in the table not similar to the specified value.
i. Is null - excludes any value entered, will not be listed or displayed.
j. Is not null - is not zero - any value which is not equal to zero will be listed or
displayed.
Date Filter
If you are working in a column of which the data is dates, the following date selector screen will
be displayed:
You may then select a specific date to search or filter the data in the table.
ACCOUNT
ACCOUNTREF
ADDRESSPERACCOUNT
ASSETMAS
BACKORD
BANK
BAT0T1
BAT0T2
BAT0T23
BAT0T3
BAT0T4
BATCON
BATRBT0T4
BATTYPES
BOM
CONTACTS
COUNTRIES
CREDITOR
CURRENCY
DEBTOR
DNLBANKS
DOCBATCH_0_0
DOCHEAD
DOCLINE
EMPMAS
EMPSOURCE
EVENTS
EVENTSPECIALDAYS
FLOWTMP
GLOBAL
GROUPS
GROUPSSTATUS
IMP_LINK
IMP_SOURCE
IMP_STOCKACCOUNTS
IMP_TOTALS
JOBPROJECT
KEYSCONT
LABSPECS
LOCATIONS
LOGENTRY
LOGGEDIN
MANUFACD
MANUFACH
MESSAGES
MULTIMEDIA
MULTIMEDIABLOB
OILINKS
OPREPORT
OSF_EDIT_FIELDS
OSF_EDIT_FORM
OSF_SEARCH_FIELDS
PAYCON
PAYTRANS
PERIODS
POSTBATCH_0_0
PRINTERS
PROFILES
RDB$CHARACTER_SETS
RDB$CHECK_CONSTRAINTS
RDB$COLLATIONS
RDB$DATABASE
RDB$DEPENDENCIES
RDB$EXCEPTIONS
RDB$FIELDS
RDB$FIELD_DIMENSIONS
RDB$FILES
RDB$FILTERS
RDB$FORMATS
RDB$FUNCTIONS
RDB$FUNCTION_ARGUMENTS
RDB$GENERATORS
RDB$INDEX_SEGMENTS
RDB$INDICES
RDB$LOG_FILES
RDB$PAGES
RDB$PROCEDURES
RDB$PROCEDURE_PARAMETERS
RDB$REF_CONSTRAINTS
RDB$RELATIONS
RDB$RELATION_CONSTRAINTS
RDB$RELATION_FIELDS
RDB$ROLES
RDB$SECURITY_CLASSES
RDB$TRANSACTIONS
RDB$TRIGGERS
RDB$TRIGGER_MESSAGES
RDB$TYPES
RDB$USER_PRIVILEGES
RDB$VIEW_RELATIONS
RECON0
RECONBANK
REPCELLS
REPCOLS
REPHEAD
REPLINE
REPORTOP
REPTBAT
REPTDOCS
RESOURCES
STOCK
STOCKPUB
STOCKTRN
SYSPARAMS
SYSVARS
SYSVARSEXT
TASKACTION
TASKS
TAX
TEMP1
TMPAGEAN
TOTALS
TRANSACT
TRANSACTASBATCH
TYPES
UNIT
USERS
V_OPENDOCAMOUNT
V_TRANSACTASBATCHWITHTRANSID
V_TRANSACTTAXENTRIES
YEARS