Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

The Use Template property – PB Docs 125 – PowerBuilder Library

The Use Template property – PB Docs 125

The Use Template property

The names of all templates that you create and save for the
current DataWindow object display in the Use Template drop-down list.

usetemp1.gif

The template you select from the list is used to conform the
XMLgenerated by any of the methods for saving as XML to the specifications
defined in the named template. Selecting a template from the list
box sets the DataWindow object’s Export.XML.UseTemplate property.
You can also modify the value of the UseTemplate property dynamically
in a script. For example, an XML publishing engine would change
templates dynamically to create different presentations of the same
data.

When you open a DataWindow, the Export/Import Template
view displays the template specified in the DataWindow’s
Use Template property. (If the view is not visible in the current
layout, select View>Export/Import Template>XML from
the menu bar.) If the property has not been set, the first saved
template displays or, if there are no saved templates, the default
structured template displays as a basis for editing.

Template used when saving

When the DataWindow is saved as XML, PowerBuilder uses the template specified
in the Use Template property. If the property has not been set, PowerBuilder uses
the default template.

When you are working on a template, you might want to see
the result of your changes. The template specified in the Use Template
property might not be the template currently displayed in the Export/Import
Template view, so you should check the value of the Use Template
property to be sure you get the results you expect.

proc.png To save to XML using the current template:

  1. Right-click in the Export/Import
    template view and select Save or Save As from the pop-up menu to
    save the current template.

  2. On the Data Export page in the properties view,
    select the current template from the Use Template drop-down list.

  3. Select File>Save Rows As, select XML
    from the Files of Type drop-down list, enter a file name, and click
    Save.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x