CSSGen.property DataWindow object property
Description
Settings that specify the physical path to which a generated
CSS style sheet is published and the URL where the style sheet is
located.
Controls
DataWindow objects
Syntax
PowerBuilder dot notation:
1 |
<span>dw_control</span>.Object.DataWindow.CSSGen.<span>property</span> |
Describe and Modify argument:
1 |
"<span></span>DataWindow.CSSGen.<span>property</span> { = '<span> value </span>' }" |
Parameter |
Description |
---|---|
property |
One of the following:
|
value |
(exp) PublishPath – a (exp) ResourceBase – a string (exp) SessionSpecific – a boolean |
Usage
The PublishPath folder must correspond to the URL specified
in the ResourceBase property. At runtime, after the DataWindow server generates
the CSS style sheet to the PublishPath folder, it includes it in
the final XHTML page by referencing it with the ResourceBase property
in a <link> element.
Typically you share style (CSS), layout (XSLT), and control
definitions (JS) for use by all clients; however, if you use dynamic
DataWindow objects customized for specific clients, you can force
generation of the DataWindow presentation–related document
names to be specific to each client. You do this by setting the
CSSGen.SessionSpecific property to “yes”. This
eliminates the possibility of server-side contention for presentation
formats when the DataWindow generation is specific to the client.
In the painter
In the Web Generation tab in the Properties view for the DataWindow
object, select CSS from the Format to Configure list, specify the Resource
Base and Publish Path locations, and check the Session-specific
CSS, XSLT and JS file names check box if you want to force generation
of client–specific names.
Examples
These statements set the CSSGen.ResourceBase and
CSSGen.PublishPath properties:
1 |
dw1.Object.DataWindow.CSSGen.ResourceBase= &<br>   'http://www.myserver.com/xmlsource'<br>dw1.Object.DataWindow.CSSGen.PublishPath= &<br>   'C:workoutputfilesxmlsource' |
This statement sets the CSSGen.SessionSpecific property
for a JSP page:
1 |
dwGen.Modify<br>   ("DataWindow.CSSGen.SessionSpecific='Yes'"); |