You need to sign in to do that
Don't have an account?

how do i add page table to visualforce page with clickable record row
Hi i have a simple table need to add to Contact object which will show top 5 cases from that contact sort by case number.
i need to create a visualforce page table to display 4 columns:
1) Case Number
2) Case Subject
3) Origin
4) Status
I wanted the Case Number to be clickable meaning if i click on the case number it will direct me to the case details
any suggestion?
i need to create a visualforce page table to display 4 columns:
1) Case Number
2) Case Subject
3) Origin
4) Status
I wanted the Case Number to be clickable meaning if i click on the case number it will direct me to the case details
any suggestion?
Thanks,
N.J
All Answers
You can do somthing like this in your vf page:
Where lstCases will populated in your controller.
Mark this as best answer, if this helps you.
Thanks,
N.J
Thanks for the suggestion, i manage to show the results i want. however it does not open a new tab in my console, instead it changes the VF page to case details page. I would like to open a new tab upon clicking on the case number.
<apex:commandLink value="{!oCase.CaseNumber}" action="/{!oCase.Id}" target="_blank"/>
<apex:commandLink value="{!oCase.CaseNumber}" action="/{!oCase.Id}" target="_blank"/>
You can refer to http://www.salesforce.com/us/developer/docs/api_console/index.htm for opening any link in new tab for Salesforce Console.
Thanks.
this is my code:
Thanks,
N.J