how to create custom dynamic filtered links

meanster99

Well-known member
DaDaBIK version 7.0 ENTERPRISE
PHP Version: 5.3.28
mysql version: 5.5.35
Web server: Apache/2.4.10 (Unix)
Client: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0

Hi,

I would like to be able to add custom links on my homepage (the page 'home' from custom pages) that link directly to various filtered records in the grid view. I understand I can just use the same URLs that are generated when I filter my records, but for instance, if my URL is:

index.php?table_name=tbl_staff&function=edit&where_field=staff_ID&where_value=2

How do I change that URL so that the 'where_value=2' bit dynamically becomes the correct value for the logged in user?

Thanks,
Matt
 

eugenio

Administrator
Staff member
Hi,
there isn't a built-it way to do it, you have to create a custom PHP page and put a php redirect to the URL there.
Remember that filters created in such way are not permanent, users can see all records by clicking on "remove search filter".

Cheers.
 
Top