force.com

Using apex:relatedList in a Visualforce page when the user profile denies access to child objects

旧城冷巷雨未停 提交于 2019-12-11 04:31:41
问题 I have two custom objects, Appointment and Session Report. Session Report is a child of Appointment in a standard Master-Detail relationship. Additionally, I have a profile, Student, which has Read-Create-Edit-Delete for Appointments and no rights for Session Reports. The use case is a Student can create an Appointment but cannot view the Session Reports created for this Appointment by a Tutor. Using a standard layout for the Appointment object works as expected when viewing Appointments.

Iframe based integration in Salesforce

杀马特。学长 韩版系。学妹 提交于 2019-12-11 02:07:32
问题 I want to show my site inside the Salesforce iFrame, and when someone does any activity on my site inside the iFrame i want to update the Salesforce page as well? Can i do this, please suggest? 回答1: A more recent approach, now GA, is Force.com Canvas - this is iframe-based with additional security and features, including passing context such as Salesforce fields into the iframe. It also enables the iframed web app to call Salesforce APIs based on that authentication, either via JavaScript or

DH keypair exception in salesforce

眉间皱痕 提交于 2019-12-08 12:18:06
问题 I want to get access token of go instant api and I when I did this it send me following error 17:21:46:505 EXCEPTION_THROWN [10]|System.CalloutException: java.lang.RuntimeException: Could not generate DH keypair Please help me with this problem. 回答1: The issue has been resolved. It was due to a misconfiguration on our TLS endpoint that made it incompatible with Apex Callouts (and some Java versions). I've confirmed Apex Callouts are once again working. 回答2: It sounds like your SSL Library

Force.com IDE didn't reflect my changes?

*爱你&永不变心* 提交于 2019-12-06 09:55:14
问题 I just refactored (renamed) some Apex classes on the Saleforce web, and the change seems to have taken just fine on the web. But the force.com IDE did not download these new classes. Refresh from Server, Save to server and Synchronize all appeared to do nothing. But if I go under "Project Propertiess, and then change the 'Project Contents' to include everything, then it seems to be syncing.... Seems odd I have to do that... is it normal? 回答1: Yes it's normal. When you first create your

Force.com IDE didn't reflect my changes?

拟墨画扇 提交于 2019-12-04 16:32:44
I just refactored (renamed) some Apex classes on the Saleforce web, and the change seems to have taken just fine on the web. But the force.com IDE did not download these new classes. Refresh from Server, Save to server and Synchronize all appeared to do nothing. But if I go under "Project Propertiess, and then change the 'Project Contents' to include everything, then it seems to be syncing.... Seems odd I have to do that... is it normal? Yes it's normal. When you first create your project you select the metadata that you'd like to subscribe to. This has a number of benefits but the chief

How to implement “Cancel” functionality in a VisualForce Page

好久不见. 提交于 2019-12-04 04:02:39
I know that this is how to save a record <apex:commandButton action="{!save}" value="Save"/> I want a button to NOT save the current record (ie. Cancel) and navigate to the list of saved record (ie. list of objects for that object type). Something like this... <apex:commandButton action="{!cancel}" value="Cancel"/> The list view for an object is your base URL / the 3 letter prefix for your object / o, for example: https://na1.salesforce.com/a0C/o So you could just create an action method that returns a Pagereference with the appropriate URL and set to redirect ( pr.setRedirect(true) ).

Amazon S3: Strange Error -' Sometimes' SignatureDoesNotMatch, sometimes it does

那年仲夏 提交于 2019-12-03 13:05:52
问题 I am developing code for salesforce. We are using 'Force.com for Amazon Web Services' App from Appexchange. The app is provided by Amazon. I am downloading files from Amazon S3 on a machine. Sometimes I am getting the below mentioned error. Interesting thing is, only sometimes I get this error, rest of the times it works, even for the same file. <Error> <Code>SignatureDoesNotMatch</Code> <Message> The request signature we calculated does not match the signature you provided. Check your key

How can multiple developers efficiently work on one force.com application?

对着背影说爱祢 提交于 2019-12-03 11:29:18
问题 The company I work for is building a managed force.com application as an integration with the service we provide. We are having issues working concurrently on the same set of files due to the shoddy tooling that is provided with the force.com Eclipse plugin. If 2 developers are working on the same file, one is given a message that he can't save -- once he merges he has to manually force the plugin to push his changes to the server along with clicking 2 'Are you really sure' messages.

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

走远了吗. 提交于 2019-12-03 07:46:22
问题 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>

How can multiple developers efficiently work on one force.com application?

本小妞迷上赌 提交于 2019-12-03 01:44:25
The company I work for is building a managed force.com application as an integration with the service we provide. We are having issues working concurrently on the same set of files due to the shoddy tooling that is provided with the force.com Eclipse plugin. If 2 developers are working on the same file, one is given a message that he can't save -- once he merges he has to manually force the plugin to push his changes to the server along with clicking 2 'Are you really sure' messages. Basically, the tooling does a shoddy job of merging in changes and forces minutes of work every time the