This topic contains 1 reply, has 1 voice, and was last updated by zhex900 6 years, 11 months ago.
- Topic
I am passing an array of contact ids to grid. I want to select all the contact ids in passed array.
This only works when I have one value in the attendees array. Anything more, I get no result in grid. What am I doing wrong?
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364{% set gridData = dataGrid.renderGrid(gridName, {attendees: [12,76]}, { cssClass: 'inner-grid' }) %}campuscontact-group-contacts-grid:acl_resource: oro_contact_viewsource:type: ormquery:select:- c.id- c.firstName- c.lastName- >(CASE WHEN (:attendees IS NOT NULL) THENCASE WHEN (c.id IN (:attendees) OR c.id IN (:data_in)) AND c.id NOT IN (:data_not_in)THEN true ELSE false ENDELSECASE WHEN c.id IN (:data_in) AND c.id NOT IN (:data_not_in)THEN true ELSE true ENDEND) as hasGroupfrom:- { table: %oro_contact.entity.class%, alias: c }bind_parameters:- attendeescolumns:hasGroup:label: oro.contact.group.has_group.labeleditable: truefrontend_type: booleanid:label: 'id'firstName:label: oro.contact.first_name.labellastName:label: oro.contact.last_name.labelproperties:id: ~filters:columns:hasGroup:data_name: hasGrouptype: booleanfirstName:type: stringdata_name: c.firstNamelastName:type: stringdata_name: c.firstNamesorters:columns:hasGroup:data_name: hasGroupfirstName:data_name: c.firstNamelastName:data_name: c.lastNamedefault: { hasGroup: %oro_datagrid.extension.orm_sorter.class%::DIRECTION_DESC }options:entityHint: contactsrowSelection:dataField: idcolumnName: hasGroupselectors:included: '#groupAppendContacts'excluded: '#groupRemoveContacts'
The forum ‘OroCRM – Programming Questions’ is closed to new topics and replies.