Vanguard Software
Forecasting & Planning Solutions
Home Products Solutions Services Customers Partners Company
 
Applying science to business management

contents.gifindex.gifprev1.gifnext1.gif

Creating Custom Envelopes

To create custom envelope files, do the following:

1. Begin by choosing a standard envelope that most closely matches the one you want to create.

2. Locate the envelope you chose and copy it to a new file in the same directory as the original envelope. Be sure to use the .htm file extension. Envelope files are usually found in C:\Program Files\Vanguard\Dscript Author 4\Envelopes.

3. Open the new envelope file in any HTML editor or simple text editor and make the required modifications. Insert Fill Codes to indicate where you want form data, buttons, and other elements placed.

An envelope file should contain at least these components:

<html>
<head>
<title>%TITLE%</title>
</head>
<body>
<form action="dscript" method="POST">
    <p>%FORM%</p>
    <p>%BUTTONS%</p>
</form>
</body>
</html>

You can add any additional HTML elements and DecisionScript fill codes that you wish.

Fill Code
Description
Source
%HEADER%
Header text
Script Options dialog box
%FOOTER%
Footer text
Script Options dialog box
%TITLE%
Form Title
Title argument supplied with the dialog function or default value supplied in the Script Options dialog box
%FORM%
All input fields and form text
Dialog function
%BUTTONS%
All required submit buttons
Button text is set using the Script Options dialog box. Which buttons are displayed is dependent on the buttons argument supplied with the dialog function.
%BACK%
Back submit button
Same as above
%NEXT%
Next submit button
Same as above
%OK%
OK submit button
Same as above
%FINISH%
Finish submit button
Same as above
%YES%
Yes submit button
Same as above
%NO%
No submit button
Same as above
%CANCEL%
Cancel submit button
Same as above
%DONE%
Done submit button
Same as above
%SESSIONID%
Unique session ID
Server
%PCT%
Percent symbol (%)
NA
<% command %>
Server-side DecisionScript command
DecisionScript executes command and replaces the fill code with the command result converted to text.

See Also

Where to Place Your Envelope Files

Relative References

  Demand Planning  |  Financial Forecasting
Forecasting Software  |  Strategic Planning Software  |  Decision Tree Software
Decision Support Software  |  Expert System Software  |  Online Surveys

Contact Us  |  Terms of Use  |  Privacy Policy  |  Site Map
Vanguard Software
© 2011 Vanguard Software Corporation
Print this page   Email this page to a friend