I want to open the view page using another unique field not record ID. Originally the View page uses "pagesview.php?showdetail=&ID=1852" but want to use "pagesview.php?showdetail=&Another_ID=my-unique-id" where Another_ID is not a primary key but unique.
Open View Page with another field not Primary Key
-
- User
- Posts: 9288
You can update the $filter in Row_Selecting Server Event with your own filter.
For example:
$filter = "Another_ID = " . $_GET("Another_ID");
Read help file topic: "Server Events and Client Scripts" -> "Row_Selecting" Server Event.
You can make sure the page is in View page by checking the CurrentPageID().
Read help file topic: "Server Events and Client Scripts" -> "Some Global Functions" for more information.