Page 1 of 1

Linked Table Records on a new page

Posted: Tue Oct 17, 2017 8:38 pm
by johnberman

PHPMaker 2017

I have a a linked table and use the Extensions Detail Preview

On the lookup page I get a little plus sign and when clicked it displays the linked records as expected.

What I would like is to have the records displayed on a new page - it was not obvious how to do this ?

John B


Re: Linked Table Records on a new page

Posted: Wed Oct 18, 2017 10:10 am
by arbei

You can use jQuery function attr() to add the "target" attribute to the link in Startup Script.

For example:
$("#<ID of the element>").attr("target","new");

You can check the ID of the control by right click on it and select [Inspect].


Re: Linked Table Records on a new page

Posted: Thu Oct 19, 2017 11:13 pm
by johnberman

Thanks

I have tried the following in List Page \ Startup but neither make any difference

$("#ewPreviewRowBtn icon-expand").attr("target","new");

$("#el1_duration_lookup_preview").attr("target","new");

I guess Im not correctly identifying the ID of the control ?

Sorry I should know by now

John B


Re: Linked Table Records on a new page

Posted: Fri Oct 20, 2017 9:38 am
by mobhar

Your post is not clear enough. Can you explain it in more detail by using the demo project?

You may use "orders" and "orderdetails" table for such case. In other words, do you want to display the "orderdetails" records in a new page when user expand the Preview Row area? Is that what you would like to do?


Re: Linked Table Records on a new page

Posted: Fri Oct 20, 2017 2:14 pm
by johnberman

do you want to display the "orderdetails" records in a new page when user expand the Preview Row area? Is that what you would like to do?

Yes this is what I would like to do please

John B


Re: Linked Table Records on a new page

Posted: Mon Oct 23, 2017 9:13 pm
by mobhar

Well, I don't suggest you to change that functionality of that expanded/collapsed button, since this button is suitable to expand/collapse the Preview Row area at the same page.

If you want to display the Preview Row area on a new page, then you should enable "PreviewOverlay" option from "Tools" -> "Extensions" -> "Preview" -> "Advanced" -> "Table", and then use "Page_Render" under "Server Events" -> "Table-Specific" -> "Preview Page" to add a new button/link that will point to open Master/Detail List page in a new page.


Re: Linked Table Records on a new page

Posted: Mon Oct 23, 2017 11:32 pm
by johnberman

thanks - worked a treat

John B