Adding a "Master/Detail Add" link

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

Adding a "Master/Detail Add" link

Post by ivy »

I would like to add a "Master/Detail Add" link beside these links "Master/Detail View Master/Detail Edit Master/Detail Copy" when you have your details enabled.

I got it to work by adding the below line in RenderListOptionsExt():

$btngrp .= "<a href=\"javascript:void(0);\" class=\"ewLinkSeparator\" onclick=\"window.location='list.php?" . substr($this->GetCopyUrl(EW_TABLE_SHOW_MASTER . "=ITMaster"),16) . "'\">Master/Detail Add</a>";

My question is, is there a way to do this in Server Events/Client Scripts? The problem with my solution above is that, it will be overwritten once I generate the page.

I hope I make sense.

Thanks.


mobhar
User
Posts: 11745

Post by mobhar »

Simply use "ListOptions_Load" and "ListOptions_Rendered" server events.


ivy
User
Posts: 18

Post by ivy »

Thank you!


Post Reply