ssl,wireshark,visualforce,client-certificates,force.com
Added a screenshot of the handshake captures. can you please point me to where I should be looking? – See packet #31. It contains the Certificate Request. Also packet #33 contains the certificate from the client, so the reason is not the the client does not send the certificate,...
button,salesforce,visualforce,apex
In pageBlockTable var attribute is the name of object in the list and not the list itself so it would be a good idea to give it a different name. Like this: <apex:pageBlockTable value="{!projectJoin}" var="projectJoinObj"> And then you can reference it inside pageBlockTable <apex:outputField value="{!projectJoinObj.number__c}"/> ...
csv,salesforce,visualforce,apex
You will be extremely limited in how much data can be passed in the Query String using the PageReference.getParameters() method. Note that this method is limited to URL parameters. POST variables need to be handled by having a common controller class with a non-transient member to deserialize the data into....
javascript,jquery,ckeditor,salesforce,visualforce
It's too soon. This script fires as soon as this line of code is encountered. At that time the original <textarea> is still present on the page and the decorators didn't run (decorators hide the original tag and inject an <iframe> with whole RTF editor instead). You can verify it...
javascript,jquery,search,visualforce
$('#name').keyup(function() { delay(function (){ // Whatever you want to trigger paste it here. }, 1000 ); }); and this 1000 decides after how much milliseconds you want to trigger when user stops typing...
java,salesforce,visualforce,apex,soql
Set does not maintain sort. The fact that the values seem to be coming out in reverse order is coincidence. Can you use List instead?
ember.js,salesforce,visualforce
Ember Router will already separate server and client part of URL with hash when Router's location is set to hash, i.e. App.Router.reopen({ location: 'hash' }); ...
google-maps,salesforce,visualforce
Below code did the trick! var accountNavUrl; try{ if(sforce.one){ accountNavUrl='<a href="javascript:sforce.one.navigateToSObject(\''+account.Id+'\');">'; } } catch(err) { console.log(err); accountNavUrl='<a href="../' + account.Id + '" target="_parent">'; } console.log('-->'+accountNavUrl ); var content=accountNavUrl+account.Name+ '</a><br/>'+account.BillingStreet +'<br/>' + account.BillingCity +'<br/>' + account.BillingCountry; ...
Try this to get Label Name from Salesforce Object Fields: Schema.getGlobalDescribe().get('ObjectName').getDescribe().fields.getMap().get('FieldName').getDescribe().getLabel(); Your code: public List<SelectOption> getObjectFields() { Map<String, Schema.SObjectType> schemaMap = Schema.getGlobalDescribe(); Schema.SObjectType ObjectSchema = schemaMap.get(selectedObject); Map<String, Schema.SObjectField> fieldMap = ObjectSchema.getDescribe().fields.getMap(); List<SelectOption> fieldNames = new...
jquery,highcharts,salesforce,highstock,visualforce
Just try adding the 's' to your 'http' to get rid of that error. Although it still may not work. SFDC is really locking down cross-domain requests.
I would cheat and hide the page block I don't want with CSS ;) It's not a clever Apex'y solution but it takes care of sooo much stuff (objects and lists the user is not supposed to see, page layout consistent with his profile and selected record type etc.) Start...
javascript,jquery,visualforce,apex
If I understand your code, it looks like you are creating a ul and then trying to append lis to it, but you are using the following selector to select the ul from the DOM when it hasn't yet been added to the DOM until after the first iteration: jQuery('.plan_unit_dropdown...
Yes you can do that. Although, it is not a straight forward solution. The solution is to : create a custom input text element with the standard button styling overlay that element on top of the "choose file" button write javascript code to handle the click on the custom element...
salesforce,report,visualforce,apex
I use code that looks like this to show a report in a Visualforce page. I've left out details that would get in the way: <apex:outputPanel id="MissingAttRpt" > <apex:iframe src="/00O0000000AAJlV?isdtp=lt" scrolling="true" height="1588px" width="100%"/> </apex:outputPanel> The outputPanel is used so that the report can be re-rendered without refreshing the whole page....
javascript,angularjs,salesforce,visualforce
Are you using $scope.lblMsg={value:result['message']} inside a callback fro ma 3rd party api, like salesforce instead of a normal $http call? If 'yes', then you should consider wrapping that in an $apply block or an $applyAsync one, otherwise Angular won't know about that update.
javascript,salesforce,visualforce,apex
Yes, you can use the Metadata API to create custom objects from code. It is possible to call the Metadata API from Apex, but you need to make some adjustments to get it to work correctly. See Introduction to calling the Metadata API from Apex...
As I understand your question(s), the simple answer is NO/YES, but let me break it down: Run String URL from Apex - Yes - See pagereference https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_system_pagereference.htm Can you run a URL in Background - Yes you can use HTTP class https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_restful_http_http.htm#apex_classes_restful_http_http Can you run a DocuSign correct URL in...
Try this. <apex:outputLabel value="{!IF(name=='A','AAAA','Others')}" /> Where name is your variable....
extjs,salesforce,visualforce,treepanel
A1rPun pointed me in the right direction. First of all I was being stupid when calling the load method of my tree store and passing it the "Records" variable of my decoded json results. My results don't have this variable so that obviously isn't going to get me anywhere. Instead...
unit-testing,salesforce,visualforce,apex
You can test field level read access with: Schema.SObjectType.MyCustomObject__c.fields.MyCustomField__c.isAccessible(); Within a test method you can use System.runAs(User) to wrap the call and check the accessibility based on the users profile. See also: Testing CRUD and FLS Enforcement Enforcing CRUD and FLS ...
Add apex:outputPanel above apex:pageBlockSection and reRender outputpanel when Selection options is changed. Sample Code: <apex:pageblockSectionItem > <apex:selectList size="1" value="{!reasonCode}"> <apex:selectOption itemLabel="Test" itemValue="Test"></apex:selectOption> <apex:selectOption itemLabel="Accepted Offer" itemValue="Accepted Offer"></apex:selectOption> <apex:actionSupport event="onchange" action="{!isAcceptedReasonCode}" reRender="testPanel"/> </apex:selectList>...
javascript,xmlhttprequest,salesforce,visualforce
I'm still curious of the answer to the real question of why this happens. I've got a few thoughts, but this first: change your merge code to the following snippet. Communities.mergeHeader = function(header) { console.log("header: %o", header); var head = document.getElementsByTagName("head")[0]; head.innerHTML = header.head.outerHTML; }; I will follow up with...
You should be able to do this using URLFOR() though I haven't tried it with a tab before so here's some documentation to help I do know that a custom tab can be referenced by name followed by __tab such as My_Custom__tab, or standard tabs by using $Action such as...
salesforce,scheduler,visualforce,apex
Instead of 'calling' a page, you should execute the action method in the Controller class that is responsible for that page. If you look at the page you mentioned, at the top you should see something like <apex:page controller="myController" ... where myController is the name of the class that contains...
c#,asp.net,asp.net-web-api,salesforce,visualforce
From C# you have two common ways to integrate with Salesforce: Use the Partner API. Import the Partner WSDL and make the required SOAP callouts. Use the REST API. Make JSON based requests and parse the responses. Of course, there are a range of libraries to make these tasks easier...
salesforce,twilio,visualforce,apex
Finally I have created a Case while Customer Sent an SMS twilio Phone number. Steps: After Installation Twilio in Sandbox We need to create Visualforce page and One Controller As specified. Create a site url and add the your Visualforce page to your site.Then Give the site url(https://sandbox.force.com/sms). Path :Setup...