HTML.property (obsolete)
Description
Settings for adding user-defined HTML syntax and hyperlinks to
controls in a Web DataWindow.
Obsolete property
HTML.property is obsolete and should not be used, because the
Web DataWindow technology is obsolete.
Applies to
Column, Computed Field, Picture, and Text controls
Syntax
PowerBuilder dot notation:
|
1 |
dw_control.Object.controlname.HTML.property |
Describe and Modify argument:
|
1 |
"controlname.HTML.property { = ' value ' }" |
|
Parameter |
Description |
|---|---|
|
controlname |
The name of the control whose HTML properties you |
|
property |
A property for generating HTML syntax and |
|
value |
The value to be assigned to the property. Value can |
|
Property for HTML |
Value |
||
|---|---|---|---|
|
AppendedHTML |
HTML you want to append to the generated syntax for |
||
|
Link |
(exp) A URL that is the target of a link (HTML The URL can include parameters. |
||
|
LinkArgs |
A string in the form:
Argname Exp is a DataWindow expression whose value The evaluated |
||
|
LinkTarget |
(exp) The name of a target frame or window for the You If LinkTarget is null or an empty string |
||
|
ValueIsHTML (does not apply to Picture |
(exp) A boolean that, if true, allows the control |
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 2 3 4 5 6 7 8 9 10 |
// EMPID and PAGE are page parameters for the // page server's session object dw1.Object.empid.HTML.Link = "empform.html" dw1.Object.empid.HTML.LinkArgs = "EMPID = 'empid'" dw1.Object.empid.HTML.LinkTarget = "detail_win" dw1.Object.empid.HTML.ValueIsHTML = "true" dw1.Object.helpicon.HTML.Link = "help.html" dw1.Object.helpicon.LinkArgs = "PAGE = 'empform'" setting = dw1.Describe("DataWindow.HTML.Link") dw1.Modify("empid.HTML.Link = 'empform.html'") |