controls the TABSHEET with these commands:
function |
Description |
---|---|
tab=clear |
deletes tabsheets |
tab=add=<name>=<psr-file> |
adds tabsheet. The text is translated afterwards. Blank spaces and special character are not allowed. If you specify an output-name it gets the name (here are special characters like öäü allowed). Output-name is not mandatory. |
tab=protect=<nr>=1/0 |
makes Tab invisible |
tab=text=<nr>="NewText" |
displays nex text |
tab=redraw |
redraws tabsheets |
tab=searchwhere=<nr>=<argument> |
default SQL-WHERE-clause for the Tab |
tab=order=<nr>=<argument> |
default SQL-ORDER-clause for the Tab |
tab=searchfilter=<argument> |
define DataWindow Main Filter. The system add this always to the filter |
tab=filter=<nr>=<argument> |
default DataWindow-filter for the Tab |
tab=sort=<nr>=[sortname]=<sort argument> |
default Sort Argument . Note: First argument is a description and then the argument |
tab=printdw=dw_x |
set default datawindow for print out |
Instead of <nr> you can also specify the name of the Tabsheets.
Example: protect Tabsheet 2:
tab=protect=2=1
tab=redraw
Example: Rename Tabsheet 2:
tab=text=2=New Name
tab=redraw
TAB - basic information
Adds a new Tab. If you change from one Tab to another the current input data, the current filter and the current sort is saved, the new form (psr-File) gets loaded and the filter, order and sort for the new form is applied.
There is always only one current form which means the "Tabs" are "simulated".
With tab=add=<name>=PSR-file you can add a Tab. The first form which is loaded specifies the Tabs which means that the first Tab has to reference to his own form with the command "this".
Example: article_edit.psr, Tab article_description.psr, article_images.psr
you specify the Tabs in article_edit which becomes the "master-form"
In the master-script (or with CTRL+N+B in the TAB-area without tab=add) you specify this:
tab=add=master data=this // self-reference
tab=add=description=article-description.psr
tab=add=Images=article-images.psr
// in the identifier öäü are not allowed. Therefore separate naming:
tab=add=qs=qslink.psr=QA plan
Multi-lingual ability
The name of the Tab is processed by the translator. Mulit-lingual ability is abailable without further programming.
TAB-Where-clause
With tab=searchwhere=<TabNr>=<WHERE-ARGUMENT> you can specify a default WHERE-clause of the SQL-command of the DataWindows. This is a "WHERE2-clause", the clause which is used by all search-systems.
This enables you to specify a SQL-filter in the MASTER-Script when you start the program which you can deactivate with the search systems, e. g. "Display all" at start with the possibility to include archives.
Example:
tab=searchwhere=1="FTHAUPT"."ABGKZ"='N'
If this command is in the Master-Script only the pending production orders are displayed.
the command
sqlfilter=1=1
or
tab=searchwhere=1=1=1
retrieve=retrieve
resets it while displaying the form.