Create your Publisher Templates

iShare Publisher allows you to perform on-line searches on any of your back office databases. The data from these databases is first loaded into the iShare database via Data Share and then displayed using the iShare Publisher Templates.

The following is a guide to creating your html pages to extract data from the iShare database. Examples are used to demonstrate the functionality.

There are three main templates:

 

Calling a Template page

Use a requestType of parseTemplate and specify the template name, which in the example below is DCSearch.tmplt. The template must exist in the templates folder under the webservice application folder.

http://Astun.iShareMaps.Web/publisher.aspx?requestType=parseTemplate&template=DCSearch.tmplt

ClientPage.aspx

Publisher may also be included in a client page. See the two supplied sample pages ClientPage.aspx and Publisher.aspx for an example.

Record Sets

The page must start with a RecordSetStart to define the table in Data Share from which you wish to retrieve your data and end with a RecordSetEnd as defined in the example below.

Syntax
##DataShare.ApplicationType.RecordSetStart##
<option value="##Field.DCAPPTYP##">##Field.Description##</option>
##DataShare.ApplicationType.RecordSetEnd##

Publisher will retrieve all records from the ApplicationType table. The fields DCAPPTYP and Description will be taken from the returned dataset and the appropriate field tags substituted for this data.

Example
<option value="ID1">ID1 Description</option>
<option value="ID2">ID2 Description</option>
<option value="ID3">ID3 Description</option>