Introduction
"Hello World" example
Overview of the XML structure
This is a list of all the elements that can be used in the XML structure of an SRS file.
srs
node attributes
name
file name (internal)label
titlecache
cache in secondsacl
srs
node internal attributes
name
file name e.q. (100-warehouse-stock)id
id e.q. (100) valid ID 100-999success
true/false;message
empty if successapipath
apimethod
- GET/POSTbasepath
filepath
executed_at
tables
def
data
debugger
itm
node attributes
model
default:command
, optional:column
,param
,renderer
,option
,dsn
name
default autonumberlabel
default nametitle
default first not empty label, nameopts
options specific for model e.g. for command:clipboard
,uiheader
,uifooter
,uimenu
css
class, e.g (xd-red, xd-blue, xd-green, xd-orange, xd-orange0 ... xd-orange10 )acl
permission allowed on command,column- default acl schemaif empty
app_[app_name]
- e.g.
<itm acl="admin" ...
requires admin role - e.g.
<itm acl="@manager" ...
requires manager (short team) team access - e.g.
<itm acl="[email protected]" ...
username - e.g.
<itm acl="public" ...
public access - authenticated user has by default permissions (public,authenticated,username,roles... , @team_short...)
- not authenticated user has by default permissions (public)
- default acl schemaif empty
type
- when
model
="command" thenv_srs_table
,v_srs_map
,v_srs_tiles
- when
model
="column" thentguid
,tdate
,tbool
,tinteger
,tdecimal
,tstring
- when
model
="column" UI extended types - when
model
="dsn" thenself
,mssql
- when
model
="option" thenpa_post
,pa_download
,pa_post_single
- when
scope
limit scope to name for example forparam
andoption
model, can be separated by,
e.g.name1,name2
req
default ( false )cache
cache in minutes, whenPOST
is executed cache is clearedwidth
link
default e.g. ( self,srs ) more...lg
display on large default ( true )sm
display on small default (lg
)ex
export default (lg
) export to excel, htmlactive
default ( true )itm.value
1. model="columns" support for templating variables e.q.[[app_name]]
,[[kv.v.*]]
,[[kv.v.user.username]]
itm
node internal attributes
ix
item index column.ordinalec
estimated charactersaclv
acl validation result, true/false