Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 20830

Javascript is a weakly typed interpreted programming language primarily implemented by web browsers to allow for client-side scripting. It can be used in Visualforce pages to give a more dynamic experience to end users. Additionally, the Visualforce engine generates and uses JavaScript to support the functionality of some of its components.

1 vote

How to write SOQL query in Javascript?

In visualforce, there are lot of ways for javascript to communicate with force.com and fetch records from the server.Here's article explaining various options around. … -- JavaScript to make Remote Objects calls --> <script> var fetchWarehouses = function(recId){ var ct = new SObjectModel.Contact(); ct.retrieve( { …
Praveen's user avatar
  • 10.1k
2 votes
Accepted

Javascript warning with ui:inputSelect

To invoke a controller action, you need to have expression statement :{!c.methodName} format.So change attribute should be equal to {!c.exhibitChange}instead of c.exhibitChange. Also remove this line …
Praveen's user avatar
  • 10.1k
1 vote
Accepted

Mass transfer not happening while using custom list button

Using {!GETRECORDIDS($ObjectType.Lead)} only the Lead Ids is returned as Array.You need to query Lead object using the collected ids, to get the respective leads fields: Country__c,TypeOfInterest__c. …
Praveen's user avatar
  • 10.1k
4 votes
Accepted

Problem to get the right Id in lightning component

As Rao pointed out, you are clicking on the <p /> tags wrapped within the anchor, and thus causing the event.target.getattribute('data-recId') to return null. <a href="{! '#articleId=' + article.Id } …
Praveen's user avatar
  • 10.1k
1 vote

How can I create global utilities for a Lightning app under LockerService?

I was building a managed component for the Lightning Component Exchange and was using Underscore.js to do most the data manipulation works and it would with Locker Service enabled. When tested with Li …
Praveen's user avatar
  • 10.1k
1 vote
Accepted

Lightning component : Get the id of a record

Just to get the id of the object being iterated, you do not need to implement force:hasRecordId.It is need only if your component should work in a record's context (eg:Inside Record Detail Page). Gen …
Praveen's user avatar
  • 10.1k
2 votes

How to return the Array or List from RemoteAction Method to Javascript?

In addition to @Ratan answer, you need to explicitly set the escape attribute to false which is true by default. FileUploadController.attachBlob(getResult, function(result, event) { //Proceed …
Praveen's user avatar
  • 10.1k
2 votes

How can I check Lightning component input before proceeding to save?

Adding further to @adrian's answer. You need to use the validity attribute of the input tag to check the textbox is valid if not throw an error message and stop proceeding further. <lightning:input n …
Praveen's user avatar
  • 10.1k
12 votes
Accepted

Lightning Components: How to make sure that a script loaded via ltng:require is loaded in af...

As per @TrevorBliss comments , adding afterScriptsLoaded to the ltng:require is sufficient which means there's no need for the renderer. If you really need to do this in the renderer, then you need t …
Praveen's user avatar
  • 10.1k
0 votes
Accepted

Jquery UI load in Lightning Components

Try using jquery v2, i don't think jquery v3 is fully compatible with locker service.
Praveen's user avatar
  • 10.1k
2 votes
Accepted

How to rerender in Lightning Components

Looks like even after clicking next button, you get only first 5 records.It is because, page number value is not properly set ,so always it contains 1. ({ getOpps: function(component, event, page …
Praveen's user avatar
  • 10.1k
4 votes
Accepted

Trouble updating a Javascript array from Apex controller via Javascript Remoting method

So the javascript as soon as executes remote action call, it proceeds to the next part of the code to be executed, without waiting for the server to send an response. …
Praveen's user avatar
  • 10.1k
21 votes
Accepted

How do I call functions loaded from a Static Resource JavaScript file?

you could attach your utility methods to the global window object(SecureWindow) and use it in your controller. Static Resource: TestScript (function(w){ "use strict"; //Optional because LC on Lo …
Praveen's user avatar
  • 10.1k
2 votes

Click outside of popover to hide?

Events like onblur,onfocus..few other events works well for input elements(i.e input,select,textarea) but not for element that displays text contents div,p,span..etc You can fire an onblur event on a …
Praveen's user avatar
  • 10.1k
1 vote
Accepted

Use List data for Google line chart

return data; } } VF Page: <apex:page controller="MainController" extension="ChartController"> <script type="text/javascript"> var rows = JSON.parse('{! …
Praveen's user avatar
  • 10.1k

15 30 50 per page