JavaScript remoting in Visualforce allows you to call methods in Apex controllers from JavaScript.

learn more… | top users | synonyms (2)

0
votes
3answers
33 views

Javascript Remoting running on mobile device always get VFRemote.js.map 503 (Service Unavailable)

I am using javascript remoting for a visualforce page to save some data, everything works as expected on desktop/pc (none of the errors below occured), but just not mobile device(using iphone 6 plus ...
1
vote
0answers
15 views

Javascript remoting browser issue

I'm having an issue with javascript remoting that works in Chrome but fails in IE and Firefox on multiple machines. This used to work however. Below is the simplified code and I can confirm in debug ...
1
vote
2answers
35 views

Retrieve Picklist values when using Visualforce Remote Objects

Is there a way to get all Pick list values for a custom field / object using Remote Objects? I have looked at the docs, tried querying the fields but not sure how I can do this. Any guidance or ...
2
votes
1answer
31 views

How to create case using Sforce connection

Javascript <apex:page standardController="case"> <script type="text/javascript"> function insertcase() { alert('came'); var con = ...
0
votes
0answers
17 views

What is the best approach for retrieving data and/or configuration on page load to be accessible by scripts?

I'm building all of my pages using the SPA (single page app) approach lately. I have typically been following this general model for doing so: My page: <apex:page docType="html-5.0" ...
1
vote
1answer
19 views

Debug logs not showing for VF Pages on site community

We have a site of type community with custom domain(that ends with Force.com) and there are couple of VF pages(PageA & PageB) on this community. When a community user logs into our ...
1
vote
1answer
51 views

Angularjs not rendering with Visualforce Remoting

I am not sure where the error is but my angularjs is not being detected. Below is my HTML and Angularjs <apex:page controller="ApexRemoteInvokeManagerController" docType="html-5.0" ...
0
votes
1answer
31 views

what css framework suits better for embedded js applications?

I have some embedded js application consuming remote scripts from Force.com, right now I'm using bootstrap but it has a lot of conflict with the Force.com default css. I want to know if there is a css ...
3
votes
1answer
66 views

Remote Objects and Master-Detail - Can't create child records

I have a Master Object A... ...And a Child Object B with a Master-Detail field A__c pointing to A... ...I'm trying to create a B record, child of a pre-existent record A using Remote Objects... ...
7
votes
1answer
93 views

Dynamically get required fields with JS Remote Objects

I'm designing a VF SPA that uses remote objects. Much of the page is dynamic, and I use user input to define which sObjects I look up. I wanted to know how, given a user input for a sObj, I can return ...
0
votes
1answer
44 views

Is it possible to make a synchronous Visualforce remoting call?

I have a VF page where i need to make synchronous call.Is there any possibility for making Visualforce remoting call synchronous.
1
vote
1answer
73 views

How does Visualforce page respond to submit form event

I used a plain html button tag in my Visualforce page to call my javascript remote action. The html code looks like this: <div class="button-group"> <button class="primary" ...
0
votes
0answers
30 views

how can i do a javascript substring to retrieve all the values and add it to drop down

i have a string var str = [Sys[a="Horizon",b="test"],Sys[a="Horizon1",b="test1"],sys[a="Horizon2",b="test2"]] i need to extract the value of all "a" inside str and add it to my drop down list. ...
3
votes
1answer
55 views

Update Remoting Credentials Without Reload

I've got a native iOS app that uses a WKWebView to display a Visualforce page. This page makes extensive use of remoting, and currently I'm trying to determine a strategy to deal with session ...
0
votes
1answer
86 views

Jquery Datatable with delay

I'm trying to use JQuery DataTables with Salesforce JavaScript Remoting. Is there a way to delay datatables initialization? I want to do that otherwise datatables think there are no rows in the table. ...
0
votes
0answers
58 views

export div contents to excel and pdf with html

I have a div (id=divtable) with number of records in table. I want to export whole table or div whichever is easier with CSS. So far I have code to export it to excel but I don't get html formatting ...
1
vote
1answer
39 views

Date formatting when using JavaScript Remoting

I have a JavaScript remoting method that gets a List of custom objects with date. In my JavaScript method, I loop through the above list of objects and print them in a table. For Date__c though I get ...
0
votes
0answers
29 views

Remote Action not working in safari browser?

I have remote Action in javascript which is working in all browsers but not in safari browser. Here is the code snippet below . i have table with delete action,when i click the delete link ,it will ...
1
vote
1answer
91 views

Salesforce JSON parsing error

I am having issues with JSON parsing. Here is my controller method: @RemoteAction global static String GetDetails(string sName) { //do soamething with sName later ...
1
vote
1answer
41 views

Calling a @RemoteAction method from a class that is NOT your controller

I keep getting an error that the @RemoteAction method I'm calling doesn't exist. Here is the error text: No remoted actions found to resolve '$RemoteAction.FileRemoting.rename_file' It does ...
0
votes
0answers
67 views

Multiple marker on google map not working

Vf Page <apex:page standardController="Hotel__c" extensions="HotelList" sidebar="false"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> ...
0
votes
1answer
48 views

Javascript in place of apex:page action - JS remoting

I want to know if I can use javascript in place of apex:page action. I am implementing js remoting in my vf page. I am going to add @remoteaction before my pagereference method in controller. I also ...
2
votes
1answer
32 views

Add a job to the joblist in Visualforce page

I am having a list of jobs in the Visualforce controller. And in the page, I have a button called Add job, which adds another job into the list. What it current did is using an actionFunction for ...
1
vote
0answers
38 views

Copy Data from one field to another on fill via remote action

I have a field which is an autocomplete and data is fetched to it by remote action. I want when that field will get populate, the below text field should filled up with same data and if we add same ...
0
votes
0answers
21 views

Add attachments from a public site using site.com studio

we have a public community created with CMS tool site.com studio (just because client requirements). This site have a form on it, to get customer data, but now client want to add attachments into a ...
0
votes
1answer
26 views

Many ajax requests or load data one time in browser?

I am interested in the best practice for an autocomplete service I am working on. Is the best practice to make many ajax requests or to load data one time when the page loads? The data consists of ...
3
votes
1answer
131 views

JS remoting not working with Angular code

I am trying to do a simple remoting code base along with auto update to angular table. BUt if I call a remote method as it is async, it gets called late and even though I try to push data in my ...
2
votes
0answers
103 views

JSON.serialize results in System.JSONException: Salesforce System Error

This is just a test page. I want to send Javascript object into Remote Method and save it as JSON string, but it keeps failing with this error. Any help is appreciated. Visualforce page ...
3
votes
0answers
61 views

Calling APEX out of JavaScript the APEX-API Version is ignored

I run in an issue with calling APEX out of JavaScript, when i call my APEX class, the class is executed with API-version 34.0, but in the metadata of this class is the API-version set to 27.0. I need ...
1
vote
1answer
58 views

Remoting request invalid for your session error for just one machine

One of our testers is getting this error when doing a javascript remoting call: Visualforce Remoting Exception: Remoting request invalid for your session. But interesting part is I used the ...
10
votes
3answers
312 views

What is the correct way to send an Apex type containing DateTime members to RemoteActions?

Update: this is only an issue with a concrete type in a custom class. I implemented the same pattern with the Contact sObject containing a DateTime field, no exception thrown. Code below and the ...
2
votes
1answer
81 views

best practices for javascript remoting for controller classes

Most of the pages in our application have been built using HTML5/CSS/Bootstrap/Javascript Remoting/JQuery/AngularJS. Their controllers have most of the methods with @RemoteAction and other static ...
6
votes
3answers
279 views

salesforce code review best practices for controllers

What are some apex recommended practices salesforce checks while doing code review of apex classes used as controllers on pages.
1
vote
1answer
23 views

field value being truncated in javascript remoting response

I've tested the following scenario after tracking down a bug. Can anyone else confirm this is an issue with Salesforce or am I missing something? Replication steps: create a 14-4 percent field on ...
0
votes
0answers
43 views

I want to access the Case number or case id on Custom LiveAgent chat window.

I am using the salesfroce custome liveagent chat window. When i end the case the the getfeedback (App on app-exchange ) opens in same chat window. Here i want to pass the case number and the ContactId ...
2
votes
2answers
158 views

JavaScript remoting in Visualforce

I need to remotely call an apex method in a Visualforce controller, but the JavaScript code is not working. Controller method: global with sharing class MemberPoliciesController { @remoteAction ...
1
vote
1answer
43 views

Need to understand the difference between calling JavaScript Remoting in two different ways [duplicate]

Can someone explain what is the difference between calling JavaScript Remoting in two different ways - One way is mentioned @ ...
0
votes
0answers
239 views

sforce.apex.execute is not executing method

I am using the ajax/connection js on a custom visual force page <apex:includeScript value="/soap/ajax/34.0/connection.js"/> <apex:includeScript value="/soap/ajax/34.0/apex.js"/> I am ...
1
vote
2answers
88 views

Dependent picklist value is “undefined”

I have two picklists ...a controlling and its dependent.On button click I am trying to get its values in a javascript variables.The problem is I am able to see the controlling picklist selected value ...
0
votes
1answer
40 views

problem in javascript remoting

VF: <apex:page controller="jsclass"> <apex:form > <script> function getValue(){ var fieldValue = document.getElementById('test').value; ...
0
votes
1answer
105 views

Convert picklist and dependent picklist to multiselect picklists in visualforce page

I want to convert picklist and dependent pick list in to two multipick lists in visualforce page for selecting multiple values for searching purpose. When I select multiple values in first ...
0
votes
0answers
17 views

RelatedList Hovers Disappear

I have an apex:detail tag that is getting rerendered after a javascript remoting action successfully completes. The rerender works and the updated related lists/fields are updated and display ...
0
votes
1answer
71 views

Javascript Message show on List button click for a profile

I have a requirement to show a javascript pop-up that 'U r not allowed' when a particular profile Users click on the List button. For the rest of the profiles , I have a landing VF Page to deal with. ...
1
vote
1answer
71 views

Ajax Call Issue - faultcode:'sf:INSUFFICIENT_ACCESS' [closed]

Getting error message - faultcode:'sf:INSUFFICIENT_ACCESS', faultstring:'ClassName: no access allowed to this class.', Please help. Note: "Access of the class is already enabled"
3
votes
1answer
161 views

Remote Objects Query Criteria Where Condition “in”

I have an array list that takes many ids. I am trying to get records with remote objects according to array list. I am using 'in' condition for this scenario and ı am getting an error that is "Invalid ...
1
vote
0answers
59 views

Ajax Call Issue - 'faultcode:soapenv:Server'

I have create a button and written a logic to close a record when user click on that button. But when i'm clicking on the button it throw some exception like - A problem with the OnClick ...
3
votes
2answers
130 views

Polling in lightning component

What's the best way to implement polling inside Lightning component. I'd like to update my component every 5-10 seconds, calling backend (i.e. Apex class) to obtain new data for rendering. Seems like ...
2
votes
1answer
110 views

Unable to Implement click to call feature on visualforce page

Unable to implement "click to call" feature on Visualforce: it is working fine with standard pages of Salesforce. As per my requirement I have to implement this feature from VF page.I have gone ...
3
votes
1answer
72 views

Javascript Remoting vs Consuming Web Service

I am accessing a service side function through a javascript button on a visualforce page and I wanted to know; what is a better solution - Javascript Remoting or the AJAX toolkit (consuming a web ...
3
votes
1answer
40 views

Visualforce Behavior

I have visualforce page where i'm trying to get some data as part of page load, and some more data through remote function and modifying some of page input elements due to view state limitations. I'm ...