Changes

Jump to: navigation, search

Custom Field Type: Special - Advanced Data Table

9 bytes added, 19:56, 8 December 2016
no edit summary
# Scroll down to the '''Options''' section and check '''Enable Builder'''.
# Click '''Save'''.
# In the action bar click on the '''Section Builder''' button (it has four squares on it).
# Replace <pre><!---- Insert section variable here ----></pre> with <pre>'''@section.''SectionNodeName''@'''</pre>
# Click '''Save'''.
 
The syntax '''@section.''SectionNodeName''@''' will display the section we created using the section builder. Note: you must replace '''SectionNodeName''' with the name you gave your section (e.g. '''@section.''expense''@'''), the section node name is case sensitive, and you must remove the html comments.
=== Displaying an XML on a object ===
[[File:xml-readonly.png|The XML displayed in a read only|500px|border]]
The XML custom field opens in a modal window and the user must click a button to launch the modal window and see the information entered. You can however, display the information entered into a '''Special - XMLData''' custom field on your object, such as a grant application, without requiring the user to click a button and launch the modal window. To do this we use the '''Read Only – System Variables''' custom field. The same syntax can be used elsewhere in the system (e.g. include Display Only - Web Page View, Special MS Word Merge, visibility conditions, etc.) when referencing the xml values.
If you enable the '''Section Builder''' and check '''Apply Default Styles''' in each section of your XML custom field, the field will be automatically styled. If you have manually added CSS classes to your cells, you will need to remove those classes and check '''Apply Default Styles''' again and then click '''Build''' on your XML in section builder.
Administrators with CSS knowledge can modify the look and feel of their XMLs (e.g. make columns wider or thinner). To modify the look and feel of your XML, create an external CSS style sheet, upload the style sheet to a SmartFolder, add classes to the elements in your XML, and add a link to the style sheet in your '''Special - XMLData''' or '''Read Only - System Variable''' custom fields.
==== Styling XML for Print ====
Smartstaff, administrator
4,478
edits

Navigation menu