Master Detail setup

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
johnberman
User
Posts: 210

Hide buttons for Master/Detail

Post by johnberman »

I have a master \ detail table setup

Im using the DetailPreview extension

Anyway when I click the plus sign to expand the the master and show the records within they are listed as expected and under that table there is the record count and then two button

Group Detail
and
Master / Detail View

I want to hid those buttons

Regards
John B


arbei
User
Posts: 9358

Post by arbei »

Disable the option "Master/Detail View" in the detail table will hide the button.


johnberman
User
Posts: 210

Post by johnberman »

Hi

Partial sucess

Im now left with one button

Master / Detail View

The group detail button has gone

So how do I remove or just hide that button please

Regards
John B


mobhar
User
Posts: 11703

Post by mobhar »

Please note that when you disable "Master/Detail View" option as arbei said above, then the "Master/Detail View" button will not be displayed.

So, did you mean that the only left button is "Master/Detail List" instead of "Master/Detail View" button?


johnberman
User
Posts: 210

Post by johnberman »

well

Under neath the records below the record count is a button with a grid pattern on it

Which has a url like

duration_matchedlist.php?showmaster=duration_lookup&fk_match_id=4

I would like to remove this if possible

Regards
John B


mobhar
User
Posts: 11703

Post by mobhar »

Put this code in "Startup Script" that belongs to List Page of your master table:

$(document).ready(function() {
$('[data-phrase="MasterDetailListLink"]').hide();
});


mobhar
User
Posts: 11703

Post by mobhar »

Please note that when you hide the generated "Master/Detail List" link, then your end-user will not be able to display the Master/Detail List page. You need to create your own hyperlink to display the Master/Detail List page.

In other words, you can only display Master/Detail List from Preview Row area.


Post Reply