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

learn more… | top users | synonyms (2)

1
vote
1answer
58 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
24 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
26 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
28 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
41 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
39 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 ...
7
votes
2answers
94 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, ...
-1
votes
0answers
33 views

How to call action function in javascript remoting [duplicate]

Can anyone tell me how to call the action function in visualforce javascript remoting? My usecase is I want to execute action method after ther remoting ​I've onclick and action method in ...
2
votes
1answer
25 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
159 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
29 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
20 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
2
votes
0answers
31 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
19 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
42 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
35 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
25 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
198 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
29 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
34 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
188 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
19 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
97 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
81 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
54 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
228 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
39 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 ...
0
votes
1answer
56 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
99 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
32 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
238 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 ...
0
votes
2answers
74 views

Controller not found in Inline visualforce page

I am getting this error in the inline vf page: Controller not found for 'CloudFilesController' while no such error comes when I open the vf page directly without using it as inline page. VF page: ...
0
votes
1answer
47 views

VF remote object paganition

If I am using VF remote objects and I want to allow paging through the results I need to add an OFFSET flag. ...
0
votes
0answers
27 views

Block UI when visualforce remoting method is called

Below is my javascript code in a visualforce page. Here I want to block UI when page request is initialized and then unblock UI on response completion. Pleasse help me out. Thanks mid = ...
1
vote
1answer
265 views

How to pass JavaScript array to Apex controller

Sorry for a simple question. I'm totally new to Salesforce. I want to pass JavaScript array to Apex to save its data in the Salesforce custom object. I want to know the best approach to do it without ...
4
votes
1answer
96 views

Visualforce Remoting and translations

Is it possible to retreive translated picklist values using VF Remote Objects? For example, I have a Solution and I'm trying to get Solution.Status. So I have the following: ...
2
votes
1answer
124 views

Call VF remoting based on action function result

I am trying to create a Case creation form along with drag n drop file attachment to the case. Case creation happens using Action of command button and what I want is if there is any attachment that ...
0
votes
0answers
60 views

How can we add lookup dialog to unrelated field on custom object to a custom field on standard object

I have built a custom object that has a proposal number field that should be linked to custom proposal number field in Opportunity. Before I had this filed in custom object defined as lookup to ...
2
votes
1answer
79 views

VFRemote.js non-uglified/minified

Has anyone got (or know how to get hold of) a copy of the VFRmote.js in a non-uglified/minified state? I have, several times, had to debug the JavaScript remoting and run into issues since this is ...
0
votes
0answers
72 views

How can I get knowledge article inline rather than taking it on next page?

On the click of title it navigates to the next page, i want to have a behaviour like javascript hide/show buttons. But I am not able to achieve so. I tried with Iframes as well, but then only one '' ...
0
votes
2answers
1k views

Open a Visual force page as pop up from another visual force page with parameters

I am having a visual force page with a button. On click of a button, I need to open another visual force page as popup. Also, I want to parameters through that as well . I am able to do so using ...
3
votes
1answer
794 views

Accessing Non-Static Variables in Static Methods of a Visualforce Controller

I have a scenario where I have one Vf page called 'myVisualforce' and a custom controller 'myController'. In myController I have some non-static variables for example 'var1' and 'var2' and I have few ...
5
votes
1answer
142 views

Included StaticResource javascript cannot call RemoteAction

I am trying to call a RemoteAction in an Apex Component. Every time I get the error 'unable to invoke action, no controller and/or method found'. I have reduced the function to one with only 1 ...
4
votes
2answers
450 views

Is it possible to use Remote Object jsNamespace with an apex:includeScript?

Currently playing with An Example of Using Remote Method Overrides in Remote Objects My VisualForce Page includes the following <apex:remoteObjects jsNamespace="$RemoteContactModel"> ...
3
votes
1answer
130 views

Call @future from @RemoteAction?

Can you call a @future method from a @RemoteAction method? I've got an installed package that runs a VFRemoting and they allow me to write a plugin for part of the process. The issue is, I'd like to ...
1
vote
1answer
159 views

No serializer found for class common.api.soap.wsdl.Address error in javscript remoting

I have a javascript remoting call returning all fields for a set of contact IDs. When one of the contacts has a populated mailing address I get the following error: No serializer found for class ...
2
votes
1answer
50 views

Can I move this JavaScript function which VisualForce used out of the global namespace?

Currently looking at Refreshing Chart Data Using JavaScript Remoting Reading about JavaScript best practices, I came across the idea of keeping functions out of the global namespace, so I tried to ...
1
vote
1answer
96 views

Why is my SOQl Query with OR filtering this much slow?

I'm trying to get some records from a CustomObject. This is my object relationships: Object A [ObjectA__c] -- Child Object B (master-detail link) [ObjectB__c] My query is like this: ...
0
votes
2answers
184 views

How can I define my Remote Action Apex Controller class for JavaScript in a VisualForce Page?

Currently looking at Providing Chart Data Using a JavaScript Function The chart is not rendering for me; not at all, though I have confirmed that the JavaScript getRemoteData() method is attempted. ...
0
votes
1answer
673 views

Displaying Account Details in Table form using AngularJs

Can anyone tell me how to display Table form for the account name and account id in visualforce page using AngularJs? I have created the Visualforce for this use case. But I didnt get Account details ...