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

learn more… | top users | synonyms (2)

0
votes
0answers
16 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
26 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 ...
1
vote
1answer
56 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 ...
4
votes
1answer
21 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
58 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
48 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
38 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
31 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
51 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
55 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
164 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 ...
1
vote
1answer
58 views

Get List Values in JavaScript Remoting

Hi folks, Can anyone tell me how to get the list of account names in visualforce page using java script remoting? Below is my code Visualforce.remoting.Manager.invokeAction( ...
0
votes
1answer
50 views

Date Format to String Format in JavaScript Remoting

Can anyone tell me how to convert the date format to string format in JavaScript Remoting? Below is my code @RemoteAction global static theHRMS__Employee__c getEmployee() { Contact ...
0
votes
0answers
40 views

Get the ID value of query string in Remote Action Method

Can anyone tell me how to get the value of query string in Remote Method? My code as follows @RemoteAction global static Contact getContact() { String ...
4
votes
3answers
73 views

Javascript Remoting Update causing INVALID_TYPE_ON_FIELD_IN_RECORD for Integers

I'm passing a Javascript object through JS Remoting to update an Account record. However, if I update the NumberOfEmployees field, I'm getting the following INVALID_TYPE_ON_FIELD_IN_RECORD Employees: ...
3
votes
2answers
47 views

Heap size limit in Javascript Remoting method

I'm fairly sure that Remoting is Asynchronous. The docs state that the Apex heap size limit is 6Mb for a Synchronous op, and 12Mb for an Asynchronous op. However, from my RemoteAction (@Readonly) ...
1
vote
1answer
52 views

Javascript to delete rows from a queue

I have javascript on my visualforce page that adds a delete button beside each new case added to the queue but cannot get this button to actually delete these items. This is the code I have so far. ...
6
votes
1answer
70 views

Javascript remoting: to invokeAction or not to invokeAction

Digging in deeper to Javascript Remoting and I'm a bit confused. The Salesforce Documentation starts off by showing how to set up everything and uses code like the following: function ...
8
votes
1answer
91 views

Group by Rollup: Visualforce Remoting Exception: Too many query rows: 1000001

I have 557,029 Foo objects in my org. I want to count how many of each kind of picklist value there are within these: Type 1 - 100,000 Type 2 - 60,000 Type 3 - 40,000 Type N - N I thought I could ...
1
vote
0answers
18 views

VF Remoting and WF Rules

Why would I not see WF Rule execution in a VF Remoting log? There is an external app we installed that has a page that uses VF Remoting. I'm trying to figure out order-of-execution for their ...
1
vote
1answer
51 views

js remoting result returning selectOption

i wanted to know how to separate the selectOption value and lable in the result returned by js remoting function. i have a js remote function in apex page: <script> function sayhello() ...
0
votes
1answer
34 views

Error when creating page with customObject as a standardController with Tooling

I want to create a visualforce page by using Tooling api and I am doing this like below : @RemoteAction public static String createInlinePage(String objectName) { objectName = ...
0
votes
0answers
84 views

X-editable POST URL parameter and Visualforce

I would like to build a page using the framework X-editable My question is this: It takes a parameter of URL on the field which is documented as: url to server-side script to process ...
3
votes
2answers
53 views

Child Relationships in Javascript Remoting

I'm using Visualforce Remoting to get information about a Contact. I want to get a specific Attachment related to the Contact at the same time (which is linked through ParentId). When I return the ...
6
votes
1answer
98 views

Does Javascript Remoting Count Towards API Limits?

As the title says, do Javascript remoting calls count towards API limits? I know that calls to an Apex REST API count towards them, but I don't know if this is the same for remoting calls.
0
votes
1answer
27 views

Manipulating Account information using Visualforce Remoting

Can anyone tell me how to display account details using visualforce Javascript Remoting? I wanna edit ,save and validate the account using viusalforce remoting(Manipulate account details using ...
5
votes
1answer
163 views

JavaScript Remoting and optimal Angular.js architecture

Background I am starting to build more and more apps with angular, inside of a Visualforce container. Since many of the database services rely on some apex logic, the services layer uses JavaScript ...
0
votes
1answer
55 views

Open VF page for custom URL , Except PageReference

I am facing some duplicate parameter issue to open my URL using Pagereference, its automatically removing the rest of the parameters by keeping just one of it. variable MYURL : ...
0
votes
1answer
21 views

want to add value in list from javascript

my controller have on list of id // list in controller List<Id> ids {get;set;} when i call javascript fuction i have to add id which i have passed to that function //fuction in vfp ...
3
votes
3answers
46 views

Javascript Remoting through HTML in salesforce

I want to call method in an apex class in header part of customer portal which is a HTML page (not a VF page). Is it possible to access apex class method in such a way, If yes, then how to start on ...
1
vote
1answer
93 views

Querying more than 15000 records into a VF page using RemoteAction

I have a page that uses AngularJS for front-end rendering and filtering. To make use of the dynamic filtering capability of AngularJS filters, I am loading all the records onto the HTML page, so the ...
1
vote
0answers
90 views

Problem retrieving KnowledgeArticleVersion records using Remote Objects

I have been experimenting with Javascript remote objects, trying to retrieve a list of knowledge articles by creating a remote object on the KnowledgeArticleVersion object. My visualforce component ...
0
votes
1answer
37 views

Web Workers in Sales Force

I have a details button that when clicked sends the record (opportunity) for an Apex controller that sends this record to a web service (SOAP). The problem is that my browser comes to halt in sending ...
2
votes
2answers
149 views

JS/jQuery for Date manipulation on VF page

Have a very simple VF page that allows the end user to either set an expiration date, or choose the number of days until the expiration. What I wanted to do was update the other field when one was ...
0
votes
1answer
70 views

Trouble with Javascript Remoting

I'm trying to open an order as a Subtab in Service Console from a sidebar component based on the order number entered in a text box by the user. I am not receiving any error yet this doesn't work. ...
1
vote
1answer
226 views

Display error or warning message without ApexPages using Global Component

I have a simple form , which has a output panel and pageMessage inside it . <apex:form> <apex:outputPanel id="errorPanel"> <apex:message id="msg" /> ...
1
vote
1answer
73 views

Unable parse JSON String using Javascript

I am facing issue parsing JSON String on the front-end. The parameter result represents a String function handleresult (result,event){ var newResult = JSON.stringify(result); var temp = ...
4
votes
1answer
92 views

Return custom event.message using Javascript remoting?

Short version: Can I return my own messages in the javascript remote event.message object? Long version: I use a javascript remote call to perform an ajax search. This is the code (pretty much ...
3
votes
1answer
158 views

remote action function encountering CPU time out limit exception

CPU time out limit was being hit while processing child records on the inline opportunity visualforce page, to handle this i wrote a remoteActionFunction on the page that invokes controller method ...
0
votes
2answers
271 views

How to call action function method in the test class

How do I call a method in my test class which is basically been called from the action function on the vf page? VF page: <button type="button" onclick="myJSMethod();">my button</button> ...
1
vote
1answer
127 views

Debug logging on Salesforce1 mobile app

Salesforce1 app has the option to send the app event log - however all this does is send a log reference key and not the log file itself. Is it possible for developers to access this log or is it ...
3
votes
2answers
186 views

Need help understanding why my Javascript remoting doesn't work on a standard Page Layout

This is driving me nuts. I have the most simple JSRemoting setup and for whatever reason I can not get this VF page to render on my Contact Layout. It's giving me a cross domain error and the only ...
2
votes
2answers
458 views

Call a method in controller from Component (not in Constructor)-Visualforce

<apex:component> <apex:attribute name="l" description="l" type="double" assignTo="{!Received_L}"/> <apex:attribute name="varLng" description="t" type="double" ...
2
votes
0answers
368 views

Why am I receiving this error “Cannot read property 'tid' of undefined” when using JS Remoting?

I've called a JS Remoting function on document.ready(). It works fine intermittently. But throws this error in Console when sometimes I come back to a page after a day and it was loaded a fresh: ...
4
votes
1answer
111 views

do javascript remoting calls need a try/catch?

Currently in my javascript remoting calls I check for if (event.status===true) in the callback. I handle any errors in an else. However, it seems it also throws an exception. Example: [Error] ...
3
votes
1answer
80 views

Can Hierarchical Custom Settings be used in Javascript Remoting calls?

Can we use JS Remoting to Fetch and update Hierarchical Custom Settings? Also, if yes, then can we make it work as well if Custom Setting object is in Protected Mode?
5
votes
1answer
162 views

ORs and ANDs in the retrieve function of Visualforce Remote Objects

Related: OR/AND condition for complex criteria with remote objects Background The retrieve query format allows the use of or and and clauses to create complex queries. The relevant documentation is ...
1
vote
1answer
159 views

Inserting records in custom object on clicking SAVE in Bootstrap

I am using a Bootstrap modal to create a popup where the user can enter details. The popup has two buttons SAVE and CANCEL. The popup is a custom VF page wherein I have included the Bootstrap ...
2
votes
3answers
157 views

How to call the apex form the Javascript Popup

I have used following the code in my Onclickjavascript(custom button). I have used two buttons in his pop and I would like to call the apex method from here.So, kindly let me know how to achieve ...
3
votes
2answers
104 views

Salesforce CPU Limit calculation - when server busy

I like to check if somebody have clear idea of how CPU Governor limit is calculated during times when salesforce server is busy, its kind of black box, I'm execute 4-5 visualforce remoting call from ...