public function Render(Renderer $renderer) { $superGlobals = GetApplication()->GetSuperGlobals(); if ($superGlobals->GetGetValueDef(ModalOperation::Param) == ModalOperation::OpenModalEditDialog || $superGlobals->GetGetValueDef(ModalOperation::Param) == ModalOperation::OpenModalInsertDialog) { $this->grid->GetGrid()->GetPage()->UpdateValuesFromUrl(); } $this->grid->ProcessMessages(); echo $renderer->Render($this->grid); }
public function GetValue(Renderer $renderer) { $result = ''; $primaryKeyValues = array(); ExtractPrimaryKeyValues($primaryKeyValues, METHOD_GET); $this->dataset->SetSingleRecordState($primaryKeyValues); $this->dataset->Open(); if ($this->dataset->Next()) { if ($this->column == null) { } else { $result = $renderer->Render($this->column); } } $this->dataset->Close(); return $result; }
public function GetViewSingleRowColumnViewData(Renderer $renderer) { $Row = array(); $rowValues = $this->GetDataset()->GetFieldValues(); foreach ($this->GetSingleRecordViewColumns() as $Column) { $columnName = $this->GetDataset()->IsLookupField($Column->GetName()) ? $this->GetDataset()->IsLookupFieldNameByDisplayFieldName($Column->GetName()) : $Column->GetName(); $columnRenderResult = ''; $customRenderColumnHandled = false; $this->OnCustomRenderColumn->Fire(array($columnName, $Column->GetData(), $rowValues, &$columnRenderResult, &$customRenderColumnHandled)); $columnRenderResult = $customRenderColumnHandled ? $columnRenderResult : $renderer->Render($Column); $Row[$columnName] = array('Caption' => $Column->GetCaption(), 'DisplayValue' => $columnRenderResult); } return $Row; }
function EndRender() { try { $this->CheckOperationPermitted(); $this->SelectRenderer(); $this->BeforeRenderPageRender(); echo $this->renderer->Render($this); } catch (Exception $e) { $this->DisplayErrorPage($e); die; } }
private function GetColumnViewData(CustomEditColumn $column, Renderer $renderer) { return array('FieldName' => $column->GetFieldName(), 'Id' => $column->GetEditControl()->GetName(), 'Editor' => $renderer->Render($column), 'Caption' => $column->GetCaption(), 'Required' => $column->DisplayAsRequired(), 'DisplaySetToNullCheckBox' => $column->GetDisplaySetToNullCheckBox(), 'DisplaySetToDefaultCheckBox' => $column->GetDisplaySetToDefaultCheckBox(), 'IsValueNull' => $column->IsValueNull(), 'IsValueSetToDefault' => $column->IsValueSetToDefault(), 'SetNullCheckBoxName' => $column->GetFieldName() . '_null', 'SetDefaultCheckBoxName' => $column->GetFieldName() . '_def'); }