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-objects]

Visualforce Remote Objects are proxy objects that enable basic DML operations on sObjects directly from JavaScript. Remote Objects remove some of the complexity from JavaScript remoting by reducing the need for @RemoteAction methods in an Apex controller or extension.

0
votes
0answers
4 views

Remote Objects date criteria - wonky time zone behaviour

I'm looking at the example here and experiencing an issue (code is quoted directly from documentation). https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/...
0
votes
1answer
23 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 ...
2
votes
2answers
727 views

Jquery AutoComplete in Visualforce Page

Autocomplete feature is working great but when there are two Contact blocks and when I try to search for contact then it updates both Contact blocks.How do I make sure it updates only the block that I ...
3
votes
1answer
57 views

Is it possible to define “fields” attribute of <apex:remoteObjects> without hardcoding its values?

Is it possible to include these fields Id,Name,Description__c in a Remote Objects definition within a Visualforce Page without hardcoding them? I would like to pass them from elsewhere and am ...
1
vote
1answer
155 views

Using Remote Objects in JavaScript to query parent Object field

I am using remoting on VF page. Here is the code snippet. <apex:remoteObjects > <apex:remoteObjectModel jsShortHand="sfNode" name="SBQQ__QuoteLine__c" fields="Id,Name,SBQQ__Quote__c,...
2
votes
0answers
350 views

How to dynamically query in Remote Object Model?

See my code comments in my controller for what I'm trying to do. This article might help as well: Overriding Default Remote Objects Operations Page <apex:page> <apex:remoteObjects &...
0
votes
1answer
98 views

Client side Typescript library for communicating with salesforce

Just wondering if anyone has added typings for any of the client side javascript libraries out there? If not, is forcetk still the latest and greatest solution (will be using primarily for VF pages)? ...
0
votes
1answer
42 views

Remote Object not inserting

Try to test remote objects in visualforce from a prechat form. Get a status :POST 200 but the record does not actually get inserted. <!-- Remote Objects definition to set accessible sObjects and ...
1
vote
0answers
73 views

Is there a Salesforce method to validate Remote Objects Query Criteria and turn it into dynamic SOQL?

Let's say I'm overriding the default retrieve operation for a Visualforce Remote Object so I can use custom SOQL to execute a query and add related (nested) data. In order to create a query, it'd be ...
0
votes
1answer
79 views

Remote Objects do not work when rendered as PDF?

I want to use Visualforce remote object to retrieve data and display it as PDF. I use this code. <apex:remoteObjects jsNamespace="RemoteObjectModel"> <apex:remoteObjectModel name="...
1
vote
1answer
271 views

Updating Custom Setting Using RemoteObject in Visualforce pages

I am trying to update the Custom Setting using remote Object in visualforce page, the scenario is when every time on load of the page I want to update the sessionId in custom setting, but using remote ...
2
votes
0answers
107 views

Query retrieval error in remote objects

I have a remote object on a custom object 'Cars__c'. <apex:page > <apex:remoteObjects > <apex:remoteObjectModel name="Car__c" jsShorthand="Cars" fields="Name, Id"> ...
0
votes
0answers
59 views

How Salesforce validates the Remote Object criteria/query

