The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
40 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
1answer
53 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 ...
0
votes
0answers
61 views

Access is denied. VFRemote.js error displaying in IE. Remoting does not work. Any thoughts please

I am trying to build an html in the remote function and want to write the html table to the DOM. But when the javascript executed i got the error given below. What could be the issue? Please suggest. ...
0
votes
0answers
58 views

remote action inside repeat panel causing an error

I am using remote action for displaying records on the visual force page.My remote action method is inside repeat tag when i rerender my repeat my remote action is not functioning. I am getting the ...
8
votes
1answer
570 views

Visualforce remote objects

I was reading through this documentation. http://docs.releasenotes.salesforce.com/en-us/spring14/release-notes/rn_vf_remote_objects.htm As per the doc: Visualforce Remote Objects are proxy ...
1
vote
0answers
96 views

VF RemoteAction not working after adding publisher action

I have a VF page where remote action javascript and record chatter enabled. In chatter we have added publisher action using VF page. When I keep both VF Remote and publisher actions together in ...
2
votes
1answer
282 views

Onblur issue on text box autocomplete..?

I have a VF page..I have a button open pop up..on click of that button i am opening a pop up using output panel and css...using the code something like this.. LINK ...
2
votes
2answers
367 views

Saving JQuery Toggle State on Home Page Component

I have an HTML Area component on the homepage that contains an iFrame that is toggled either visible or hidden on button click. I'm using the JQuery toggle function to do this. Currently the div for ...
3
votes
1answer
57 views

How do you cleanly apply native / VisualForce styles to elements created from JavaScript?

Are there any JavaScript UI APIs / libraries to help you build native looking UI for elements created using JavaScript? For example, say I get a list of Contacts via JavaScript remoting. I want to ...
2
votes
1answer
74 views

Are CRUD & FLS enforced with usage of Remote Objects?

I am wondering if CRUD & FLS are enforced when we are working with Remote Objects?
4
votes
2answers
277 views

Visualforce Remoting Exception: Error parsing json response: 'Unexpected token <'. Logged in?

I am trying to use VF remoting in a public site and get the error 'Visualforce Remoting Exception: Error parsing json response: 'Unexpected token <'. Logged in?' when viewing page from a public ...
3
votes
1answer
95 views

Salesforce logout hook

Is there any way I can know when a Salesforce user logs out of the website? I'm providing a service that will probably reside in an iFrame displayed on SF pages and need to know when to do some ...
1
vote
1answer
349 views

invokeAction call throws a Visualforce Error just by being there

I've come across a situation where the mere presence of an invokeAction call inside my JavaScript code causes VF to display a 'no remoted actions found to resolve' page. In short, I have a button ...
3
votes
1answer
196 views

Remote Action on VF page published on SITE does not work

