Print Properties
New Inforama project structure, version 1.2

Compound Documents/Packs configuration files

In Inforama versions prior to 1.2 the configuration of all compound documents and packs of a project was stored in the files documents.xml (for compound documents) and packs.xml (for packs). From version 1.2 the configuration of each compound document is stored in a single xml file located in the compound folder of a project. The same applies to the packs, each of them is stored in a single xml file located in the packs folder of a project. The reason for this was to make the documents more portable between projects, i.e. a document can be moved to another project just by copying a single file (and, perhaps, the files that it refers to) instead of editing the documents.xml/packs.xml file.

The listing below shows a sample configuration of two compound documents from version 1.0 / 1.1 of Inforama, and later the same documents's configuration in version 1.2.

version 1.0 / 1.1 of Inforama, document.xml file

<!-- documents.xml, version 1.0 / 1.1 -->
<Documents>

	<document 
            name="document1" 
            emailfile="sampleEmail" 
            emailsubject="sample subject"             
            background="sampleBackground"
            backgroundType="acroforms"
            usefragments="false">

		<Fragments>
			<fragment name="response" type="acroforms"/>
		</Fragments>

	</document>

<Documents>

version 1.2 of Inforama, document1.xml file located in the compound folder of a project.

<!-- document1.xml, version 1.2 -->
<document name="document1">

  <!-- document's content -->
  <fragment name="response" type="AcroForms"/>

  <!-- document's properties -->
  <property name="emailName">sampleEmail</property>
  <property name="emailSubject">sample subject</property>
  <property name="backgroundName">sampleBackground</property>
  <property name="backgroundType">AcroForms</property>

</document>

Compound Document/Pack properties in web service calls

Another changed introduced in version 1.2 of Inforama regards the compound documents / packs properties which currently include: emailName, emailSubject, backgroundName, backgroundType and merge (only for packs, specifies whether all pack's documents should be merged into a single document). From version 1.2 of Inforama each property can be specified / overriden in a webservice call (DocumentRequest for documents , PackRequest for packs). So, for instance, in order to generate a document with a different background than the one specified in the document's configuration file we can specify backgroundName and backgroundType properties in the web service call, i.e. in the relevant DocumentRequest part of a call. Similarly, in order to specify that documents of a certain pack should be always merged we can add the merge property to the pack's configuration file like shown below. (in previous versions the merge property should have been always specified as a part of the PackRequest).
<property name="merge">true</property>
1079 Views, 0 Attachments 0 Attachments

  • Comments
Copyright © 2008 - 2010