Discussions
- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- Security
- Mobile
- Force.com Sites & Site.com
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby
- Desktop Integration
- APIs and Integrations
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- AppExchange Directory & Packaging
- Salesforce Labs & Open Source Projects
- Other Salesforce Applications
- Jobs Board
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- Visualforce Development
- :
- Is possible to sort record in apex related list?
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Is possible to sort record in apex related list?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-25-2012 07:47 PM
Hi All
I made an account VF. Make contact related list as <apex:relatedList subject="{!account}" list="contacts" />.
I want to only show the contacts which has email in this related list. Is it possbile?
Thanks
Kunlun
Re: Is possible to sort record in apex related list?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-26-2012 09:30 AM
Hi kunlun,
Try this:
Setup-->Customize-->Account-->Page Layout-->Select page layout which you are working on:
Click on related list properties for Contact: You will get option as "Sort By" - Select the field from picklist and select the sort order.
Hope this helps.:)
Thanks,
Devendra
Devendra
Re: Is possible to sort record in apex related list?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-26-2012 08:50 PM
i think this is not sort logic this is kind of filter you want a build a business logic as a realted list ...so u need to construct the logic where the contact email is there and then bind that list to the vf page....or you can do a conditional check in the page itself... but best thing is do ur business logic and get the final list to page and bind the same..hope u got my point
My Blog
Kiran

