function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
DipaDipa 

Adding events on Enhanced List View in visual force page

I am using Enhanced List View in a visual force page. When I click the enhanced list view item the page redirected to the detail page of the selected record. My requirement is to display the detail record underneath the Enhanced List View on the same visual force page. I don't see any action attributes listed for Enhanced List View on the Visualforce Developer's Guide.

Is there a way I can do that?
kjpetersonkjpeterson

I had a similar issue the other day.  We were wanting to display multiple enhancedlist on one page to function as a super console.  We wanted to load the clicked records in a bottom frame like the normal console does but that proved to be too much work so we just went a simpler/quicker route.  I ended up writing some jquery to attach click events to links within the tables that open a new window for the record.  The "isdtp" logic is there to hide the sidebar and header in the popup window.

 

$("div.listViewport div.x-panel-body a").live("click", function(){
var sURL = $(this).attr("href");
if (sURL.indexOf("?") != -1) {
sURL += "&isdtp=mn";
} else {
sURL += "?isdtp=mn";
}
window.open(sURL, "Manage", "width=1000,height=700,menubar=1,resizable=1,scrollbars=1,status=1,location=1");
return false;
});

 

 

Message Edited by kjpeterson on 01-29-2009 07:36 AM