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

learn more… | top users | synonyms (2)

1
vote
1answer
14 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 ...
6
votes
2answers
111 views
+200

What is the correct way to send DateTime member types in the payload to RemoteActions?

I have seen quite a few questions and answers regarding the conversion and display of a JSON serialized DateTime field in JavaScript and the effects of UTC on that data related to the user's locale ...
2
votes
1answer
26 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
193 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.
0
votes
0answers
18 views

sfdc sites:Does anybody know why this error is coming?

Below errors are coming: Uncaught TypeError: Cannot set property 'value' of undefined(anonymous function) @ pkb_liveAgentIframe:969f.extend._Deferred.e.resolveWith @ ...
1
vote
1answer
19 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
11 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
101 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
33 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
39 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
1answer
36 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
35 views

problem in javascript remoting

VF: <apex:page controller="jsclass"> <apex:form > <script> function getValue(){ var fieldValue = document.getElementById('test').value; ...
0
votes
1answer
41 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
12 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
36 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
30 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
46 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
29 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 ...
1
vote
2answers
37 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
0answers
46 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
43 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
30 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 ...
1
vote
0answers
25 views

Is it possible to pull fields across multiple objects using Remote Objects?

Perhaps I am missing something, but I cannot seem to find an example showing where someone has pulled data via Remote Objects across several custom objects. In this particular use case, I am ...
0
votes
1answer
29 views

Number of callouts apex resource warning

I have a scenario where i need to call a Remote Action which makes a callout in a loop until i get some results from the external service. Reason to call it in a loop is that if for some input service ...
1
vote
2answers
81 views

Remoting Exception: Attempt to de-reference a null object when attempting to get a field from an SObject

I am attempting to grab the value of the "Status" field from an SObject. @RemoteAction public static String getStatus() { Id NTHRecordId = ApexPages.currentPage().getParameters().get('id'); ...
6
votes
1answer
72 views

Can you pass a Map into a RemoteAction?

I have an instance where I am trying to pass a dynamic number of Page Parameters into an action method. It works... but it only will pass as a String. Is there a way to pass correclty as a Map? (The ...
1
vote
1answer
112 views

ApexPages.currentPage().getParameters with javascript remoting

I am working with a VF page that uses javascript remoting to do some work that an earlier developer made. There won't be an easy way to move the remoted method into the controller as a normal method ...
0
votes
1answer
33 views

OpenCTI API Calls

Do the calls made by client App developed using OpenCTI framework are counted against consumer's API limit. How about remote JavaScript methods that invoke Controller method in an App package ?
4
votes
1answer
86 views

Remote actions and visualforce variables aren't playing nice

I have a VF page where on a click of a specific table element, it needs to update another table. I have a jquery script that does this and then calls a static function with the remoting manager. My ...
3
votes
2answers
137 views

How to overcome delay in data load when using AngularJS in a VF page

I have a VF page that uses the AngularJS framework. I am not convinced that I am initializing my page correctly and would like to know what best practice actually is. Current page init process VF ...
1
vote
1answer
155 views

visualforce vs HTML/CSS/JS

UI requirement for our application are such that applications should be very responsive with very less lag time. Users should be able to use mobile easily while working with application. There are few ...
1
vote
1answer
66 views

How to download a file with remote action

I need to create a csv file based on passed parameters. I want to call my function from angular service using controller's remoteAction. How can I make the browser save the string output as a file?
1
vote
2answers
75 views

How to Use Javascript Remoting Namespace From Managed Package

We have a managed package. In order to implement a sandbox / release management process for our application we have made all our code dynamic. We populate via a custom setting the name of the org's ...
2
votes
0answers
47 views

My VF page is loading both Mobile & Desktop view

I am using JSON to populate data tables in my page. very Strangly, it's loading the data in both Mobile & Desktop view. Can anyone help me with this? Attaching the screen shot. PFB the code ...
5
votes
1answer
67 views

confusing field doesn't exist error from javascript remoting

I'm getting the following error from javascript remoting while logged in as a auth. sites user in the portal: No such column 'mynamespace__Contact__c' on sobject of type ...
3
votes
1answer
59 views

page navigation

i have a visualforce page where most of front end code is in HTML / CSS / JS. We are calling controller methods using javascript remoting. Is there any option other than ...
8
votes
2answers
170 views

Javascript remoting not hitting apex?

I'm trying to call an Apex function from a Visualforce page, but my Apex function isn't getting hit. What am I doing wrong? I have this ct_4_sf.RecordingTest.saveRecording( paths, ...
3
votes
1answer
59 views

Odd JS Remoting Behavior

I am in the process of porting an AngularJS application to Visualforce and Apex. For some of my services, I am using a custom controller with remote actions. Since this app will be included in a ...
1
vote
1answer
747 views

How to create Map<String,List<String>> in Javascript?

How to create Map<String,List<String>> in Javascript? Push method does not seem to work if we define aMap = {} and if(aMap [key]) { ...
0
votes
1answer
47 views

Javascript HashMap to Visualforce Remoting Method

Can we pass HashMap from Javascript to controller? Where aMap['a123']=['xy','yz']; and aMap['b456']=['ab','bc']; I want a remote action method with Map> parameter in controller.
0
votes
0answers
34 views

Salesforce Mutiselect apex:selectlist and javascript remoting

Can anyone provide me any example or code snippet how to use multiselect apex:selectlist and javascript remoting. Regards
3
votes
0answers
58 views

javascript remoting exception handling

I am calling remote actions which call external services. These external services are called in synchronous manner using web services callout. Are there any best practices around how to handle ...
0
votes
1answer
40 views

nesting javascript remote method calls [duplicate]

I have a scenario where i need to call two remote action methods. Second method needs an input parameter which is the output of first method. Can i nest the second remote call into first one. Is ...
1
vote
2answers
76 views

How to call a controller extension from java script

I'm creating a Visual Force page that enables user to add Case Comments. I am using javascript to create the comment and then I am using a controller extension to insert it. How can I call the method? ...
2
votes
1answer
64 views

javascript remoting store variable

How can i make some class / method variable value persist between multiple remote method calls ? I have a scenario where i need to call a remote action on click of a button multiple times. In between ...
1
vote
1answer
42 views

Multiple Remoting Controllers for SPA

I am attempting to build a SPA using VF, AngularJS and numerous Custom Apex Controllers with RemoteActions. My plan was to call the Apex backend via Javascript Remoting calls wrapped in Angular ...
5
votes
2answers
244 views

Is it possible to execute remote functions in order?

I am using javascript remoting. I have a situation where I need remote actions to execute in order. The problem I am running into is the second remote action executes prior to the first one ...
3
votes
0answers
52 views

Use Apex: page messages with Java script remoting

I am using javascript remoting in my VF page. I want to display any excpetion coming in Remoting as Apex page messages . Any direct way I can do that? Thanks, Ray
0
votes
0answers
77 views

Visualforce Remote Objects: what's the design reasoning?

Doing DML/query operations inside the page seems to contradict the MVC pattern that Visualforce is built on. Why would SF sacrifice design in favour of a feature whose sole purpose is making JS ...
6
votes
1answer
355 views

JavaScript button to call the Apex method is not working

I have an existing JavaScript button that calls Apex, and it works fine. I then want to add a second parameter to the method, but for some reason it isn't working. Is there something else I need to ...