Hello. How to use or where in GCEnterprise ?
like this one.
post by heruprambadi on Apr 19, 2024
post by kapilchugh on Apr 19, 2024
I guess there is no direct way but this is how I am using it.
$conditions['( (status = ? or status = ?) AND entry_allowed_to >= ? OR (status = ?) )'] = ['Submitted', 'Completed', $todayEndtime, 'TEMP'];
post by heruprambadi on Apr 20, 2024
Yes, there is a direct way. I solve this problem using this :
$crud->where(['parameter' => array('aa', 'bb', 'cc', 'dd')]);
I think this should be included in the documentation.
post by johnny on Apr 20, 2024
Oh wow. I honestly didn’t know any of the above examples of @kapilchugh and @heruprambadi and I was about to provide a more complicated example.
I have added both in the official documentation here:
Thank you for the responses/requests ![]()
New & Unread Topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Use callbackColumn() but keep inline edit functionality |
|
3 | 648 | Apr 12 |
| Setting quick search values via JavaScript not working properly for booleans |
|
0 | 563 | Nov 2025 |
| callbackColumn() has not effect in v3.2.6 Enterprise |
|
2 | 696 | Dec 2025 |
| displayAs() doesn’t support new line in headings |
|
4 | 871 | Jan 5 |
| PRINT date format not consistent |
|
6 | 354 | Sep 7 |