I already searched a lot about how salesforce validades the remote object query. Example: This is invalid: where: { or: { and: { Total_Cost_del__c: { eq: 1400 ...
2
votes
1answer
145 views

remote object AND condition

I've tried using an AND condition in my remote object. I keep getting an error. Here is what I have based on a help article. It works when there is only a single condition. Once I add two it doesn't ...
10
votes
2answers
799 views

What is the major benefit of using Remote Objects

I have gone through some examples of using Remote Objects: https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_remote_objects.htm I haven't used it in my daily projects. My ...
2
votes
1answer
213 views

Remote object: invalid field specified. Ensure that you use the full API name for any custom fields

I am getting this weird error, when using remote object and I am not sure what is going on: this field exist in my salesforce object I am successfully retrieving several fields, but when I add this ...
0
votes
1answer
72 views

Catch all invokeAction requests in JavaScript

I use Angular.js and this github.com example to invoke remote action Visualforce.remoting.Manager.invokeAction.apply( Visualforce.remoting.Manager, args); I need to 'hook' all this SF ...
0
votes
0answers
83 views

Is there a Backbone.js library that works with VisualForce Remote Objects instead of REST?

I've seen Backbone.Force and force.entity.js and both use ForceTK. However, it looks like ForceTK just uses the REST API. Is there a similar library that transparently integrates Backbone.js with ...
0
votes
2answers
48 views

How to href within JQuery field for RemoteObjects

Morning Everyone, I was wanting some help in hyperlinking the Name field in the following code. I've tried a few methods within the brackets to no avail and keep breaking the entire page. I'm ...
1
vote
3answers
138 views

Remote Objects are returning improperly formatted text

In the console.. This is the code I use to convert the sent remote object data to be properly formatted. var AccountEntity = function() { } AccountEntity.fromRemoteObjectModel = function(model) { ...
0
votes
1answer
164 views

How to define lookup field in Remote Object for Opportunity Product - Product2?

I am using Remote Object for Opportunity Product.I want to read Product2.Name but not able to define Product2 field in remoteobject type while it is standard field.My objective is to read Product2....
1
vote
1answer
382 views

Error in retrieving remote objects

You can copy and paste my code easily into your dev console to debug this. I'm trying to get a list of users from a remote object query. After typing a value in the input box, click outside the box ...
0
votes
0answers
236 views

id Lead must be 15 characters

I'm updating a lead record using remote objects in visualforce page, and to update the record i'm overriding the default update action with my custom controller method. when i do that browser alerts/...
0
votes
1answer
80 views

Unknown Property Error when using remoteObjectModel

I am trying to create a VisualForce page which uses remoteObjects in order to add a global quick action to Service Cloud. I want to create a tab in service cloud which has a button called create ...
0
votes
1answer
144 views

Is it secure to use apex:remoteObjects to update objects via JS?

I have some concerns about security when using remoteObjects <apex:remoteObject> <apex:remoteObjectModel name="Lead" fields="Id,FirstName"/> </apex:remoteObjects> lead.retrieve(...
1
vote
2answers
423 views

Creating records using Remote objects

Can we create multiple records at a time using remote object create() call? If yes what is the syntax? I tried passing a list of objects to create call but it didn't work.
0
votes
1answer
35 views

Call abort() on a Remote Object call

Currently I am calling the .retrieve() method on a keypress for a typeahead functionality. I have faked the code so that when user pauses typing I then fire the call using setTimeout, but the issue ...
2
votes
1answer
959 views

How to pass nested collection within JavaScript remoting

I'm trying to pass collection to overrided SObjectModel update function. If I pass primitives, I can get them in APEX. But if I pass nested collection, I got Unhandled Exception: FATAL_ERROR ...
0
votes
1answer
62 views

Receiving error using del() operation with Visualforce Remote Objects

Error occurred while performing DELETE operation on sobject: TopicAssignment with data: [record_id] (MALFORMED_QUERY: Implementation restriction: TopicAssignment only allows security evaluation for ...
2
votes
1answer
135 views

Get case statuses using remote object model

I have some case statuses which belong to a certain process (process A) and others which belong to a different process, (process B). All of which are case processes. How can I use remote object to ...
1
vote
1answer
225 views

Remote Object Query Filter Criteria for Cross-Object Formula

So I am working to create a VF page that pulls a list of records from a custom object (Individual_Account__c) and I am also trying to filter this list of records based on a cross-object formula field (...
0
votes
1answer
91 views

calling PriceBookEntry from Javascript

After reading tons of links, posts and many documents, I decided to ask for help here, hopping some guru can help me with this issue: <!-- Visualforce Remote object component for Products --> &...
3
votes
2answers
637 views

Remote Objects: Insert an array of objects

Is it possible to insert an array of objects using Remote Object Model? Here's my code: <apex:remoteObjects jsNamespace="romodel"> <apex:remoteObjectModel name="Stock__c" jsShorthand="...
1
vote
1answer
1k views

Can anyone tell me how to display Table form using angularJS ng-Table and visualforce remote objects in visualforce page using AngularJs?

I have created the Visualforce for this use case. . I get work order details in table form, but paging and filtering in not working. My code as follows <div ng-controller="searchWOController">...
3
votes
2answers
994 views

Retrieve Picklist values when using Visualforce Remote Objects

Is there a way to get all Pick list values for a custom field / object using Remote Objects? I have looked at the docs, tried querying the fields but not sure how I can do this. Any guidance or ...
3
votes
1answer
268 views

How to get CreatedBy SmallPhotoURL in remoteObjects?

I have a custom object (Incident__c) and I want to retrieve the object's creator's SmallPhotoURL using remoteObjects. I know that I need to make a formula for it, however I can't figure out what is ...
1
vote
1answer
306 views

How to get objects in RemoteObjectModel

I have a VisualForce page and I am using the apex:remoteObjects component. I am retrieving a custom object called Incident__c. My code is: <apex:remoteObjects jsNamespace="RemoteObjectModel"&...
1
vote
1answer
132 views

Remote Object Query not respecting multiple criteria on single field

I'm trying to utilize Remote Objects in order to query a Custom Object. Part of my criteria involves getting all records during a particular date range off of a single field. { where: { ...
1
vote
0answers
29 views

Remote Objects duplicated on creation

I'm having issues with the creation of new records using remote objects: when I use the remote object create function instead of having only one record created I'm having two records, so the record is ...
2
votes
1answer
1k views

Inserting Date Field with JS Remote Objects

Using JS Remote Objects, I'm trying to INSERT a record that has a date field as a required field (an Opportunity). I am getting this value from a user input, which I'm using JQuery.validate to ...
2
votes
1answer
86 views

remoteObjectModel with Angular: Transform get() to dot notation

I have defined an <apex:remoteObjectModel> in my .page file and can access custom objects through new SObjectModel.ObjectName().retrieve(). However, the fields in these objects are accessed as ...
2
votes
1answer
327 views

Remote Objects and Master-Detail - Can't create child records

I have a Master Object A... ...And a Child Object B with a Master-Detail field A__c pointing to A... ...I'm trying to create a B record, child of a pre-existent record A using Remote Objects... ......
7
votes
1answer
567 views

Dynamically get required fields with JS Remote Objects

I'm designing a VF SPA that uses remote objects. Much of the page is dynamic, and I use user input to define which sObjects I look up. I wanted to know how, given a user input for a sObj, I can return ...
3
votes
2answers
573 views

Pulling records by parent ID with visualforce SLDS remote objects

I'm trying to pull fields in my custom object by matching it with the parent Id in Visualforce with the new Lightning design. I've done it with Apex but am a little confused with remote objects. I ...
4
votes
1answer
212 views

Visualforce Remote Objects Related List Query

Does anyone know how to or if it is possible to pull data from the related list of an object using Remote Objects? I can query the object's related list without error however it is undefined and I ...
4
votes
1answer
614 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
1answer
185 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 ...
1
vote
0answers
374 views

SlickGrid integration tutorials or alternatives?

After scouring the web for hours I have been unable to find a tutorial that covers how to integrate SlickGrid into Salesforce. So far, I have found a few questions on StackExchange, the developer ...
1
vote
1answer
239 views

Overriding Retrieve Method in Remote Objects

When using remote objects, is it possible to override the default retrieve method so that nothing is returned unless a where query is present?
2
votes
1answer
821 views

Is it possible to add rich textbox with image via rest?

I'm wondering whether it would be possible to add text with image to rich text area field by rest. How should be done and how would i have to make such a request?