You need to sign in to do that
Don't have an account?
Problems in <apex:detail>
I have few problems on <apex:detail>.
- Can we use <apex:detail> for custom Objects?
- When I use <apex:detail>, do I need to create any kind of page?
Plz anyone clarify about <apex:detail> .
I've created an example page and controller in my dev org that are working as you desire:
Page:
Controller:
All Answers
The <apex:detail> component will work for any object, standard or custom.
You'll either need to embed this component in a page that has an id parameter, or set the subject attribute to the id of the object that you want to display the detail for.
In my case, I'm displaying the some applicantID in pageBlockTable. When we click one applicantID, I want to display that particular Applicant in detail page.
Here the code.
/*Visual page*/
/*Controller*/
no any error but not displaying the detail page
This seems like a slightly about face way of doing this.
I'd suggest you'd be better to make the subject come from the controller rather than trying to scrape it from an apex param on the URL. In my experience the server side redirects associated with page refreshes tend to lose the URL parameters.
Try the following:
Controller:
I did the changes as your post. But I'm still getting the same result. That means no result.
use name attribute in the param tag apart from id....like
I've created an example page and controller in my dev org that are working as you desire:
Page:
Controller:
Hi Bob
Can you please help me on this
This is my requirement , I also have the same problem with Component.Apex.Detail .. My requirement is to display the records of Account Object as Tabs Separately and each tab should contain its Detail and its Corresponding Related list
I have implemented the tab panel and corresponding tabs , but i'm not getting the Detail Component running dynamically
it shows no error too
This is my code
VF Page
Hi All
This is it ! This code is working fine , to display accounts as tab along with its details and related lists
Vf page is the same
trail class:
Thanks
Aj
Bob,
It's good to have people like You, Jeff Douglas, and Jim Rae who just know everything. Much easier than looking through the help docs! Thanks!