|
Special Fields |
Top Previous Next |
|
Special Fields are texts enclosed in square brackets ([...........]). In layout mode they are available from drop-downs and can be inserted into the layout documents at the relevent position. A full list of available fields (there are hundreds) can be printed from Edit/Fields Report in the menu bar of the RTF Layout Editor.
When you run custom reports, the system replaces these fields with the appropriate values, and applies default formatting. examples: [Date] [Amount] [Postcode] [Job Address]
Custom fields are not case sensitive
Formatting Special Fields
The system applies a default format to each field. For instance all date fields appear in Windows short date format as set in your Windows control panel Sometimes, this is not appropriate
To format a special field, insert ">" plus a formatting string immediately after the special field name for example,
[Date] prints "26/05/04" [Date>long date] prints "Wednesday 26th May 2004"
Format strings can be either Named or Built Up, and are either Numerical or Date/Time
Numerical Named Strings
Built Up strings
example if displaying 8315.4, then
Date/Time Named strings
Built Up strings
hh:mm AM/PM 09:45 AM d mmmm h:mm 24 May 9:45
Special Special Fields
If you enter invalid special fields ( because they don't exist in the RTF layout for the dropdowns for that report type), the system still tries to work it out.
Firstly, it tries to evaluate the special field as a formula. Thus
"[2+2]" will be evaluated as "4" "[[Cost] *1.5]" will be evaluated as [Cost] + 50% if [Cost] is a valid special field
Secondly, it will create Job Variables if the special field does not exist. Thus
if "[Bath_Color]" is not a valid special field, the system will create a job variable, and ask for a value the first time you run the report.
The normal formatting rules apply: "[2+2>Currency]" will be evaluated as "$4.00"
You can nest special fields within other special fields. Use this method to perform mathematical operations on special fields. Thus
[ [JUDF1] + [JUDF2] + [JUDF3] ] will produce the sum of JUDF1 to JUDF3 provided they are all numerical and the sum is non zero
If your report layout contains a field "[Input:whatever]", each time you run the report, it will stop and ask for a value. The text after "[input:" is used as a prompt (in this case "whatever")
Databuild holds a number of internal pictures, used mainly for toolbars and command buttons. These can be retrieved using the format:
toolbar(xxxx)
where valid values of xxxx are:
all,about,paste,gst,bank,all_none,audit,backc,budget,forec,error,bank1,backup,bank2,balance,bank3,bank4,calculate,cc,chart,cascade,cheque,claim,clear,collapse,copy,date,cut,contact,color,connect,down,crystal,delete,docrtf,drag,document,docfixed,edit,estimate,email,exit,doorshut,expand,explode,export,factory,formatpara,formatchar,file,font,forc,feedback,fixed,frontend,forum,gl,global,gogogo,go,help,howdoi,import,invoice,inifile,journal,level,job,orphan,live,left,lock,glock,gunlock,new,macro,model,note,options,paid,order,ordsel,pay,per,phone,picture,post,printer,price,profile,page,psetup,pagebreak,pageheader,pagefooter,pageno,receipt,quote,register,recipe,refresh,reconcile,reprice,reverse,redo,right,report,save,saveas,sales,supplier,scale,search,sort,spellcheck,splat,standing,screen,stop,summary,table,template,tileh,takeoff,tab,tilev,tax,test,timesheet,transfer,up,variation,update,version,word,web,workup,undo,yes,xml,yearend,zip,log,wunlock,wcc,wmacro,worder,wworkup,wlock,ydelete,zoomin,zoomout,
|