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

learn more… | top users | synonyms (2)

1
vote
1answer
22 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
29 views

problem in javascript remoting

VF: <apex:page controller="jsclass"> <apex:form > <script> function getValue(){ var fieldValue = document.getElementById('test').value; ...
0
votes
1answer
24 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
26 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
24 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
28 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
23 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
30 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
36 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
38 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
29 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
22 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
27 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
56 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
63 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
68 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
29 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
61 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
85 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
127 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
42 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
58 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
42 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
61 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
52 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
138 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
42 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
537 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
41 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
30 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
54 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
33 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
63 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
57 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
34 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
229 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
46 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
67 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
285 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 ...
0
votes
1answer
25 views

How to access contact information outside salesforce environment

I want to access salesforce data like(contact information ) outside salesforce environment in javascript how i can access salesforce data. I have a javascript file on my computer now i want to retrive ...
2
votes
1answer
229 views

Visualforce Remoting Javascript Uncaught Reference Error

Am using the following buttons on visualforce page: input class="buttons" id="forecastButton" type="submit" value="Forecast" onclick="refreshRemoteChart" input class="buttons" id="exitButton" ...
0
votes
1answer
170 views

Visualforce Remoting Error

I am using Visualforce remoting to send data to a Remote Action method in my controller. The Remote Action method has a Map<String, Object> args parameter. In the Remote Action method if I try ...
1
vote
1answer
73 views

How to run a nested RemoteAction query to update original object?

In the below function I'm trying to update the first result object with the count of matches found in the second query. Problem appears to be that I can't update result[i] within the second query, ...
2
votes
1answer
342 views

Invoke Apex With No Invocable Method From Workflow Rule or Process Builder

I'm looking for a way to fire an Apex Class without using code or a button click. My Apex Class does not have an invocable method so I can't fire it using the standard Process Builder. But I do have a ...
1
vote
0answers
50 views

Login using javascript remoting

we are trying to use AngularJS as a framework for a community site. Problem is that the first page is accessible as a guest user. All required remote action calls are public. At a certain point, the ...
1
vote
1answer
113 views

Referring to a controller extension in VF remoting

I’ve created a class to extend a standard page controller… (documentation) <apex:page standardController="location__C" extensions="locationExtension"> The class locationExtension contains… ...
0
votes
0answers
129 views

onchange event not working in chrome but works well in firefox

Today I faced a weird issue. I have made a visualforce page containing an autocomplete box for searching. I have used javascript in my controller class and have written "onchange" event in visual ...
1
vote
1answer
39 views

How do I know which objects can use FOR VIEW/REFERENCE?

I'm implementing a custom UI for Salesforce using Visualforce and Remote Actions. When I'm displaying a specific record, I look for all visible fields and display it on the screen. The code in the ...
3
votes
1answer
522 views

how to call a generic @RemoteAction from different VF Pages?

I am trying to use salesforce @RemoteAction with an action that is generic to a couple of other VF Pages (other vf pages will be calling the same action). So what I want to do is instead of creating ...