Code Monkey home page Code Monkey logo

salesforce-lightning-datatable's People

Contributors

ramanathansj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

salesforce-lightning-datatable's Issues

How I can get the Id of each result record?

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();
}

SearchBar Component not working with helper

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.

Please mention the offset limit in the wiki

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.

Link to record

Hi,

Is it possible to link to a record. If I includ the record id in the select clause?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.