Documentation

Update

int Update($ID, $settings);

Updates an existing report.

Function parameters

Parameter Description
$ID Report ID to update.
$settings Array with updated report configuration.

Returned value

Returns a CDBResult instance of completed update request, or false otherwise.

Examples of use

<?
$ID = CReport::Update( 159, array( 'title' => 'List of tasks', 'description' => 'Just a list of tasks with creation date', 'owner' => 'TASKS', 'entity' => 'Bitrix\\Tasks\\Task', 'period' => array( 'type' => 'month', 'value' => null ), 'select' => array( 4 => array('name' => 'CREATED_DATE'), 0 => array('name' => 'TITLE'), 1 => array('name' => 'PRIORITY'), 2 => array('name' => 'RESPONSIBLE.SHORT_NAME'), 3 => array('name' => 'STATUS_PSEUDO') ), 'filter' => array(), 'sort' => 0, 'sort_type' => 'ASC', 'limit' => null, 'red_neg_vals' => false, 'grouping_mode' => false, 'chart' => null ) );
?>

© «Bitrix24», 2001-2024
Up