Changes

Jump to: navigation, search

Deprecated - Custom Field Type: Special - Spreadsheet

327 bytes removed, 18:09, 22 August 2018
no edit summary
{{Template:Deprecated}}
<u>'''General Description'''</u>
This field type is used to present the user with a spreadsheet that is compatible with MS Excel. This spreadsheet is stored as part of the record and can be exported as a .xls file, or be opened directly by MS Excel.
The '''Spreadsheet''' field will manifest on the record in both '''View''' and '''Edit''' mode as a button:
:[[Image:SpsView.png]]
: [[Image:SpsView.png]]
When '''Open''' is clicked:
'''View Mode:'''
:[[Image:Sps2View.png]]
: [[Image:Sps2View.png]]
'''Edit Mode:'''
 :[[Image:SpsEdit.png]] <u>'''Field Options''' </u>
* '''Display Order''': The order (relative to other fields) in which this field is displayed
<u>'''Special Options for Field'''</u>
 
* '''Values''': Allows you to define a template including default values and formulas. See [[#Template|below]].
<u>'''Field Formatting Options'''</u>
* '''[[Tool Tip]]''': Enter help text to be shown on mouse-over
<u>'''[[Role Field Permissions|Role - Field Permissions]]'''</u>
These [[Role Field Permissions|fields]] allow you to control by [[Role]] who is allowed to view and/or modify the field.
<u>'''[[Status Field Permissions|Status - Field Permissions]]'''</u>  
* ''Only present within the [[Universal Tracking Application]]''
These [[Status Field Permissions|fields]] allow you to control by the [[Status]] of the record whether or not the field can be viewed and/or modified.
 
===Instructions===
* If no Template is defined in the '''Values''' field, the first time the Open button is clicked a blank spreadsheet will need to be created by selection '''New''' from the '''File''' menu and entering the desired dimensions of the spreadsheet
:[[Image:NewSps.png]]
: [[Image:NewSps.png]]* '''IMPORTANT:''' Each time the '''Spreadsheet''' is edited the changes must be saved by clicking File > Save.  
Modifications to the '''Spreadsheet''' will be lost if the window is closed without first saving.
===Template===
The '''Values''' field allows you define a template including formatting, formulae and initial default values.
 
* The default template can be created by creating a record that contains a '''Spreadsheet''' custom field. Create the spreadsheet as desired, including any formatting, formulas and initial values. Then from the Spreadsheet menu select '''View''' and then '''Source'''. The HTML shown can be copied and pasted into the '''Values''' field.
'''Sample:'''
<pre><TABLE border="1px" {| id="jSheet" class="jSheet ui-widget-content ui-corner-all" style="width: 708px;"> <TR heightborder="301px" |- style="height: 30px;"> <TD height="30" | id="cell_c1_r1" class="styleBold styleUpper">height="30"|Requested Budget</TD> <TD | id="cell_c2_r1"/> <TD | id="cell_c3_r1"/> <TD | id="cell_c4_r1"/> <TD | id="cell_c5_r1"/></TR> <TR><TD |-| id="cell_c1_r2">|Cost Items</TD> <TD | id="cell_c2_r2">|Year 1</TD> <TD | id="cell_c3_r2">|Year 2</TD> <TD | id="cell_c4_r2">|Year 3</TD> <TD | id="cell_c5_r2">|Total</TD></TR> <TR |- style="height: 16px;"><TD | id="cell_c1_r3" style="font-weight: bold;" id="cell_c1_r3">|Staff</TD> <TD | id="cell_c2_r3"/> <TD | id="cell_c3_r3"/> <TD | id="cell_c4_r3"/> <TD | id="cell_c5_r3" formula="=SUM(B3:D3)"/></TR> <TR |- style="height: 16px;"> <TD | id="cell_c1_r4" style="font-weight: bold;" id="cell_c1_r4">|Equipment</TD> <TD | id="cell_c2_r4"/> <TD | id="cell_c3_r4"/> <TD | id="cell_c4_r4"/> <TD | id="cell_c5_r4" formula="=SUM(B4:D4)"/></TR>|- <TR><TD | id="cell_c1_r5">|Materials</TD> <TD | id="cell_c2_r5"/> <TD | id="cell_c3_r5"/> <TD | id="cell_c4_r5"/> <TD | id="cell_c5_r5" formula|-| id="=SUM(B5:D5)cell_c1_r6"/></TR> <TR><TD style="font-weight: bold;" id="cell_c1_r6">|Travel</TD> <TD | id="cell_c2_r6"/> <TD | id="cell_c3_r6"/> <TD | id="cell_c4_r6"/> <TD | id="cell_c5_r6"/> <TD | id="cell_c6_r6" formula="=SUM(B6:D6)"/></TR></TABLE></pre>|}
===Variables===
'''Syntax:'''
*Single Cell:
:<font size=3>@sps.''fieldname''.B2@</font>
*Range of CellsSingle Cell: :<span style="font -size=3: medium;">@sps.''fieldname''.A1:C1B2@</fontspan>* Range of Cells:<font size=3>@sps.''fieldname''.A1:C3@</font>
: <span style="font-size: medium;">@sps.''fieldname''.A1:C1@</span>
: <span style="font-size: medium;">@sps.''fieldname''.A1:C3@</span>
'''Where:''' ''fieldname'' is the name of the '''Spreadsheet''' custom field.
[[Category:Custom Fields]]
Smartstaff, administrator
421
edits

Navigation menu