CSSGen.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.

Applies to

DataWindow objects

Syntax

Describe and Modify argument:

"DataWindow.CSSGen.property { = ' value ' }"

Parameter

Description

property

One of the following:

  • PublishPath

  • ResourceBase

  • SessionSpecific

value

(exp) PublishPath – a string that specifies the physical path of the Web site folder to which the DataWindow server publishes the generated CSS style sheet

(exp) ResourceBase – a string that specifies the URL of the generated CSS style sheet to be referenced in a link element in the XHTML page

(exp) SessionSpecific – a boolean that when set to “yes” forces a session-specific ID to be applied to any generated document names that would otherwise be shared

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 category in the Properties window for the DataWindow object, select CSS from the WebDW list, specify the Resource Base and Publish Path locations, and set the SessionSpecific property to True if you want to force generation of client-specific names.


In DataWindow .NET

In DataWindow .NET, you can specify the physical directory in which dynamically created files, such as .css, .js, .xml, and .xslt files, and URL references are stored, using the XmlConfigurations.UrlPath property. If you specify a value for XmlConfigurations.UrlPath, it overrides the values for PublishPath and ResourceBase set in the DataWindow painter.

If you want to specify different paths for each of the different file types, if you want to specify a full path, or if you want to specify different paths for PublishPath and ResourceBase, set the properties in the DataWindow painter and leave the XmlConfigurations.UrlPath property empty in DataWindow .NET.

If you do not set these properties in the DataWindow painter or in DataWindow .NET, the files are saved in the current Web application’s path.

Examples

Example 1

These statements set the CSSGen.ResourceBase and CSSGen.PublishPath properties:

[Visual Basic]
dw1.Modify("DataWindow.CSSGen.PublishPath=
   'C:\Inetpub\wwwroot\MyWebApp\generatedfiles'")
dw1.Modify("DataWindow.CSSGen.ResourceBase=
   '/MyWebApp/generatedfiles'")

Example 2

This statement sets the CSSGen.SessionSpecific property for a JSP page:

dwGen.Modify
   ("DataWindow.CSSGen.SessionSpecific='Yes'");