I created a VF page published on Site (http://trapptosemplify-developer-edition.eu2.force.com/TR/Login) On the page there is a button "Accedi" which trigger a script using RemoteAction for the LOGIN ...
0
votes
2answers
1k views

Passing APEX objects to RemoteAction

I'm attempting to pass a JS array of JS Objects that are defined to match an sObject array (list) in my @RemoteAction method like so, JS var rateOverrides = []; ...
8
votes
2answers
901 views

Why use JSON.serialize in @RemoteAction return statement

I can't figure out why in an @RemoteAction method you would want to JSON.serialize the object being returned? I see this in a lot of code and I'm trying to understand the reasoning. I thought ...
3
votes
1answer
2k views

Wait for .each & contained async calls to complete before redirect

Using JS REST toolkit, I'm trying to insert one customer record and multiple related contact records, and then redirect to the detail page of the customer record via JS. The problem is JS redirects ...
21
votes
2answers
642 views

Javascript Remoting breaks on complex relationship data

We use Javascript Remoting to retrieve some complex data from the controller. The SOQL query looks like the following: SELECT Id, ( SELECT Id, Sales_Rep__r.Name, Customer__r.Name, ...
2
votes
2answers
367 views

Update date field with null value using JS remoting?

With the Rest Toolkit, creating or updating an optional date field with an empty string results in an Invalid date error. Using null instead results in another error: Argument 1 cannot be null. How ...
8
votes
2answers
522 views

Javascript Remoting CSRF

A third party security review is suggesting I need to add CSRF prevention to my javascript remoting calls. I'm not sure what is the best way to proceed. Switching to an apex:form to utilize built in ...
4
votes
1answer
360 views

Sharing / without sharing and @RemoteAction

I have a global class (without sharing). One of its method is a @RemoteAction, which instantiate another class (public and without sharing) and uses one method of the instantiated class. This method ...
5
votes
2answers
1k views

Do RemoteAction methods have access to page parameters?

I'm getting a null exception for attempting to grab a record id from the url query params: ApexPages.Currentpage().getParameters('id'). Can RemoteAction methods access these parameters?
3
votes
1answer
1k views

Can't update record with Javascript remoting

I'm using JS function to get a contact record and another function to update the record after hitting save. getRemoteContact() works beautifully, but saveRemoteContact() only works at random. I've ...
3
votes
1answer
691 views

Deploy VF with RemoteAction

I have a visualforce page which calls methods tagged with @RemoteAction. The methods are in an extension class which is public, like methods. The class is the extension used in the page. In sandbox ...
7
votes
5answers
365 views

Trying to LIMIT a SOQL Statement based upon projected Heap size

THE GOAL: Return as many rows as possible from a Remote method without hitting Heap limits. We have a Visualforce page calling into a @RemoteAction method in Apex to return sObjects to the page. The ...
2
votes
2answers
1k views

Javascript Remoting with Set Collection

I have a remote action method that accepts Set collection as a parameter. How do I pass a set collection from Javascript? I tried passing an array and it gave me an error message. -------- Class ...
1
vote
1answer
87 views

Replacing DOJO requests with JS Remoting

I'm converting a DOJO page that builds a Dijit Tree with live data from a 3rd party to use JS Remoting as the data source instead of directly calling the API (for security reasons). I've been able to ...
10
votes
1answer
519 views

Is there a security risk with JavaScript Remoting, escape = false

Initially I thought the answer to this question was yes, so malicious JavaScript cannot be injected into the page if it is in the response. Yet upon a further look at this question it is a lot harder ...
2
votes
1answer
127 views

JS remoting question

I am a newbie to SF. We have a spring MVC application. The controller returns the result as JSON object. My task is to call that controller method using JS remoting and display the results in ...
11
votes
3answers
2k views

Visualforce Remoting - Passing wrapper class object as a parameter

Currently I have a controller similar to the following (used example, it's easier to understand): global class myClass { global class wrapperClass { public String name {get; set;} ...
12
votes
2answers
2k views

What is the best way to display date values formatted with users locale with JavaScript Remoting?

If you query a Date or a DateTime field with JavaScript Remoting the value returned will be the number of milliseconds since 1970 such as, 1359147598000. Good for data consistency...bad for user ...
8
votes
5answers
1k views

Javascript remoting and apex date design pattern

I'd like a clever way to handle this in all my code from now on. I have some existing methods that do date calculations in apex...some use the businessHours object and some don't. Many surface ...
3
votes
1answer
404 views

Visualforce Remoting and Relationships

Question Is it possible to leverage relationships with Visualforce remoting, including one object as a property of another? Background I've been playing around but always seem to get a VF remoting ...
3
votes
2answers
2k views

Decoding HTML String built in the controller

Using JS Remoting I want to generate HTML content in the backend and then display it in the VF page. I am building the string in the controller as per follows: String account = [SELECT Id, Name FROM ...
5
votes
1answer
537 views

Remote Actions and Session Timeout Question

We have a visualforce page that serves as a somewhat live dashboard for information in our salesforce instance. Through javascript and Javascript remoting (remote actions), we are polling salesforce ...
2
votes
2answers
914 views

Javascript Remoting (Return cached result without re-query)

I started writing some code using apex functions and then I thought let's try it out with Javascript remoting. Remoting method was called from my VF page and all worked fine, until I tried to use ...
1
vote
2answers
758 views

js remoting 'unable to connect to server' error

I am getting 'unable to connect to server' error when using javascript remoting. vf page : function my_custom_object__c(){ this.name = 'test'; } function save(){ var myCustomObject = new ...
2
votes
2answers
476 views

javascript object creation for js remoting

Hi I am trying to use a RemoteAction function from js remoting.The remote function accepts a custom object,so I need to pass it from javascript.For this I m creating a javascript object with all ...
5
votes
2answers
859 views

Why is Task ActivityDate (Due Date) different when queried using SOQL?

When I query a Task's ActivityDate in Apex accessed using JavaScript Remoting, I receive a date that is different from the date displayed in the Salesforce interface. The query below (with a generic ...
1
vote
3answers
398 views

How can I use 'query more' using javascript remoting?

I have an object with 50000 records in it, which I need to retrieve in chunks of 100 records per call/chunk. I tried using OFFSET, but this way you can not call more than 2000 records. Is there an ...
3
votes
1answer
63 views

What possible failures do I need to handle when invoking a RemoteAction?

The canonical example of invoking a remote action shows three cases being handled: success, exception, and general failure: // just showing the handler passed to the remote action invocation, for ...
4
votes
2answers
464 views

Building HTML with JavaScript remoting

I wrote a little @RemoteAction method that returns a string. And the string is nothing but an HTML snippet that I want inserted on my page. Callback method on the page receives the result and uses ...
4
votes
3answers
1k views

calling an actionfunction reloads the page despite giving rerender attribute and says insufficient privileges in sites?

Calling an actionfunction reloads the page despite: return false from the place where we call setting rerender="emptydiv" It says insufficient privileges in Sites (authenticated using partner ...
3
votes
2answers
1k views

Call a @RemoteAction from a custom button

I would like to call an @RemoteAction method from a custom button. I am aware that it is already possible to call a WebService method. The view page of my object is already a visualforce page ...