User Guide
186 Workspace
■ The itemData argument is a string you can use to store specific data about the item being
added such as a document line number.
■ The iStartSel argument is the start of selection offset in the file. Specify the value null
if you are not specifying an offset.
■ The iEndSel argument is the end of selection offset in the file. Specify the value null if
you are not specifying an offset.
■ The colNdata argument is an array of strings that provide the data for each column (that
is, if there are 3 columns, an array of 3 strings).
Returns
A Boolean value: true if the item was added successfully; false otherwise.
Example
The following example creates a Results window called resWin that has the column headings:
Frodo, Sam, and Gollum. The call to the
resWin.addItem() function adds a folder icon and
then the three strings,
msg1, msg2, and msg3 into the three columns defined for the window.
var resWin = dw.createResultsWindow("Test Window", ["Frodo", "Sam",
"Gollum"]);
resWin.addItem(resWin, "3", "Description", null, null, null, ["msg1",
"msg2", "msg3"]);
resWin.addResultItem()
Availability
Dreamweaver 4.
Description
Adds a new results entry to the current Results window, based on the information in the file
that the
processfile() function processes.
This function is only available in the
processFile() callback of a site report. See “Reports”
in Extending Dreamweaver for details on site reports.
NOTE
Use only on the built-in results window for Site Reports
(dreamweaver.resultsPalette.siteReports). resWin.addResultItem() cannot be used with
other built-in results windows or stand-alone results windows created with
dreamweaver.createResultsWindow().
000_DW_API_Print.book Page 186 Wednesday, July 20, 2005 11:58 AM