This topic is locked

Redirecting using menu tabs

3/10/2009 6:04:32 PM
PHPRunner General questions
G
gdkoduro author

Dear Forum Members
I have a mastertable (tblClient) with multiple detail tables.

From any list page detail tables can be reached by clicking menu tabs (url = "tblDetail.php").

When I search on the mastertable the resulting list page has (in addition to the menu tabs (url = "tblDetail.php")) URLs lined up with [Edit] [View] which direct to tblDetail where mastertable.ID = tabDetail.ID.

The url is tblDetail_list.php?mastertable=Client&masterkey1=1306.

Now my question is I need to redirect to a custom page (url="tblDetail_list.php?mastertable=Client&masterkey1=1306") using the menu tab as opposed to the actual table page (url = "tblDetail.php") when the menu tab(s) links are clicked.
Is this possible to do? If it is possible, then how do I do it?
Many thanks for your help.
darkwa

G
gdkoduro author 3/11/2009

Dear Forum Members

I have a mastertable (tblClient) with multiple detail tables.

From any list page detail tables can be reached by clicking menu tabs (url = "tblDetail.php").

When I search on the mastertable the resulting list page has (in addition to the menu tabs (url = "tblDetail.php")) URLs lined up with [Edit] [View] which direct to tblDetail where mastertable.ID = tabDetail.ID.

The url is tblDetail_list.php?mastertable=Client&masterkey1=1306.

Now my question is I need to redirect to a custom page (url="tblDetail_list.php?mastertable=Client&masterkey1=1306") using the menu tab as opposed to the actual table page (url = "tblDetail.php") when the menu tab(s) links are clicked.
Is this possible to do? If it is possible, then how do I do it?
Many thanks for your help.
darkwa


I take it the silence means "No".
I am working around the problem by:

  1. declaring a global GlobalClientID variable
  2. assigning the mastertable (tblClient) search result tblClient.ClientID to GlobalClientID
  3. including $strWhereClause="ClientID= ".$_SESSION["GlobalClientID"] in the tblDetail_list.php
    That way when the relevant tblDetail_list.php menu tab is clicked user only gets to see data for the particular ClientID.
    Thank you for everyone who stopped by and had a peek.
    I am still open to more elegant solutions if anyone out there can help - with my work around user loses the visual cue of "showmasterfile".
    darkwa