This section contains step-by-step instructions on how to complete basic tasks using WhizBase.
Displaying records from database table
Uploading files
read more
Tuesday, October 19, 2010
How to...
HiddenEnvVars
HiddenEnvVars=envlist
This variable contains the comma-separated list of environment variables that will be hidden, i.e. author will not be able to use $wbe function with those variables. Default value is *, what means that all environment variables will be hidden. However, some of the environment variables are very important for developing advanced WBSP-powered sites, so it is good idea to hide only those environment variables that can be abused (e.g. PATH, COMP*, SYSTEM*, etc.)
Tuesday, October 5, 2010
HiddeDocuments
HiddeDocuments=extlist
This variable contains the comma-separated list of file extensions that will be hidden, i.e. if you configure server to handle files with those extensions by WBSP, WBSP will return HTTP error 404 (file not found). Default value is sr,aut,ic,inc, what means that include files (both inc and ic), subreports and authorization files will be hidden, as long as your server is configured to handle them with WBSP.exe same as files with wbsp extension.
read more
This variable contains the comma-separated list of file extensions that will be hidden, i.e. if you configure server to handle files with those extensions by WBSP, WBSP will return HTTP error 404 (file not found). Default value is sr,aut,ic,inc, what means that include files (both inc and ic), subreports and authorization files will be hidden, as long as your server is configured to handle them with WBSP.exe same as files with wbsp extension.
read more
HEX ($WBFN)
Availability
HEX is available for use with all WBSP commands.
Syntax
$WBFN{HEX(decnumber)}
$WBFN[HEX(decnumber)]
Arguments
decnumber - any integer in range 0 to 2147483647.
Returns
A string representing the hexadecimal value of the number passed as an argument.
Example
Hexadecimal value of letter A is $wbfn[HEX(65)]!
Result
HEX is available for use with all WBSP commands.
Syntax
$WBFN{HEX(decnumber)}
$WBFN[HEX(decnumber)]
Arguments
decnumber - any integer in range 0 to 2147483647.
Returns
A string representing the hexadecimal value of the number passed as an argument.
Example
Hexadecimal value of letter A is $wbfn[HEX(65)]!
Hexadecimal value of letter A is 41!
Header and Footer sections
Header and footer are subsections of detail section. When used they must be placed on the very beginning (header) and very end (footer) of the detail section. This means that nothing (HTML code, RTF tags, plain text, etc.) can not be placed between and and/or between and . This is an example of correctly placed header and footer (marked blue):
$wbsetv[countbooks|0]
This is the list of titles for year $wbf[year published]
$wbf[title] - $wbf[isbn]
$wbsetv[countbooks|$wbcalc[$wbgetv[countbooks]+1]]
Total books in $wbf[year published]:
$wbgetv[countbooks]
$wbsetv[countbooks|0]
Header and Footer sections will be processed and sent to the client before and after Detail section whenever any of referent fields change it's value (to learn more about referent fields please read the explanation for input variable WB_ChangeHFOn). Header and Footer sections will also be shown at the beginning of the Detail section for first record and at the end of the Detail section for last record on the report.
read more
$wbsetv[countbooks|0]
This is the list of titles for year $wbf[year published]
$wbf[title] - $wbf[isbn]
$wbsetv[countbooks|$wbcalc[$wbgetv[countbooks]+1]]
Total books in $wbf[year published]:
$wbgetv[countbooks]
$wbsetv[countbooks|0]
read more
Getting started
Although WBSP on your server can be configured to process files with any extension, to make usage of this tutorial easier we will assume that .wbsp extension is used.
For development purposes you will probably install WBSP locally, and this manual has installation instructions for many existing web servers including some very good freeware. If you have any problems with installing WBSP, please do not hesitate to contact us .
read more
For development purposes you will probably install WBSP locally, and this manual has installation instructions for many existing web servers including some very good freeware. If you have any problems with installing WBSP, please do not hesitate to contact us .
read more
Functions
Functions are WBSP placeholders with one or more arguments, separated with vertical line ( | ), and enclosed in square brackets or braces depending on WhizBase page section in which they are located and processing phase in which they should be processed. Based on this, functions use report syntax ($wbfnname[arg]) and input syntax ($wbfnname{arg}). To learn more about differences between these two syntax models, please read the next topic - Difference between report and input functions. All functions that have more than one argument (separated with |) can be written in multi-line form. However, none of the arguments can be broken in separate lines, unless it is also WhizBase function.
This is a list of WhizBase functions in alphabetical order:
This is a list of WhizBase functions in alphabetical order:
| $WBFormat | $WBFU $WBRF |
| read more |
Subscribe to:
Posts (Atom)