LogDataProperties Property

 

Type: String

 

The LogDataProperties property allows you to programmatically specify the list of properties that you want the LogData method to transmit to the BrowserHawk Reports Web Service for storage.

 

Normally in the BrowserHawk Editor you select the specific properties you want the BrowserHawk Reports Web Service to log. By default the LogData method will record those selected properties to your database. However if you wish to override this list at run-time, set this property to a comma separated list of property names and the LogData method will record these properties instead of the defaults as set in the BrowserHawk Editor.

 

Example:

In this example assume that you used the BrowserHawk Editor to select various properties that should be logged by BrowserHawk Reports. However at run-time in a certain case you only want to log the results for the Flash and JavaScriptEnabled properties. By using LogDataProperties as shown below you override the settings from the BrowserHawk Editor and only the properties set with LogDataProperties will be recorded.

 

<% set bhObj = Server.CreateObject("cyScape.browserObj")

bhObj.SetExtProperties "Plugin_Flash, JavaScriptEnabled"

bhObj.GetExtPropertiesEx

bhObj.LogDataProperties "Plugin_Flash, JavaScriptEnabled" 'note: not case sensitive

bhObj.LogData

%>

<html> …rest of page goes here …</html>

 

See Also:

About BrowserHawk Reports

LogData method