+ Start a Discussion
suresh sanneboinasuresh sanneboina 

Enhanced List View

Hi,

How can i get custom enhanced list.

I have created a vf page. which look like the enhaced list view. but in the vf page i should not use <apex:enhancedlist>. How can this be achieved.

Regards
Suresh S
Best Answer chosen by suresh sanneboina
Ankit Gupta@ DeveloperAnkit Gupta@ Developer
Hi,

You can filter the soql query for "other"

Use the below code snippet as reference:

AND (NOT (' + sortColName+' like \'a%\' or '+sortColName+' like \'b%\' or '+ sortColName+' like \'c%\' or '+ sortColName+' like \'d%\' or '+ sortColName+' like \'e%\' or '+ sortColName+' like \'f%\' or '+ sortColName+' like \'g%\' or '+ sortColName+' like \'h%\' or '+ sortColName+' like \'i%\' or '+ sortColName+' like \'j%\' or '+ sortColName+' like \'k%\' or '+ sortColName+' like \'l%\' or '+ sortColName+' like \'m%\' or '+ sortColName+' like \'n%\' or '+ sortColName+' like \'o%\' or '+ sortColName+' like \'p%\' or '+ sortColName+' like \'q%\' or '+ sortColName+' like \'r%\' or '+ sortColName+' like \'s%\' or '+ sortColName+' like \'t%\' or '+ sortColName+' like \'u%\' or '+ sortColName+' like \'v%\' or '+ sortColName+' like \'w%\' or '+ sortColName+' like \'x%\' or '+ sortColName+' like \'y%\' or '+ sortColName+' like \'z%\'))

All Answers

Ankit Gupta@ DeveloperAnkit Gupta@ Developer
hi,

If don'y want to use enhaced list view then you need to build custom fucntionality
Please check the below link :
http://ankitgtest1-developer-edition.ap1.force.com/recordedit1
suresh sanneboinasuresh sanneboina
Hi ,

Thanks for answering, 

I am able to display the table. But i am not able to sort the alphabetical search for "other" option in my custom vf page. As salesforce doesnot supports the regular expressions i am not able to query for the other option. Please help me out of this.

Suresh S


Ankit Gupta@ DeveloperAnkit Gupta@ Developer
Hi,

You can filter the soql query for "other"

Use the below code snippet as reference:

AND (NOT (' + sortColName+' like \'a%\' or '+sortColName+' like \'b%\' or '+ sortColName+' like \'c%\' or '+ sortColName+' like \'d%\' or '+ sortColName+' like \'e%\' or '+ sortColName+' like \'f%\' or '+ sortColName+' like \'g%\' or '+ sortColName+' like \'h%\' or '+ sortColName+' like \'i%\' or '+ sortColName+' like \'j%\' or '+ sortColName+' like \'k%\' or '+ sortColName+' like \'l%\' or '+ sortColName+' like \'m%\' or '+ sortColName+' like \'n%\' or '+ sortColName+' like \'o%\' or '+ sortColName+' like \'p%\' or '+ sortColName+' like \'q%\' or '+ sortColName+' like \'r%\' or '+ sortColName+' like \'s%\' or '+ sortColName+' like \'t%\' or '+ sortColName+' like \'u%\' or '+ sortColName+' like \'v%\' or '+ sortColName+' like \'w%\' or '+ sortColName+' like \'x%\' or '+ sortColName+' like \'y%\' or '+ sortColName+' like \'z%\'))
This was selected as the best answer