visualforce

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

How to format a date in VisualForce?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 01:13:12
In Salesforce, if I'm binding a date into a VisualForce page, how do I apply custom formatting to it? Example: <apex:page standardController="Contact"> <apex:pageBlock title="Test"> <p>{!contact.Birthdate}</p> </apex:pageBlock> <apex:detail relatedList="false" /> </apex:page> This will output a date in the default format: Thu Jul 01 09:10:23 GMT 2009 How do I get it (for example) into dd/mm/yyyy format, like this: 01/07/2009 (Hopefully this is a fairly easy question, but to get the Salesforce community going on here I figure we need a few easy questions.) Ryan Guest <apex:outputText value="{0

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

How to receive the SMS via twilio

[亡魂溺海] 提交于 2019-12-02 18:09:47
问题 I have installed the twilio package and following components. How do I configure the two components? When customer sends an sms it does not create a case in the sandbox. I am unable to receive sms details. What is the twilio message url where should I give in the salesforce? I am completely new to twilio configuration. Can someone please help. Whenever customer sends an sms, then it should create a case in the sandbox automatically by using twilio api . Component 1: Visual force Fage <apex

Google Maps on my Visual Force page doesn't show all markers as the number of results fetched

此生再无相见时 提交于 2019-12-02 18:07:42
问题 I am trying to develop a visual force page which shows "Program Locations". On page load it fetches all the programs and displays on the map using a marker. There are some filters available to reduce the result set and view specific programs. Everything works well except for the fact when page loads, my results table just below the Google maps div shows 16 record which is correct but my map shows only 11 marker definitely incorrect. I did put an alert on line just after creating geocoder

Creating a test class for a Select Statement

无人久伴 提交于 2019-12-02 10:35:39
I was wondering if you could help me. I am strugging to create a test class for the code below. Any help would be appreciated. Many thanks public class MatchReadyImage { public Match_Day_Check_List__c obj {get; set; } public MatchReadyImage(){ obj = [ Select Id, Match_Day_Ready_Status__c From Match_Day_Check_List__c Where Name = 'Everton V West Ham United Goodison Park EPL 2013-05-12' ]; } } You just need to create a test data which will be selected by your code, because the data from Org is not available in test context. After that you have to instantiate MatchReadyImage class and validate

How to receive the SMS via twilio

青春壹個敷衍的年華 提交于 2019-12-02 08:32:46
I have installed the twilio package and following components. How do I configure the two components? When customer sends an sms it does not create a case in the sandbox. I am unable to receive sms details. What is the twilio message url where should I give in the salesforce? I am completely new to twilio configuration. Can someone please help. Whenever customer sends an sms, then it should create a case in the sandbox automatically by using twilio api . Component 1: Visual force Fage <apex:page controller="TwilioRequestControllerContacts" action="{!init}" showHeader="false" sidebar="false">

Google Maps on my Visual Force page doesn't show all markers as the number of results fetched

泪湿孤枕 提交于 2019-12-02 07:47:30
I am trying to develop a visual force page which shows "Program Locations". On page load it fetches all the programs and displays on the map using a marker. There are some filters available to reduce the result set and view specific programs. Everything works well except for the fact when page loads, my results table just below the Google maps div shows 16 record which is correct but my map shows only 11 marker definitely incorrect. I did put an alert on line just after creating geocoder variable and if I go through all the alerts slowly the same page shows 16 markers. I thought it needs some