cognos.Prompt.Control.clearValues method

Clear (or deselect) all values for this control.

Syntax

For a text prompt, the text is set to empty. For a value prompt, all the selections are removed.

{void} clearValues()

Parameters

None.

Returns

{void}

Example

This example resets all the controls of a page.

function clearAllValues() {
	var oCR = cognos.Report.getReport("_THIS_");
	var aControls = oCR.prompt.getControls();
	for (var i = 0; i < aControls.length; i++) {
		aControls[i].clearValues();
	}
}