Skip to content

Introduction

"Hello World" example

XML
1
2
3
4
5
<srs title="Hello">
  <def>
    <itm>select 'Hello World'</itm>
  </def>
</srs>

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 title
  • cache cache in seconds
  • acl

srs node internal attributes

  • name file name e.q. (100-warehouse-stock)
  • id id e.q. (100) valid ID 100-999
  • success true/false;
  • message empty if success
  • apipath
  • apimethod - GET/POST
  • basepath
  • filepath
  • executed_at
  • tables
  • def
  • data
  • debugger

itm node attributes

  • model default: command, optional: column, param,renderer ,option, dsn
  • name default autonumber
  • label default name
  • title default first not empty label, name
  • opts 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)
  • type
    • when model="command" then v_srs_table, v_srs_map, v_srs_tiles
    • when model="column" then tguid, tdate, tbool, tinteger, tdecimal, tstring
    • when model="column" UI extended types
    • when model="dsn" then self, mssql
    • when model="option" then pa_post, pa_download, pa_post_single
  • scope limit scope to name for example for param and option model, can be separated by , e.g. name1,name2
  • req default ( false )
  • cache cache in minutes, when POST is executed cache is cleared
  • width
  • 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, html
  • active 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.ordinal
  • ec estimated characters
  • aclv acl validation result, true/false