Announcement

Collapse
No announcement yet.

Contact list page

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Contact list page

    Hi,

    Actually now i am learning EspoCRM.

    In contact page I add two contact.in contact list page its displayed.

    The datas coming from EspoCRM\application\Espo\Core\Controllers - Record.php
    ================================================== ========

    This is that function

    public function actionList($params, $data, $request)
    {
    if (!$this->getAcl()->check($this->name, 'read')) {
    throw new Forbidden();
    }

    $where = $request->get('where');
    $offset = $request->get('offset');
    $maxSize = $request->get('maxSize');
    $asc = $request->get('asc') === 'true';
    $sortBy = $request->get('sortBy');
    $q = $request->get('q');
    $primaryFilter = $request->get('primaryFilter');
    $textFilter = $request->get('textFilter');
    $boolFilterList = $request->get('boolFilterList');

    if (empty($maxSize)) {
    $maxSize = self::MAX_SIZE_LIMIT;
    }
    if (!empty($maxSize) && $maxSize > self::MAX_SIZE_LIMIT) {
    throw new Forbidden("Max should should not exceed " . self::MAX_SIZE_LIMIT . ". Use pagination (offset, limit).");
    }

    $params = array(
    'where' => $where,
    'offset' => $offset,
    'maxSize' => $maxSize,
    'asc' => $asc,
    'sortBy' => $sortBy,
    'q' => $q,
    'textFilter' => $textFilter
    );

    if ($request->get('primaryFilter')) {
    $params['primaryFilter'] = $request->get('primaryFilter');
    }
    if ($request->get('boolFilterList')) {
    $params['boolFilterList'] = $request->get('boolFilterList');
    }

    $result = $this->getRecordService()->findEntities($params);

    return array(
    'data' => $data,
    'params' => $params,
    'request'=> $request,
    'data' => $result['data'],
    'total' => $result['total'],
    'list' => isset($result['collection']) ? $result['collection']->toArray() : $result['list']
    );
    }

    How i check with echo "<pre>";print_r($_POST);echo "</pre>";

    I put this pre tag mean it get "Bad Service Response"

    please check it.

  • #2
    Hi

    I don't understand

    Comment

    Working...
    X