force.com

How to find out which checkboxes have been selected on the next page in VisualForce?

怎甘沉沦 提交于 2019-12-02 21:13:21
I have a data table which iterates through a custom object and generates checkboxes. On the second page, I want to determine which of these checkboxes have been selected. In the VisualForce page: Age <apex:inputText value="{!age}" id="age" /> <apex:dataTable value="{!Areas}" var="a"> <apex:column > <apex:inputCheckbox value="{!a.name}" /> <apex:outputText value="{!a.name}" /> </apex:column> </apex:dataTable> In the Controller: public String age {get; set; } public List<Area_Of_Interest__c> getAreas() { areas = [select id, name from Area_Of_Interest__c]; return areas; } On my second page, I can

Is it possible to add style to a field in Salesforce?

十年热恋 提交于 2019-12-02 17:43:37
问题 I have a situation where I need to convert input text to upper case. As soon as we type some text in the input field it needs to convert it to Upper case. We have following css style for this: style="text-transform: uppercase" Using this style, text is entered in Upper case automatically so we don't need to do anything extra, but there is no option in Salesforce to add style to a field. Is there any way to accomplish this? 回答1: Unfortunately, there isn't an easy way to add a CSS style to a

Failed to create the part's controls in Eclipse with Salesforce

梦想与她 提交于 2019-11-30 08:53:25
I have Eclipse Juno and Force.com IDE. When I try to create new classes they always show: failed to create the part's controls . It worked for the first time, but now they always show this. Same happens if I create them inside the force.com platform. Error details: org.eclipse.core.runtime.AssertionFailedException: assertion failed: at org.eclipse.core.runtime.Assert.isTrue(Assert.java:110) etc ... I would appreciate all help. I had the same error. I fixed it by switching the eclipse workspace. Go to menu File->Switch Workspace->Other, and then select the same workspace you were working with.

Eclipse Git plugin - remove file from repo without deleting local

戏子无情 提交于 2019-11-30 03:23:21
Using the Egit plugin, is it possible to permanently remove a file from source control without deleting the local copy? I.e., is there a GUI action equivalent to running "git rm --cached"? (Edited to simplify question) I have found the answer. Team->Untrack is indeed the equivalent of "rm --cached". However there is a known bug which produces weird behaviour when you untrack and then try to commit. https://bugs.eclipse.org/bugs/show_bug.cgi?id=363405 Team -> Advanced -> Untrack did the job ( git rm --cached ) for me. I had the same problem, after not initially including directories and files

Eclipse Git plugin - remove file from repo without deleting local

时光总嘲笑我的痴心妄想 提交于 2019-11-29 00:59:15
问题 Using the Egit plugin, is it possible to permanently remove a file from source control without deleting the local copy? I.e., is there a GUI action equivalent to running "git rm --cached"? (Edited to simplify question) 回答1: I have found the answer. Team->Untrack is indeed the equivalent of "rm --cached". However there is a known bug which produces weird behaviour when you untrack and then try to commit. https://bugs.eclipse.org/bugs/show_bug.cgi?id=363405 回答2: Team -> Advanced -> Untrack did

Salesforce Authentication Failing

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-27 06:24:51
I am trying to use OAuth authentication to get the Salesforce Authentication Token, so I referred wiki docs , but after getting authorization code, when I make a Post request with 5 required parameters, I'm getting following exception {"error":"invalid_grant","error_description":"authentication failure"} CODE 400 JSON = {"error":"invalid_grant","error_description":"authentication failure"} which is I guess a bad request. PostMethod post = new PostMethod("https://login.salesforce.com/services/oauth2/token"); post.addParameter("code",##############); post.addParameter("grant_type","authorization

Disadvantages of the Force.com platform [closed]

拈花ヽ惹草 提交于 2019-11-27 06:01:33
We're currently looking at using the Force.com platform as our development platform and the sales guys and the force.com website are full of reasons why it's the best platform in the world. What I'm looking for, though, is some real disadvantages to using such a platform. Jeremy Ross Here are 10 to get you started. Apex is a proprietary language. Other than the force.com Eclipse plugin, there's little to no tooling available such as refactoring, code analysis, etc. Apex was modeled on Java 5, which is considered to be lagging behind other languages, and without tooling (see #1), can be quite

Salesforce Authentication Failing

一曲冷凌霜 提交于 2019-11-26 11:57:38
问题 I am trying to use OAuth authentication to get the Salesforce Authentication Token, so I referred wiki docs, but after getting authorization code, when I make a Post request with 5 required parameters, I\'m getting following exception {\"error\":\"invalid_grant\",\"error_description\":\"authentication failure\"} CODE 400 JSON = {\"error\":\"invalid_grant\",\"error_description\":\"authentication failure\"} which is I guess a bad request. PostMethod post = new PostMethod(\"https://login

Disadvantages of the Force.com platform [closed]

会有一股神秘感。 提交于 2019-11-26 11:49:21
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . We\'re currently looking at using the Force.com platform as our development platform and the sales guys and the force.com website are