Hot answers tagged

26

Salesforce1 is a new platform, complete with a host of new APIs and mobile UI tools. To oversimplify it, it's taking the Chatter mobile app, which up until this point has just been an app running on closed source code and building it into a platform, while really blowing out its capabilities. It's built on the premise that our business lives are ...


25

You can access the camera from a Salesforce1 app, using the HTML <input> tag with accept="image/*" to access either the camera or photo library, for example <input id="photoFile" type="file" accept="image/*"/> You can then use the HTML5 File API to upload image data. Here's an example using the Force.com REST API - you would change this to ...


14

Well I came across this problem and this gets uglier when you are converting the double value returned from apex into date, the timezone offset gets added into the time and can even change the date!!!. Well to fix this I wrote a simple js function which nulifies the effect by subtracting the offset back from the date. function normalizeDate(mydate){ ...


13

Salesforce1 is a new mobile application provided by Salesforce. There were previously a few different ways to connect to Salesforce using a mobile (iOS or Android - iPhone, iPad, Android tablet, etc.) device: Salesforce Classic, Salesforce Touch, and Chatter Mobile. This mobile application replaces the most recent application, Chatter Mobile, which has been ...


13

Having been involved in one of those applications, i can say that there was no official list of things they provided, maybe their will be in due course, though the documentation does a pretty good job of describing the features to use. As such having your package make use of one or more of the following Salesforce1 features is going to allow you to be ...


11

Among my contacts at SFDC, this is a "hot" feature request. Somehow here in Germany a lot of people come up with that requirement. At sf1 world tour in London, I attended the breakout session "Salesforce1 Platform Roadmap" and it was said, they are working on that, but at the moment, there is no offline support. So I would say: no offline support for now. I ...


9

IMHO better to keep the API clean and marshall on the client. Dates go on the wire as UTC doubles. When you receive the dates: var date = new Date(object.CustomField__c); //CustomField__c is 1360108800000 When you transmit the dates: var object = {CustomField__c: new Date('February 15, 2013 15:00:00').getTime()}


9

You need to set the page to Available For Salesforce Mobile Apps. This is found in Setup > Develop > Pages > Edit (Page Name). First, you need to specify a page version of at least 27.0 (on the Version Settings tab), then you can check the box to make the page available. You can now also add pages to the navigation menu, under Setup > Administration > Mobile ...


7

Edited to reflect the fact that Salesforce Mobile SDK is in play The user can add a custom login host in the settings for their app (on iOS, from the home screen, Settings | Your App | Custom Host) and select it as the current login host. So, the user can, in principle, add example.cloudforce.com as a custom host and select it for use. You can also add My ...


7

I wrote ForcePad. Check out item 3 under the getting started section: (Optional) ForcePad connects to environments that are not otherwise API-enabled, like GE and PE orgs, by using a partner token. If you have a Salesforce partner token, paste it into RootViewController.h under PartnerTokenId. That said, getting a partner token is a little ...


7

My biggest take away from the Salesforce1 mobile application is the ability to navigate back into the application from a custom VF Page (made available in the app through a chatter publisher action). This feature is documented here This allows you to build custom VF to aggregate and display custom views, then navigate back to the prebuilt Salesforce1 app'...


7

As a developer, you only need to create the connected app once, in a Developer Edition. You publish your app, and it's good to go. You do not need to create a connected app configuration in any other org. Users from other orgs can log in via your app, without there being a corresponding connected app in their own org.


7

Update (2017) The trick below is good for 90% of cases, especially if you need a placeholder to which rerender might eventually have to inject something. But it can cause problems if you render VF as PDF and you're using this conditional rendering to hide table rows; inside <apex:repeat> for example. (Of course best would be to filter the data in a ...


7

Very interesting question. I was in a similar situation in an app a year back and here's what I researched and hacked together. Officially, you need to pick either the local or remote mode - both are NOT supported simultaneously. I did manage though to create an app with a local context and invoke my Visualforce pages in a WebView by passing the auth ...


7

As of today, there is a lwc module that you can import to get it: https://developer.salesforce.com/docs/component-library/documentation/lwc/lwc.create_client_form_factor Hope that helps


7

No salesforce is not offering this anymore. Last year those who received this certification in the past got an email saying it will be retired soon.


6

Yes, you can use Federated Authentication (e.g. SAML) and Delegated Authentication (DA) in parallel. The Mobile CRM product prompts the user for username and password - they give their enterprise password, which is be verified by the DA mechanism - a SOAP message is sent to an endpoint in the enterprise, which validates the username/password. When SAML is ...


6

@Gaurav The following is from Mo, a QE on the Chatter Connect team at Salesforce (he'll have an account shortly): regarding the native salesforce mobile chatter clients: some of these clients used internal older api's (not public) , most of the new clients use connect (the public chatter rest api) you can disable the access for these mobile chatter clients ...


6

Mohit - open your Android SDK Manager and make sure that you have at least Android 2.2 (API v8) installed.


6

As of the latest version of Chatter Mobile(v4.2), you can now include VF tabs in the app. Mark the VF page as Available to Mobile apps and create a tab that uses that page. Then go to Administer>Mobile Administration; you’ll find a new option called Mobile Navigation. This lets us rearrange “stage left” in the Chatter Mobile app. We can add and remove ...


6

This is by design, refer this bug for this issue on Github Force.com iOS SDK which was closed with the appropriate explanation - Github Issue 392


6

The Mobile SDK currently supports the following approaches Native iOS Native Android Hybrid iOS Hybrid Android Although it uses Cordova for packaging which does support Windows 8 development, the support for being able to run your app as a WebView in Windows 8 is not provided in Mobile SDK. If you are developing a Salesforce app for Windows 8, you should ...


6

For those facing the same issue, we managed to work around it with this approach In Platform/ios/CordovaLib/Classes/CDWebViewDelegate.m, there is a method (BOOL)webView:(UIWebView*)webView shouldStartLoadWithRequest with the following definition - (BOOL)webView:(UIWebView*)webView shouldStartLoadWithRequest:(NSURLRequest*)request navigationType:(...


6

Getting geolocaiton from mobile browser is easy if you are using a browser that supports it. Try below code, navigator.geolocation.getCurrentPosition(GetLocation); function GetLocation(location) { console.log(location); } Once you have got location to javascript, you can easily interact with salesforce API using javascript remoting or AJAX API. Try ...


6

Short answer - it works as expected If you select * a soup, you will get all the "internal" columns we create to support smartstore operations (more on this below). Columns that hold data from "indexed paths" use the type specified in the indexed spec (string, integer, floating etc). Since we don't support a type object, when you index non-leaf nodes, you ...


5

The SalesforceHybridSDK, as currently implemented, makes it challenging to link an existing hybrid app to the SDK for debugging purposes. This is a challenge that we plan to rectify in a future release, similar to the way Cordova now does it. But alas, our current framework structure is a blocker to such an approach. In the meantime, I usually recommend ...


5

This is probably because its not able to find the ant executable in your Path. I'm assuming you've installed Apache Ant. (http://ant.apache.org/bindownload.cgi) Assuming you're on Windows, you need to set your ANT_HOME and add the ant bin to your PATH environment variable So My Computer > Proprties > Advanced System Settings > Environment Variables Add a ...


5

There's not currently an easy way to upgrade your Cordova version within the Salesforce Hybrid SDK, as the current architecture has it embedded within the Hybrid SDK framework itself. I would say, for practical purposes, that's probably not the way to go at this point. Let me speak to your second question. First, we are actively working towards being on ...


5

According to the official documentation offline use is not currently supported. I would be surprised if it wasn't on the roadmap, though. http://help.salesforce.com/apex/HTViewSolution?id=000044637&language=en_US Where can I learn how to use Salesforce Touch? Knowledge Article Number: 000044637 Description The Salesforce Touch FAQ is ...


5

Regex is okay: [A-Za-z0-9]{15} import java.util.regex.Pattern; import java.util.regex.Matcher; public class IdUtil { private static final String INPUT = "00a000000000012"; public static void main(String[] args) { Pattern id = Pattern.compile("[A-Za-z0-9]{15}"); Matcher matcher = id.matcher(INPUT); if (!matcher.find()) System.out.println("...


Only top voted, non community-wiki answers of a minimum length are eligible