You need to sign in to do that
Don't have an account?
knshiv
Any documentation for mobile development
Hi,
I am looking for in depth mobile development documentation. I have done exposing Account, contact etc. objects to mobile and create mobile configuration and it works fine. But I am interested in developing VF pages for BlackBerry or iPhone.
Please let me know the best practices and any material to read.
Thanks
Salesforce Mobile Implementation Guide PDF
Did you checked this ?
public class MobileHome {
private List<Account> accounts;
public List<Account> getAccounts() { return accounts; }
private List<Contact> contacts;
public List<Contact> getContacts() { return contacts; }
public MobileHome() { // constructor
String q = System.currentPageReference().getParameters().get('q');
String c = System.currentPageReference().getParameters().get('c');
if (q != null) {
String fuzzy = '%' + q + '%'; // add wild cards
accounts = [select id,name,phone,fax from Account where name like :fuzzy limit 10];
}
if (c != null) {
String fuzzy1 = '%' + c + '%'; // add wild cards
contacts = [select id,name,phone from Contact where name like :fuzzy1 or phone like :fuzzy1 limit 10];
}
}
}
Prassanna,
Thanks for quick reply. Yes I have been reading this documentation.
But the problem I am facing is the performance. I have created a very simple VF page for mobile but it is very slow. Look at the page and the controller.
You are trying this for iPhone or any other?
It works fine in iPhone but not in BlackBerry. It is very slow in BlackBerry.