Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [remote-action]

Remote action are used to add JavaScript remoting in Visualforce to call methods in Apex controllers from JavaScript.

0
votes
0answers
47 views

Apex heap size too large: 6125236

I have a visualforce page which is throwing me the error "Apex heap size too large: 6125236" I have referred to couple of similar issues here on stackexchange but this seems to be a different issue. ...
0
votes
1answer
25 views

Redirecting from javascript to custom url in callback function with Visualforce.remoting.Manager.invokeAction

I have a custom visual force page. I use Visualforce.remoting.Manager.invokeAction to post data and create a custom object on a custom Apex Controller extension. This action creates my custom ...
0
votes
2answers
27 views

Community Guest User able to create records without create permission

We ran into a scenario where a community (Salesforce Tabs + Visualforce) user opens multiple tabs and is logged out on one tab. When the user goes to another open tab and performs an action on a ...
0
votes
1answer
53 views

VF page inside a lightning component - Issue with Visualforce Remoting: Javascript proxies were not generated for controller

I have embed existing legacy VF page inside a lightning component. In this page I am calling a remote method onload event for window. Here we are getting following error: "Visualforce Remoting: ...
4
votes
2answers
365 views

How can I stop JavaScript remoting reloading page

I'm trying to see what is my RemoteAction result however the page reloads before it happens. How can I stop this? VF Page: <button class="btn-enter-panel" onclick="getRemoteName()">enter <...
1
vote
1answer
134 views

Variable does not exist in method

I am trying to pick up the value of a visual text input and validate if it exists in the database, the problem is that it throws me the following error "Variable does not exist: searchDir" I leave my ...
1
vote
1answer
23 views

Call Excel VF Page from a static method in controller

I have a MS Excel VF Page that perfectly downloads data. Now in main VF Page I am having a remote action static method called using vf remoting from button on main page. From that method I need to ...
0
votes
1answer
19 views

Javascript remote object skipping a decimal when this is 0

I am using remote object to bring some values into a VF page, basically the user as it types it calculates and update the opportunity, so the remote is "constantly" updating the page. Then I have a ...
0
votes
2answers
23 views

External user access user lookup fields

We have a remote action used to retrieve data and present it to external users. Among other things, we want User fields that are a lookup on a custom object. (User__c is a lookup field to User) ...
0
votes
2answers
214 views

RemoteAction Methods - Not able to see the debug logs

We have below method in the apex which has remote action. When I put debug statement inside the method like below which is not getting logged in debug logs. Am I missing something I need to do to have ...
0
votes
0answers
76 views

How to process data synchronously or wait until callback in visualforce remote action?

I'm trying to get data from remote action from a mouseover and display the popup. I have tried below code to pass the data in bootstrap tooltip/popovers. <script> function showPopup(recId,...
1
vote
1answer
224 views

Upload large ContentVersion records

I'm using a @RemoteAction to upload files to Salesforce, saving them as ContentVersion (Chatter files). I'm uploading the base64 Blob of the file. This works great for small (<1MB) files. I am NOT ...
0
votes
2answers
205 views

Can I declare more than one RemoteAction function in my class?

I have a class where I have declared @RemoteAction functions to work using Javascript Remoting. When I only had one function everything was working fine, but when I created a second @RemoteAction ...
4
votes
0answers
252 views

Visualforce Remoting: Javascript proxies were not generated for controller QuoteLayout: may not use public remoted methods inside an iframe

I've looked at all of these solutions here on SFDC stack exchange (1) (2) (3). I followed them for what applied to what I'm doing and I'm still getting this error. I made my apex class global ...
1
vote
1answer
98 views

Is there a way to force apex code return status code 400 on remote action without throwing an exception?

I have a remote action that throws a custom exception on apex side when an error occurs, and on javascript application, response occurs with status code 400. A new requirement forces me to save a ...
-1
votes
1answer
153 views

How can i use remote function in vf page on click a button? [closed]

How can i use remote function in vf page on click a button ?
-2
votes
1answer
153 views

Test Class for the RemoteAction with HttpsRequest

