Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Simple master-detail with custom table View modes: 
User avatar
Member
Member
LayZTigr - 12/1/2009 4:27:08 PM
   
Simple master-detail with custom table
I'm developing a website for a foundation. Using a custom table filled with members, I want to create master-detail pages. Displaying a list of members is easy enough with a custom table datagrid. When a visitor clicks on a member in the datagrid, a detail page of the selected member should appear. Can anyone point me towards the good direction?

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 12/6/2009 6:21:41 AM
   
RE:Simple master-detail with custom table
Hello,

You can specify path of detail page into 'Detail page path' property of custom table datagrid web part. There should be ID of record automatically passed to detail page in query string then. You will need to get the ID from query string and use it in where condition property of web part(s) that you are going to use to display detail of this particular record.

If you use ASPX templates, you can use following method to get data from query string:

QueryHelper.GetInteger("nameOfQueryStringParameter", 0);

If you use PortalEngine, you can use following macro directly in properties of web part: {%nameOfQueryStringParameter%}

Please see 'Appendix A - Macro expressions' section in Dev.Guide for more details.

Best Regards,

Martin Dobsicek