Export filtered issue

QuestionsExport filtered issue
c3media asked 1 week ago

Hello Abu,

 

I am trying to export in PDF with master-detail, however is not filtering the master grid.

Code: https://gist.github.com/mediac3/72547f8cb14ded9db52edc3b5471e8de

4 Answers
Abu Ghufran Staff answered 1 week ago

You can get WHERE clause currently used by this code:

$searchstr = $_SESSION[“jqgrid_list25_searchstr”];
$wh = $this->construct_where($searchstr);

And use $wh in your export sql query.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
c3media answered 1 week ago

Hello Abu,

 

Where to put this code, what line?

Abu Ghufran Staff answered 1 week ago

On line 277, where you are loading $data, you will need to comment that and run sql query and get results in $data from that.

$searchstr = $_SESSION[“jqgrid_list25_searchstr”];
$wh = $this->construct_where($searchstr);
$data = $grid->get_all(“SELECT * FROM col_enrollment_book $wh”);

I’ve not tested this code so you need to debug using print_r, die.

 

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
c3media answered 6 days ago

Hello sir,

 

I did it, however show CMS issue as critical and it’s not possible to debug.

 

Regards!

Your Answer

3 + 15 =

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?