Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 

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 directory immediately below publisher.aspx 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.

Code Block
titleSyntax
##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.

Code Block
languagexml
titleExample
<option value="ID1">ID1 Description</option>
<option value="ID2">ID2 Description</option>
<option value="ID3">ID3 Description</option>