Page_DataRendered Event

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

Page_DataRendered Event

Post by teskakun »

i am encountering an error. (but theres no error at all)
im using master/detail table. and on Add master/details
and when i put code on "detail" table on Page_DataRendered,
my code is not executed.

ive tried echoing CurrentPageID() on detail page data rendered but not executed.

any help will be so much appreciated.


mobhar
User
Posts: 11721

Post by mobhar »

Your post is not clear enough. Under which page did you mean that "Page_DataRendered"? Is it under Add, Edit, or List page?


teskakun
User
Posts: 5

Post by teskakun »

sorry, i mean phpmaker 2018 and not 2017

@mobhar
im on Add master/detail mode
and the code that is not working is on detail list page
under "Page_DataRendered"


mobhar
User
Posts: 11721

Post by mobhar »

In "Master/Detail Add" page, the master add page will include the detail grid table by using "<detailtable>grid.php" file. This file does not have the relationship to any "Page_DataRendered" of your detail List page.

So, if you want to display data at the bottom of your "Master/Detail Add" page, then simply use "Page_DataRendered" server event under "Add Page" that belongs to your master table.


teskakun
User
Posts: 5

Post by teskakun »

it works fine in my 2017 version but not in 2018.

if i use the page_datarendered on master's add page, the element that i am including will be placed after the add/close button.
that is why i want to put it on details list page page_rendered, to put it between the list and the add/close button.

maybe its a bug from 2018.


Post Reply