HTML.property DataWindow object property
Description
Settings for adding user-defined HTML syntax and hyperlinks
to controls in a Web DataWindow.
Controls
Column, Computed Field, Picture, and Text controls
Syntax
PowerBuilder dot notation:
1 |
<span>dw_control</span>.Object.<span>controlname</span>.HTML.<span>property</span> |
Describe and Modify argument:
1 |
"<span></span><span>controlname</span>.HTML.<span>property</span> { = '<span> value </span>' }" |
Parameter |
Description |
---|---|
controlname |
The name of the control whose HTML properties |
property |
A property for generating HTML syntax |
value |
The value to be assigned to the property. Value can |
Property for HTML |
Value |
||
---|---|---|---|
AppendedHTML |
HTML you want to append to the generated |
||
Link |
(exp) A URL that The URL can include parameters. Other properties, such as |
||
LinkArgs |
A string in the form:
Argname is a page parameter to be passed Exp is a DataWindow expression whose The evaluated LinkArgs string is appended to the HTML.Link |
||
LinkTarget |
(exp) The name of You can use the LinkTarget property to direct the new page If LinkTarget is null or an empty string (“”), |
||
ValueIsHTML |
(exp) A boolean |
Usage
The Link properties are typically used to create master/detail
Web pages where a link on a data item jumps to a detail DataWindow
for that item. LinkArgs is used to pass a retrieval argument identifying
the particular item.
The AppendedHTML property is used to specify attributes and
event actions to add to the HTML rendered for Web DataWindow controls.
ScrollToRow emulation
The ValueIsHTML property allows you to include standalone
HTML syntax or tags in the generated Web DataWindow. You can use
this feature to add horizontal rules (<HR>) and
anchor tags (<A HREF=”home.htm”>home</A>)
to Web DataWindows. If you add row–specific anchor tags,
you can use the Modify method or DataWindow expressions to generate
conditional HTML for each row.
The HTML generator does not validate the HTML you append to
or include in controls in DataWindow objects. If the HTML is invalid,
the DataWindow might not display correctly. You must also be careful
not to append an event name that is already generated for the control
as a coded client-side event.
In the painter
Select the control and set the value in the Properties view, HTML
tab.
Examples
1 |
// EMPID and PAGE are page parameters for the |
1 |
// page server's session object |
1 |
dw1.Object.empid.HTML.Link = "empform.html" |
1 |
dw1.Object.empid.HTML.LinkArgs = "EMPID = 'empid'" |
1 |
dw1.Object.empid.HTML.LinkTarget = "detail_win" |
1 |
dw1.Object.empid.HTML.ValueIsHTML = "true" |
1 |
dw1.Object.helpicon.HTML.Link = "help.html" |
1 |
dw1.Object.helpicon.LinkArgs = "PAGE = 'empform'" |
1 |
setting = dw1.Describe("DataWindow.HTML.Link")<br>dw1.Modify("empid.HTML.Link = 'empform.html'") |