How to Open a New Blank Page when Clicking on a Record?

Got something cool to share with AppGini users? Feel free to post it here!
Post Reply
mohamed
Veteran Member
Posts: 80
Joined: 2020-04-19 16:18

How to Open a New Blank Page when Clicking on a Record?

Post by mohamed » 2021-10-04 15:47

Hello,

How to redirect the Click of any record in the Table View, to open a new HTML blank page instead of the default Detail View HTML Page?!
THANK YOU...
AppGini Pro 24.11 -
Calendar - Search Page Maker - Summary Reports - Mass Update - DataTalk -
bizzworxx AppGini Helper JabaScript Library - bizzworxx Inline Detail-View - bizzworxx Helper Pack - AppGini Helper Packaging Tool -
Udemy course

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

Re: How to Open a New Blank Page when Clicking on a Record?

Post by onoehring » 2021-10-06 09:47

Hi Mohamed,

you could do two things
a) remove all "base"-links in the tableview.
This would require either
1. changing the base file AG uses to generate the tables layout (probably in /templates/tablename_TemplateTV). Be aware, that this file will be regenerated, once you (re)generate your app.
You can put there some link that leads to the page you wish.
or
2. use JS to remove all links from the rendered page

- or (imho better) -
b) make use of the _init function in /hooks/tablename.php.
Check, if a record was selected (check POST and GET parameters! for $selectedID). If there was a parameter set, the user "clicked on a record", thus: redirect to your "own" page instead of continuing.

PS: You might also want to use the setting in AG to open the details page in another page (not below TV). This might make things a little easier.

Handle with care - the above was just an idea.
Olaf

mohamed
Veteran Member
Posts: 80
Joined: 2020-04-19 16:18

Re: How to Open a New Blank Page when Clicking on a Record?

Post by mohamed » 2022-07-28 12:26

Hi Olaf,

Sorry I did not get back to you earlier, as I have missed your feedback.

I just want to Thank You for your feedback.

Best Regards.
THANK YOU...
AppGini Pro 24.11 -
Calendar - Search Page Maker - Summary Reports - Mass Update - DataTalk -
bizzworxx AppGini Helper JabaScript Library - bizzworxx Inline Detail-View - bizzworxx Helper Pack - AppGini Helper Packaging Tool -
Udemy course

Post Reply