ramanathansj / salesforce-lightning-datatable Goto Github PK
View Code? Open in Web Editor NEWSimple Datatable which takes SOQL query and creates native lightning datatables
License: Apache License 2.0
Simple Datatable which takes SOQL query and creates native lightning datatables
License: Apache License 2.0
I would like to get Id of each result record, in order to navigate to record. I try to put below code in JS controller, but it seem no Id put to param
navToRecord : function (component, event, helper) {
var navEvt = $A.get("e.force:navigateToSObject");
navEvt.setParams({
"recordId": "component.get("v.results.fields.Id.value")"
});
navEvt.fire();
}
I created one Component Name :
SearchBar
<aura:component >
</aura:component>
SearchBarController.js
({
searchKeyChange: function(component, event, helper) {
var myEvent = $A.get("e.c:SearchKeyChange");
myEvent.setParams({"searchKey": event.target.value});
myEvent.fire();
}
})
SearchKeyChange.evt
<aura:event type="APPLICATION" description="SearchKeyChange event" >
<aura:attribute name="searchKey" type="String"/>
</aura:event>
In your DataTableV2 Component i register that handler
<aura:handler event="c:SearchKeyChange" action="{!c.searchKeyChange}"/>
and also added the Component
<c:SearchBar/>
Now i Added
DataTableV2Controller.js
searchKeyChange: function(component, event) {
var searchKey = event.getParam("searchKey");
var action = helper.queryRows(cmp);
action.setParams({
"searchKey": searchKey
});
action.setCallback(this, function(a) {
component.set("v.page", a.getReturnValue());
});
$A.enqueueAction(action);
},
Can you please help on this , i stucked on it.
Hi,
First of all thanks a ton for the awesome component, but please do mention in the wiki that the table will not work properly if the records are more than 2,000 as the limit for offset in apex is 2,000.
I was trying to create a Seach panel at top of the Page to search the Records
Can you please help on this
Hi,
Is it possible to link to a record. If I includ the record id in the select clause?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.