cognos.Prompt.getControls method

Returns an array of all controls associated with the report.

Syntax

(cognos.Prompt.Control[]) getControls()

Parameters

None.

Returns

{cognos.Prompt.Control[]}

An array of controls associated with the report.

Example

This example implements a function, clearAllValues(), that resets (clears the selection of) all prompt controls for a page.

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