Filter by selected in table view

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
amyat
Veteran Member
Posts: 45
Joined: 2020-06-24 20:39

Filter by selected in table view

Post by amyat » 2021-10-01 10:16

dear,

What i need to write for this?
https://imgur.com/gcKUQ46

i want to filter on table view by selected this table view when click batch action (show action button)

I wrote step by step like a tutorial
----table-tv.js-----
function print_mail_labels(table_name, ids){
alert("IDs selected from " + table_name + ": " + ids);
}

What i need to write between this function?
How to save filter result link as like normal filter appgini.?

can u help me a little?
thank you..

pbottcher
AppGini Super Hero
AppGini Super Hero
Posts: 1635
Joined: 2018-04-01 10:12

Re: Filter by selected in table view

Post by pbottcher » 2021-10-01 19:29

Hi,
on what do you want to filter? Which field(s)?
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.

amyat
Veteran Member
Posts: 45
Joined: 2020-06-24 20:39

Re: Filter by selected in table view

Post by amyat » 2021-10-02 02:29

hi,

i want to filter on
multi select rows(list check box) for table view

sry for my bad english

pbottcher
AppGini Super Hero
AppGini Super Hero
Posts: 1635
Joined: 2018-04-01 10:12

Re: Filter by selected in table view

Post by pbottcher » 2021-10-02 10:24

Hi,

sorry, I'm still unclear on what you try to catch. So from what I understand, you want to filtern only the rows you selected by the checkbox. Correct?
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.

amyat
Veteran Member
Posts: 45
Joined: 2020-06-24 20:39

Re: Filter by selected in table view

Post by amyat » 2021-10-02 13:21

i want to filter only the rows i selected by the record_selecter_id.
sry:( for my english

pbottcher
AppGini Super Hero
AppGini Super Hero
Posts: 1635
Joined: 2018-04-01 10:12

Re: Filter by selected in table view

Post by pbottcher » 2021-10-02 16:23

Hi,

ok, so you could call your page ( the one with the selected rows) with an additional parameter. In the hooks file -> Init function you can check for that parameter and set the $query->QueryWhere to your id's, or set filters to your id's (which every you like more).
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.

sacgtdev
Veteran Member
Posts: 75
Joined: 2020-06-10 11:14

Re: Filter by selected in table view

Post by sacgtdev » 2021-10-08 05:04

Having querywhere set in hooks init, I am able to filter the record. But, if navigate from other page to the page that have querywhere set, the page will not load and require re-submission/refresh.

User avatar
onoehring
AppGini Super Hero
AppGini Super Hero
Posts: 1156
Joined: 2019-05-21 22:42
Location: Germany
Contact:

Re: Filter by selected in table view

Post by onoehring » 2021-10-08 05:32

Hi,

try to save the querywhere in a session variable. If the session variable is set just filter.
But make sure, that you/the user can clear this variable if needed ;-)

Olaf

Post Reply