visualforce

Unable to Receive the SMS via twilio

♀尐吖头ヾ 提交于 2019-12-19 04:21:46
问题 I have twilio phone number,Visual force page and Controller.I have reference Document I have followed.I send an sms via twilio but unable to receive the sms. Customer Send an sms to twilio number it can revert back the sms but unable to receive the sms details in Salesforce Apex Visual force page <apex:page controller="TwilioRequestControllerContacts" action="{!init}" showHeader="false" sidebar="false"> <center> <apex:pageBlock title="Twilio Request Listener"></apex:pageBlock> </center> <

Visualforce Custom Controller List

孤者浪人 提交于 2019-12-18 05:21:15
问题 What I'm looking to do is create a custom controller list that displays a mash up of Opportunities, cases and potentially one other object. I started using the class from the visualforce guide to get me going: public with sharing class CasePagination { private final Case c; public CasePagination(ApexPages.StandardSetController controller) { this.c = (Case)controller.getRecord(); } public ApexPages.StandardSetController CaseRecords{ get { if(CaseRecords == null) { return new ApexPages

Adding rows in visualforce page in PageBlocktable dynamically

血红的双手。 提交于 2019-12-13 04:27:09
问题 i am creating a dummy visualforce page whose code is <apex:page controller="sampleCon"> <apex:form> <apex:pageMessages id="message" /> <apex:pageBlock> <apex:pageBlockTable value="{!wrap1}" var="item" id="hello"> <apex:column headerValue="String" value="{! item.x}"></apex:column> <apex:column headerValue="Action"><apex:commandButton value="{!if(item.i == size-1,'Add','Delete')}" onclick="AddOrDelete({! item.i});" rerender="message"></apex:commandButton></apex:column> </apex:pageBlockTable> <

Custom Button to copy data from Opportunity into a related custom object

好久不见. 提交于 2019-12-12 21:17:02
问题 I have a custom object that is used for product setup that is mapped to an opportunity. It's a one to many relationship - one opportunity maps to many setup objects, but one setup object is only mapped to one opportunity. Opportunity has some setup fields that need to act as defaults for the related custom object. Unfortunately, I cannot just specify them in a formula - getting an error. What I would like to do is have a custom button that would allow user to click and copy all of the related

Send (Load) a URL to web browser and run it in background in APEX

安稳与你 提交于 2019-12-12 06:04:22
问题 Does Apex/Visualforce allow a URL which is stored as string in apex and run it in web browser in background. Actually, that url is returned from a Docusign RestAPI callout for posting the envelope into "correction" status. The Envelope correction Status is not activated until i manually paste the url (link) in to a web browser and run it. Does anyone know how to run a url programatically in a web browser through Apex/Visualforce in background ? (or) Is there anyway that i could activate the

Apex Class Controller Random Contact Records

删除回忆录丶 提交于 2019-12-12 02:53:21
问题 I am looking on selecting a small group of random contacts from a specific view. The records are in that view if their campaign status is set to sent. I have created an apex class that I think would work, however I am trying make this class a controller and build a visual force page. I am knew to salesforce and apex. After doing some research i think i will have to use getters and setters to call the information. My apex class is public class MyController { Integer count = [SELECT COUNT()

Flex and Salesforce connection: NOT ABLE TO login from flex to salesforce

拥有回忆 提交于 2019-12-12 01:39:12
问题 I am trying to log in from flex to salesforce, but I get security error accessing url . <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:salesforce="http://www.salesforce.com/" layout="absolute" width="500" height="300" backgroundGradientAlphas="[1.0, 1.0]" backgroundGradientColors="[#FFFFFF, #FFFFFF]" applicationComplete="init()"> <mx:Script> <![CDATA[ import mx.controls.Alert; import mx.collections.ArrayCollection; import com.salesforce

Command button in Visualforce can't read selected item from dynamic drop down list

左心房为你撑大大i 提交于 2019-12-11 18:21:35
问题 I am looking for help from Visualforce (Salesforce) page guru. Background: There is a drop down list (apex:selectList in terms of Visualforce page). Its select options are built by jQuery with returned data (in JSON format) from RemoteAction (in Controller). Problem: it always reports error message (j_id0:j_id2:j_id3:j_id4:orgList: Validation Error: Value is not valid) when I click command button which sends selected item value to Controller. Any thoughts? Thanks very much. Troy Visualforce

How to refresh a div?

僤鯓⒐⒋嵵緔 提交于 2019-12-11 15:04:29
问题 Most of the examples I have found explain how to refresh a div with text or with another page. I just want to reload the div again after click on a button. How can I do this using javascript? Thanks. 回答1: With AJAX. If you use jQuery, it's as simple as $('#mydiv').load(url) 回答2: Any change to the DIV element is stored in the DOM of the page is displayed immediately. You do not need to do anything for that. However, the old state of the DIV after the change is lost. You need to store it

Cannot get values of <apex:selectRadio> when inside <apex:repeat>

丶灬走出姿态 提交于 2019-12-11 14:19:45
问题 When I setup a visualforce page with a <apex:selectRadio> that is inside a repeat, I cant seem to get the selected value back into the controller. If I move it out of the repeat, it works fine. Any ideas? Controller: public with sharing class COPE_TestsExt { public id tid {get;set;} public boolean showTestSelect {get;set;} public list<COPE_Tests__c> tests {get;set;} public list<COPE_questions__c> questions {get;set;} public list<List<SelectOption>> options {get;set;} public COPE_results__c