[SOLVED] "Additional" view page getting ignored |
5/29/2024 7:10:24 PM |
PHPRunner General questions | |
D
druck281 author
I have a table called 'awd_AwardType'. The default view page is the PHPR standard view page, awd_awardtype_view.php. I created a second view page called 'view1' with fewer fields that I want to display in a popup from another page. After building the project, when I navigate to mydomain.com/awd_awardtype_view.php?page=view1&editid1=5, as designated on the design screen and adding the record ID, instead of being taken to view1, I am taken to the standard view page. Any idea what is causing the 'page' parameter to seemingly get ignored? (PHPR 10.91)
Thanks! |
|
D
|
druck281 author 5/30/2024 |
I ended up working around it and grabbing the fields I wanted from the Database and displaying them in a Sweet Alert. Doesn't really answer the question but it's a working solution. |
M
|
MikeT 5/30/2024 |
Your original plan should work, I'm using the same method in projects. It's also not exactly clear what didn't work: the normal display of the alternate view (view1)? Or the display of the view1 in a popup? Or the regular (default) view? |
D
|
druck281 author 5/30/2024 |
I had the same thoughts. Draft is unchecked. Running the button code loads the default view page in the popup. I tired just pasting the URL in the address bar in Chrome and it still loads the default view. I also checked the permissions and my user has Admin permissions. I'm sure it's something small somewhere that I am looking right past. |
![]() |
Sergey Kornilov admin 5/31/2024 |
You need to double-check permissions and make sure your user has access to this specific page. User being an Admin has nothing to do with access to specific pages. Read the note at the bottom that explains what 'Admin group' means: https://xlinesoft.com/phprunner/docs/user_group_permissions.htm |
D
|
druck281 author 5/31/2024 |
I should have been more specific. My user is in the Admin group and I assigned all permissions for every page in the project. I even expanded out the 'Show Pages' link to be sure that the check boxes for 'view1' were checked. For now, my work-around is serving the purpose so I am happy with that. Thank you. |