Generate multiple grids with same table but different query logic?

QuestionsGenerate multiple grids with same table but different query logic?
Ascaliko asked 2 years ago

first query something like this

$g->select_command = “SELECT `crm_project_allocation`.`project_allocation_id`, `crm_project_allocation`.`number_task_id`,
`crm_project_allocation`.`ticket_type_id`,
`crm_project_allocation`.`ticket_source_id`,
`crm_project_allocation`.`task_name`, `crm_project_allocation`.`task_detail`,
`crm_project_allocation`.`start_date`, `crm_project_allocation`.`due_date`,
`crm_project_allocation`.`status`, `crm_project_allocation`.`progress`,
`crm_project_allocation`.`assign_to`, `crm_project_allocation`.`importance_master_id`, `crm_project_allocation`.`company_id`
FROM`crm_project_allocation`
WHERE`crm_project_allocation`.`deleted`=’0’AND`project_id`='{$project_id}’
AND`type`=2AND`parent_project_allocation_id`ISNULLAND`flag_confirm_allocation`=0
“;

the id is list1

second query like this

$g2->select_command = “SELECT `crm_project_allocation`.`project_allocation_id`, `crm_project_allocation`.`number_task_id`,
`crm_project_allocation`.`ticket_type_id`,
`crm_project_allocation`.`ticket_source_id`,
`crm_project_allocation`.`task_name`, `crm_project_allocation`.`task_detail`,
`crm_project_allocation`.`start_date`, `crm_project_allocation`.`due_date`,
`crm_project_allocation`.`status`, `crm_project_allocation`.`progress`,
`crm_project_allocation`.`assign_to`, `crm_project_allocation`.`importance_master_id`, `crm_project_allocation`.`company_id`
FROM`crm_project_allocation`
WHERE`deleted`=’0’AND`project_id`='{$project_id}’
AND`type`=2AND`parent_project_allocation_id`ISNULLAND`flag_confirm_allocation`ISNULLAND`flag_project_allocation`ISNULL
“;

the id is list2

is it any config ? currently those grids showing first query.

Your Answer

5 + 11 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?