Frequently Asked Question

Apply a numbering sequence to an estimate
Last Updated 2 years ago

Step 1.  Configure a numbering sequence with a scripting identifier

Ensure that the numbering sequence is configured with a unique value in the "Scripting ID" field.

image

Step 2.  Edit the estimate template

Open an estimate template in the Daylite Template Editor, by navigating to Daylite > Preferences > Report Templates and double-clicking on the template you wish to edit.

image

In the Daylite Template Editor, select the "Report" layer and add the following scripts for the "Pre Data Extraction" and "Post Data Extraction" phases, using the scripting identifier value configured in Step 1

Pre data extraction script example:

estimate := element valueForKeyPath:'enclosingReportLayout.data.object'.
((estimate estimateNumber) == nil) ifTrue:[
    sequence := JTNPNumberingSequence sequenceWithScriptingIdentifier:'yourScriptingID'.
    estimate setEstimateNumber:(sequence previewString).
].
image

Post data extraction script example:

((generator operatingMode) = 0) ifTrue:[
    sequence := JTNPNumberingSequence sequenceWithScriptingIdentifier:'yourScriptingID'.
    sequence incrementSequence.
    sequence saveChanges.
].
image

Still need a hand?

If you would like further assistance to customise your estimate template, we are happy to help!
Please send us a message at helpdesk@jewell-tech.com.au and one of our team will be in touch to discuss your requirements.

Please Wait!

Please wait... it will take a second!