Dataclass | Description |
---|---|
maingroup | A tree dataclass of Product Groups; fetched from Zpider |
menu | A tree dataclass of a menu; fetched from Zpider |
article | Collection of products; fetched from the ERP system |
support | Contains some global data like the stylesheet; fetched from Zpider |
quickorder | Contains quickorders; fetched from Zpider |
webuser | Contains webuser data; fetched from Zpider |
document | Contains documents; fetched from Zpider |
order | Contains orders; fetched from ERP system |
orderline | Contains orderlines; fetched from ERP system |
customer | Contains customer info; fetched from ERP system (Actor in Business; Customer in Global) |
zpiderorder | Contains orders from Zpider |
zpiderorderline | Contains orderlines from Zpider |
freight | Contains freight information; fetched from Zpider |
creditcard | Credit Card info, communicates with the Payment Server; fetched from Zpider |
clientadministrator | Configuration data for the client; fetched from Zpider |
shoppingcart | Shoppingcart data; fetched from Zpider |
Scope | Description |
---|---|
page | Survives the processing of a page, which currently is the same as request. |
request | All data received from the client is placed here. All data placed here survives the current request. |
session | Data placed here exists between requests and lives until the user logs off or the session times out. |
+ - * / %
Entities and constants may be mixed in any way and with any levels of parenthesis, as in this example:
* / + -
Mathematical functions may also be used in the condition part of the if-tag and elseif-tag, as in this example:
$z:config[attribute_name]
.
User defined ASP.NET controls can be included and rendered by using control=“control-path” property where control-path
is an absolute or relative web path to the user defined control (.ascx). An absolute path always begins with ”~/” (eg. ~/Controls/SimpleControl.ascx) and is relative to the application root folder. A relative path may be prefixed with ”/” (eg. /Controls/SimpleControl.ascx or Controls/SimpleControl.ascx). In this case Zpider will attempt to fetch the control from either from the Theme folder (eg. Attribute | Description |
---|---|
module | Set the name of the module |
alias | Define the dataclass which will hold the webattributes |
Attribute | Description |
---|---|
alias | defines the storage name for the dataclass being prepared. |
scope | defines the storage area (session, request or page) for the dataclass being prepared. |
dataclass | defines the type of dataclass being prepared. See list of available dataclasses. |
sortorder | defines the sortorder for the data produced by the dataclass |
filter | defines additional elements to the where clause of the produced query. |
startrecord | define the startinc index of the collection. Zero based. |
maxrows | defines the maximum number of rows the dataclass should retrieve. Default: 200 |
pagesize (v12) | defines the pagesize on PageControl. |
<z:set
and <z:prepare>
you can create advanced filters. The following example will fetch TOP 10 active offers from Visma Global.
<z:prepare
-tag, you just use the prefix @ to signal that it’s a query parameter. Remember to set DefaultValue on your query parameter or it will fail if you omit the parameter you’ve created.
Attribute | Description |
---|---|
alias | defines the storage name for the dataclass being prepared. |
scope | defines the storage area (session, request or page) for the dataclass being prepared. |
pagesize | defines the number of rows on each page. Default: 20 |
maxrows | defines the maximum number of rows the dataclass should retrieve. |
maxpages | defines the maximum number of pages needed |
startpage | defines the starting page |
startoffset | defines the starting offset (index) in the rows collection. Zero based. |
$z:node[]
entity to read tree node properties of the current node in the dataclass.
Note! The dataclass must first be prepared before using loadtree.
Attribute | Description |
---|---|
alias | defines the storage name for the dataclass being prepared. |
scope | defines the storage area (session, request or page) for the dataclass being prepared. |
counter | defines the starting value for the unique number of the node. |
Attribute | Description |
---|---|
name | The name of the attribute |
scope | The storage location (session, request or page). Default: page. |
value | The value of the attribute. Use this only if you are evaluating mathematical functions. Use the ‘inner set’ for everything else. |
Attribute | Description |
---|---|
name | The name of the attribute. |
scope | The storage location (session, request or page). |
</z:loop>
tag). The repeation goes on until the current index is greater than the until-value.
Attribute | Description |
---|---|
alias | The alias for the loop attribute. This may be used to fetch the current index as an entity (index-entity). |
start | The starting index. Default: 1. |
step | The stepping value. Default: 1. |
until | The ending value. |
Attribute | Description |
---|---|
alias | The name of the attribute. |
use | The storage location (session, request or page). |
Attribute | Description |
---|---|
alias | The name of the attribute |
Attribute | Description |
---|---|
alias | The alias for the dataclass |
scope | The storage space for the dataclass |
keyword | The keyword which we want to display. If this keyword is missing, a default selection list is displayed for the dataclass. |
includeblank | true or blanks may be displayed |
current | The value of the current |
path\dir\name
. The joining of the tree name will checking duplicated backslashes ().
Attribute | Description |
---|---|
path | The physical path to the file (location = file or config), or a http-url (location=http). |
dir | A directory may be specified (valid for file and config) |
name | A filename may be added (valid for file and config) |
location | This is one of: |
file - A physical file on the web server. | |
config - A physical file on the application server (System Manager Server). | |
http - Content from an http request. |
<img>
tag may be specified. The full path will be constructed by joining: path\dir\name
.
The <z:img>
tag will map to a normal <img>
tag, but will use showdoc as it’s src. In addition, it will check the existence of the image. This is useful for displaying article picture. If the article picture does not exists, nothing is displayed instead of the standard error display.
The processing is done in this priority order:
Attribute | Description |
---|---|
picture | This is the PictureID as defined in System Manager: Images; corresponds to the name of the image. |
path | The image path. |
dir | The image directory. |
name | The image name. |
src | |
returnsrc | If true it will only returns the url for the image, not a full <img...> tag, for example: Showdoc.aspx?PICTURE=logo. |
location | This is the same property used for the text tag. It is one of: |
file - A physical file on the web server. | |
config - A physical file on the application server (System Manager Server). | |
http - Content from an http request. |
Attribute | Description |
---|---|
value | Any value, also including mathematical functions. |
format (v12) | .Net formatting string like {0:0.00} etc. |
transform (v12) | Available transformations are uppercase , lowercase , ucfirst or ucwords |
trim (v12) | Trim output of the function |
<z:write
, but it will escape the value you pass it.
>b<This text could be bold>/b<
.
Attribute | Description |
---|---|
name | Set ordinary meta tags like <meta name=[name] . Special handing for title, description and keywords. All others will be set raw. |
property | Set open graph meta tags like <meta property=[property] . |
og:image
to the full URL of the product image
<z:redirect>
tag being omitted. The following example will redirect the user to ~/main.aspx?page=…&refresh=false:
Attribute | Description |
---|---|
url | will redirect the browser to the specified url |
page | will redirect the browser to main.aspx?page=… |
$z:name[left.right]
The left will normally be a dataclass and the right will be a column of that dataclass. The right may be omitted ($z:name[left]).
Attribute | Description |
---|---|
alias | The alias for a dataclass. |
keyword | A keyword supported by the dataclass. |
Attribute | Description |
---|---|
alias | The alias for a dataclass. |
keyword | A keyword supported by the dataclass. |
Attribute | Description |
---|---|
myattr | The name of the attribute, this may already be defined by the <z:set name=myattr value="abc"> Url or form attributes may be retrieved by specifying request as storage |
scope | as in the example above. |
Attribute | Description |
---|---|
alias | The alias for the dataclass which is a treetype dataclass. |
Function | Description |
---|---|
name | The name of the current node |
number | Uniquely identifies the node |
parentnumber | The unique number of the parent |
parentname | The name of the parent node |
childcount | The number of children for the current node |
listorder | The number of the node within all nodes, 0-based |
childorder | The order of the current node within the parent, 0-based |
level | The level of the current node, 0-based |
isroot | Y if the current node is the root node; meaning no parents |
isleaf | Y if the current node is the leaf node; meaning no children |
counter | The counter for the current node |
Attribute | Description |
---|---|
alias | The alias for the dataclass |
Function | Description |
---|---|
current | Number of the current entry in the iteration, 0 based |
currentonpage | Number of the current entry on the current page, 0 based |
nextpagestartoffset | The offset for the next page from the current page |
currentpagestartoffset | The offset for the current page |
previouspagestartoffset | The offset for the previous page from the current page |
maxpagecount | Maximum number of entries per page for this iteration |
maxcount | Maximum number of entries totally |
count | Totally number of entries. -1 if not available (undefined) |
pagecount | The totally number of pages |
islastentry | Y if the current entry is the last entry |
islastonpage | Y if the current entry is the last of the current page |
isfirstentry | Y if the current entry is the first entry |
isfirstonpage | Y if the current entry is the first on the page |
currentpage | The number of the current page, 0 based |
isfirstpage | Y if the current page is the first page |
islastpage | Y if the current page is the last page |
<span class=style>text...</span>
The style is defined in the System Manager for the textid.
$z:styletext[TXT_WELCOME]
Code | Name | Description |
---|---|---|
0 | None | No error |
1 | General | A general, unspecified error |
2 | ComponentWrite | Unable to write to component |
3 | AddFailure | Unable to add data |
4 | LoginFailed | Unable to login |
5 | InvalidData | Invalid data provided; illegal format and/or values |
10 | SmtpError | Smtp Error |
11 | SendEmail | Unable to send email |
12 | MissingInfo | Some fields are missing data |
20 | MissingPaymentMethod | Missing the payment method |
21 | MissingPaymentObject | The required payment class is missing |
22 | TransactionFailed | Payment transaction failed |
30 | InvalidOrder | Missing or invalid order |
Code | Name | Description |
---|---|---|
0 | None | No error |
1 | Mandatory | Missing mandatory data |
2 | InputFormat | Wrong input format |
3 | PasswordDontMatch | Invalid password |
4 | DataLengthTooShort | The input length is shorter than expected |
5 | AlreadyExist | The field already exists |
6 | NotFound | Not found |
7 | InvalidDateTime | Invalid DateTime |
8 | NotAllowedChars | Not allowed chars in password or username |
9 | DataLengthTooLarge | The input length is larger than expected |
10 | InvalidEmailFormat | Invalid Email format |
$z:error
entity) from the current webattribute.
$z:errorof[webattralias]