Hide buttons on details records |
5/17/2020 12:41:27 PM |
PHPRunner General questions | |
W
WilliamB authorDevClub member
Hello, |
|
C
|
copper21 5/18/2020 |
Go to the fields you want to hide on the designer page. Click on the field and look to the right of the screen where you will see "item id". Click on the question mark just to the right and it explains how to hide elements. |
W
|
WilliamB authorDevClub member 5/18/2020 |
Go to the fields you want to hide on the designer page. Click on the field and look to the right of the screen where you will see "item id". Click on the question mark just to the right and it explains how to hide elements.
|
C
|
copper21 5/18/2020 |
Hello Brian21, Yes I have tried using those given instructions. That does not work. I will try to explain better. I have a main transactions list page that shows details of Case Notes, Payments and such. See image below. I want to hide the buttons that are visible on the detail records but on the parent list page only. Those examples work fine if I want to hide the button on the specific details list pages but that is not what I want. I can't get the img to load in here but this is the url. https://imgur.com/q6VyyWh
|
W
|
WilliamB authorDevClub member 5/18/2020 |
Ok, I think I got you. There may be an easier way than this, but what I do for that is to make a "Custom View" of the child table in the "Tables" view. I then attach the parent record to that new custom view child record and then you can change the list view for the child record by taking the buttons away. The downside to this is that if you add, edit, or delete any events you have to do it to both tables/views to keep them the same.
|
![]() |
need2sleepDevClub member 5/19/2020 |
This is similar to what I was asking for. Thanks to @mbintex from my topic and also his topic $master = $pageObject->getMasterRecord(); |
W
|
wpl 5/19/2020 |
Ya, I want to stay away from that if possible. I will keep searching for a hide button solution. Thanks
|
W
|
WilliamB authorDevClub member 5/19/2020 |
This is similar to what I was asking for. Thanks to @mbintex from my topic and also his topic This code has to go onto each list table that is linked as a child table in the "BeforeDisplay" $master = $pageObject->getMasterRecord();
|
W
|
WilliamB authorDevClub member 5/19/2020 |
I got this working. if ($_SESSION["hideButtons"] == 1){
$_SESSION["hideButtons"] = 1;
$_SESSION["hideButtons"] = "";
|
![]() |
need2sleepDevClub member 5/19/2020 |
I got this working. I added this to the details list page "Before display". if ($_SESSION["hideButtons"] == 1){
$_SESSION["hideButtons"] = 1;
$_SESSION["hideButtons"] = "";
|
W
|
WilliamB authorDevClub member 5/19/2020 |
Try this way: https://xlinesoft.com/phprunner/docs/getdetailspage(name_recordid).htm
|