Controller: global class GetcontentCalloutClass { public GetcontentCalloutClass(ApexPages.StandardController controller) {} public static Map<String, String> respStrings; global static ...
1
vote
0answers
220 views

Pass list of selected SObject records to Remoteaction method

I have below code where I am trying to pass a List of Accounts to Remoteaction method from a VF Page. I am able to pass one as below, but can't figure out for a list of Accounts. Can someone please ...
1
vote
1answer
36 views

Illegal Assignment Error on custom object and query

I am getting an illegal assignment error on my getTotal() method, but I don't understand why it is not an issue with the getVolume() method. Any guesses as to the cause, or how to modify the method? ...
1
vote
1answer
267 views

JSON Deserialization in RemoteAction causing Salesforce system error

I have the following class being called from a @remoteAction. Specifically, the toFormObject() method is being called, and when it gets to the JSON.serialize, it is exploding FATAL_ERROR System....
1
vote
0answers
65 views

Testing @RemoteAction method with mock data inserted in factory

I'm struggling a little bit with accessing data which has been inserted through factory method in my RemoteAction method. Here is a code of RemoteAction method : @RemoteAction global static ...
0
votes
1answer
94 views

Error in calling remoteaction method from apex:image?

Need to count the no. of clicks on the image(in the public page) using the Remote action method. Need some help in achieving this ? VF Code: <apex:actionregion > <apex:image id="...
1
vote
0answers
57 views

RemoteAction not invoking

I have the following visualforce page coded. However there is a weird scenario in which one my of remote action in the getRemoteAccount(). Sometimes this function is being called. </script> ...
0
votes
1answer
275 views

@RemoteAction not calling Continuation Pattern response method

We have a VF page where using @RemoteAction calling the controller method. First time using Continuation pattern so not that much familiar. Here trying to call Continuation Request method from my ...
1
vote
1answer
155 views

Community user cannot create SBQQ__Quote__c object in a @RemoteAction

I'm trying to create CPQ Quote(Steelbrick) from Community user through @RemoteAction method. It fails with error Insert failed. First exception on row 0; first error: ...
0
votes
2answers
58 views

Need to increment the count through apex method based of button click from java script but Nullpoint exception

Looking to track the thumbsup button clicks by increment in the object but stuck up with the null point exception. need help Code : global with sharing class CountThumbsUpDownComments { public ...
2
votes
1answer
227 views

Salesforce @RemoteAction not redirecting the VF page

We are using angular js & jquery in Custom SelfRegistration VF page for Community , in Controller side @RemoteAction is in use and redirection of page after user creation is working fine from VF ...
1
vote
0answers
198 views

Visualforce Remoting Exception: Unable to determine from which page the request originated

I am using remote calling from my visualforce page, and it is working fine, but for some reason, it is throwing the exception Visualforce Remoting Exception: Unable to determine from which page ...
1
vote
2answers
440 views

RemoteAction: Doesn't work with other methods in class?

Does @RemoteAction have to be in a separate controller than your other methods? Example; using something like below, returns a nullpointerexception in remote action. public with sharing class ...
1
vote
1answer
144 views

Problem with loading getHeaders().get('X-Salesforce-SIP') in Remote action

I have problem with getHeaders in remote action , its return null when i call remote Action through visual page . if i call same showIpAddress() directly from visual page. i am able to get IP address....
5
votes
1answer
99 views

Keep null values in Remote JSON call [closed]

I'm working with an external app that is making callouts to Remote Actions in my controller. When I return the value to them, it's returning a custom data structure with 2 parameters, result, and ...
2
votes
1answer
623 views

Visualforce is not defined while using visual force remoting

I am using angular as a framework for this visualforce app, however when I try to use Visualforce remoting I get an error in the console angular.min.js:123 ReferenceError: Visualforce is not ...
0
votes
1answer
72 views

Remote Action deserialization of sObjects with child collections

I have two remote actions. One returns the result set of an Account query. That Account query has a subquery for Assets, so for all intents and purposes, the query is [Select Id, (Select Id From ...
1
vote
2answers
675 views

apex:actionstatus with remote-action call from javascript

i want to show waiting spinner on my remote-action call on command button with onClick event. i have wrote following code for that but its now working : VisualForce Page: <apex:actionStatus id="...
2
votes
1answer
91 views

reference to undefined property “{!$RemoteAction”

This is my Javascript $scope.getRemoteCase = function() { var caseID = []; var caseID = $scope.caseIdInfo; alert("caseID" + caseID); Visualforce.remoting.Manager.invokeAction( ...
1
vote
1answer
1k views

Get current user full name and id in Javacript page

In my application that uses JS the user can click a button to create a new record, the goal is to give them a column in a table where they can select an active user to assign the record to. So i built ...
-1
votes
1answer
449 views

How to Access Remote Action From Test Class?

How can I access a remote action from a test class? Here is what I have so far: @remoteAction public static Boolean createCaseRA(String newJCase,String prevCase){ system.debug('Remote Prev Case&...
0
votes
2answers
121 views

I am trying to draw a bar chart on a vf page using remoteaction method that returns a json response

Need help figuring why my results list is blank coming from a json response when building a chart on my vf page. Any help is greatly appreciated. Below is my controller: global with sharing class ...
0
votes
1answer
60 views

single quote styles are being removed from inline style of rich html

When I'm trying to save the html (like below) it is removing the font-family which has quotes, if I do without quotes it works fine but we need quotes for that font family (the color style is un-...
0
votes
2answers
376 views

displaying records on vf page using remote action

kindly let me know how to display list tabres on vf page . actually in alert box its displaying all the 5 values. but when i am calling it in div tag having id mytable1 its displaying undefined. i ...
0
votes
1answer
32 views

Help with VF page RemoteAction getting a List into a Set for update on SObject

I have custom VF page styled with JS. The list of Ids is passed from the VF page based on what the user selects. The List is converted to a Set and The Service method should take the incoming Ids ...
2
votes
1answer
422 views

Passing JavaScript Variable To Controller With RemoteAction

I will most likely just re-write my code to work with this way of passing the value to the controller BUT I was curious why the below method doesn't work. Is there a rule about remote action and ...
1
vote
2answers
963 views

javascript remoting

kindly let me know how to display records using @remoteAction on vf page. kindly rectify my vf page code.currently its displaying null values. Thanks. apex class:- public class javascriptremoting { ...
1
vote
1answer
112 views

Get remote action query results without namespace

I'm working in a managed package and I want to use the less references to the namespace (CI proposes ). For now I would like to know if it's possible to get records from my controller in my ...
1
vote
0answers
29 views

Aura Remote Action JSON parse error [duplicate]

An internal server error when trying to pass custom class via SFDC server action public class Estimation { @AuraEnabled public Decimal tic {get; set;} @AuraEnabled public Decimal go ...
1
vote
0answers
65 views

Datatable issue with Input Text in VF Page

I got in to a use case where I have to navigate to a VF page (from a button click on case layout) to enter some custom data of a custom (custom__c) object. Once user enter data it has to populate in ...
1
vote
1answer
424 views

JavaScript Remoting calls not working from Page contentType=“text/javascript”

I am searching for a solution to use a page as javascript and to make the remote action calls to the server. Here is the code of the page that I created <apex:page standardStylesheets="false" ...
0
votes
1answer
32 views

Unexpected JSON response from sandbox

We were developing in a dev org and the json response is fine Any idea to cause this error? Expected format list of sobject [ { "Name": "...
1
vote
1answer
110 views

JSON noobie question - No serializer found for class common.apex.json.ApexJsonGenerator

I'm trying to retrieve a JSON object Via a remoteAction in Visualforce and I'm having some issues. Controller: global without sharing class Article_Controller { @remoteAction global ...
1
vote
1answer
98 views

@remoteAction unexpected token: 'User'

This is the error I get: unexpected token: 'User' (Line: 6, Column: 2) global with sharing class Chat_Enterprise_PreChatController { @remoteAction global static Boolean updateContactDetails {...