Skip to main content

Template storage, sharing and defaults

An advanced template is saved in the company file, not on a computer. This page explains what is saved with it, who owns and sees it, what the two options of the Save As window do, and which template the program uses for a document type when you do not choose one.

Where templates are kept​

Each template is one record in the company file. Every company file has its own templates, so a template made in one company does not appear in another until you export it and import it there. See Move a template to another company.

The record holds:

PartWhat it is
NameThe name you give the template. It is unique for a document type across all users, including templates you cannot see.
Document typeThe type of the document the template prints. It is fixed when the template is created.
OwnerThe user who saved the template.
SharedWhether other users see the template.
Right-to-Left LayoutWhether the template prints right to left.
DesignThe layout of the template, compressed. It does not hold the connection to the database: the program adds it each time it opens the template.
ThumbnailA small picture of the first page. The program makes it on every save by running the template on the current document.

Two files stay on the computer, not in the company file: the report gallery and the favorite properties of the designer. See Report gallery and favourite properties.

Owner and Shared​

RuleDetail
Who owns a templateThe user who saved it for the first time, or who imported it. A template that you duplicate keeps the owner of the original. Editing or saving over a template does not change the owner.
Who sees a templateIts owner, and every other user if Shared is ticked. This applies to the Template list of the Print window, to the Select Template window and to the manager.
Who can change or delete itAny user who sees it. The manager lets you edit, duplicate, export and delete a shared template of another user, and the designer saves over it. The program does not check the owner.
Where the list is not filteredThe template list in the print settings of points of sale and of restaurants, and in the window that prints several transfers, shows every template of the type, owned or shared or not.
NameThe program refuses a name already used by another template of the same type, even one you cannot see. The message is "The template name is already in use. Choose another name".

You set Shared and Right-to-Left Layout in the Save As window, which appears when you save a new template, in the Edit window of the manager, and in the Create a Duplicate window. See Save window and Edit.

The Right-to-Left Layout option​

The option is saved beside the design, not inside it. When the program saves a design, it first sets the direction of the report to left to right, so the design is always stored the same way.

When the program prints a template, previews it, or makes its thumbnail, and the option is ticked, it sets the report to right to left and turns on the right-to-left layout. It does the same for the subreports when it prints or previews, not in the thumbnail.

The designer window is always left to right. It opens the template without the option, so the design you see is the stored one. The option changes the printed result, not the designer. The preview inside the designer also shows it left to right. To see the right-to-left result, click Preview in the Print window. To build an Arabic template, see Build an Arabic right-to-left template.

The report property for the layout direction is hidden in the properties panel. You use the option instead. The report property RightToLeft is shown, but the program sets it back to No on every save. See What alameen does not allow in the designer.

The default template​

The default template is the one the program uses without asking you, for a document type, in these cases:

  • Preview in the windows that open the viewer at once: the viewer opens with the default template. If there is none, the Print window opens.
  • Printing after saving, when Print automatically when saving is ticked. See Print-on-save options.

Where it is set​

It is set in the Print window. When you close the window, by any button or by the close button, the program saves the template shown in the Template list as the default of the document type. It does this even if you did not click Print or Preview. See Print window of advanced reports.

What the default belongs to​

The program saves it as a user option in the company file. It belongs to you, so other users keep their own, and it follows you to another computer. Some windows keep one default for each document type; several other windows share one default, as this table shows:

DocumentOne default for
Invoice, Order, TransferEach invoice, order or transfer type. A sales invoice type and a purchase invoice type have their own defaults.
VoucherThe receipt and payment voucher windows have one default for each voucher type. The journal entry window is in the shared row below.
Assembly and DisassemblyEach assembly type.
ShippingEach shipping type.
Job OrderEach factory (manufactory).
Equipment Maintenance RequestEach maintenance request type.
Journal entry, Commercial Paper, Note, Generate Multiple Credit Notes, Asset Custody Receipt and Handover Note, Direct Labor Wages, Manufacturing, Packing List, Profit Center, Request, TransactionOne default shared by all these windows. When you close the Print window in any of them, the template shown becomes the default of all of them.
Point of Sale, RestaurantNot this option. These windows print with the template chosen in their own print settings. See Print Design Settings and Printing Options.

How it is used​

  • The program finds the default by its saved ID. If you delete that template, it is no longer found, and the Print window opens at the next preview.
  • The program does not check that the default is still yours or shared. If its owner stops sharing it, the preview and the printing after saving still use it, while the Template list of the Print window no longer shows it.
  • The program does not check the document type of the default either. In the journal entry and packing list windows, the preview or the printing after saving can use a template last chosen in another window of the shared row. Open the Print window in the window you work in, choose its template and close it before you start.
  • When the Print window opens and the saved default is not in its list, it selects the first template of the list.

What is kept where​

WhatWhereFor whom
The templateThe company fileIts owner, and all users if shared
The default template of a documentThe company file, as a user optionThe user
The two print-on-save optionsThe company file, as a user optionThe user, for all documents
The report gallery and the favorite propertiesTwo files in the program data folder, in a folder named Report DesignerThe Windows user of that computer
An exported templateThe file you choose, with the extension .amnarxWhoever receives the file

This page applies to alameen ERP 10, version 10.1.79.764.