I have to develop an app which has to works on every kind of device like desktop, iPad and mobiles. This app will not use any native UI. The only thing is it has to be developed using Force.com. Any idea which framework (like Bootstrap) fits well while working on Force.com?
[SalesForce] Develop responsive app using Force.com
Related Solutions
Based on the discussion in the comments...
The problem appears to be with how the package contents was being passed to Salesforce. That is, it deployed when directly passed to the Metadata API via workbench as a flat structure, but was failing when the folder structure was included in the zip file.
As per the answer to Metadata Deploy - Package.xml Failure, the deployRoot
folder structure needs to be:
+ src
|-- package.xml
+-- classes
|-- MyCustomWrapper.cls
|-- MyCustomWrapper.cls-meta.xml
Try updating your sf:deploy
in the build.xml with attributes for:
- pollWaitMillis="10000"
The number of milliseconds to wait between polls for retrieve/deploy results. The default value is 10000 milliseconds (ten seconds). For long-running processes, increase this number to reduce the total number of polling requests, which count against your daily API limits.
- maxPoll="200"
The number of polling attempts to be performed before aborting. The default value is 200. When combined with the default value of pollWaitMillis (10000), this means the Force.com Migration Tool will give the server process a total of 2,000 seconds (33 minutes) to complete before timing out. The total time is computed as 200 poll attempts, waiting 10 seconds between each.
This will increase the timeout duration.
You are using a formula field. Formula field is not stored in database and are evaluated at run time.
- As workflow rule fire only when there is change in data create/edit. As change in formula field is not excatly change in data as its not a field in database, thus the workflow wont fire automatically when Applicant reaches a certain age.
- When you edit that record, then workflow rule fires and evalutes the criteria. During evaluation it finds that formula value has changed and should trigger a field update.
- subsequently met criteria only fires when old value is different than new value. So before DML the formula value and after dmL formula value is same, it wont trigger the field update.
You have to use Scheduler/Time Based workflow for this behavior.
Below link mentions both approches to send email via Scheduler and via time based workflow. http://www.simplysfdc.com/2015/02/salesforce-send-birthday-email.html
Best Answer
The easiest and simplest starting point is to look at the hybrid samples in the force.com Mobile SDK. By default, these use jQuery Mobile which takes care of optimising the app UI for various screen sizes (to a certain extent). You can always replace jQuery Mobile with any other HTML5 framework such as Sencha Touch, Twitter Bootstrap or any other. The above holds true if you want to develop apps which install on devices.
On the other hand, if you simply want your VisualForce pages to be rendered optimally across multiple devices, you should strongly consider looking at Mobile Components for VisualForce - http://wiki.developerforce.com/page/Creating_a_Mobile_Component_for_Visualforce
If you want to use jQuery Mobile in VisualForce pages, please take a look at this tutorial - http://blogs.developerforce.com/developer-relations/2011/07/jquery-mobile-in-visualforce-pages.html
If you want to use Twitter Bootstrap, this is a good starting point - http://blog.tquila.com/2012/10/22/using-twitter-bootstrap-with-vf-pages/
Hope this helps.