Table view - custom field links

The recommended method of customizing your AppGini-generated application is through hooks. But sometimes you might need to add functionality not accessible through hooks. You can discuss this here.
Post Reply
GreenWyvern
Posts: 8
Joined: 2013-04-05 09:23

Table view - custom field links

Post by GreenWyvern » 2017-05-16 10:40

I need to change all the field links in a table view. Suppose the table is 'table1', then all the default links are to

   ...table1_view.php?SelectedID=...

I need to change all the links to

   ...table2_view.php?SelectedID=...

So I want to redirect all links to the detail view of a different table. Is there any way I can do this?

Thanks!

GreenWyvern
Posts: 8
Joined: 2013-04-05 09:23

Re: Table view - custom field links

Post by GreenWyvern » 2017-05-16 17:33

Okay, I found the solution!

In the init function in the hooks file, add the line

   $options->ScriptFileName = "table2_view.php";

Post Reply