function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Mohammed Fairoz Ulla 3Mohammed Fairoz Ulla 3 

Viewing the record onclick in lightning.

Hai, 

Does any one know how to view the record based on onclick function by using force:recordView in lightning components.

Many Thanks,
Help will be appreciated as soon as possible.
salesforce mesalesforce me
hi check this once..

http://blog.jeffdouglas.com/2014/10/14/tutorial-build-your-first-lightning-component/
Rowan  ChristmasRowan Christmas
openObject : function(component, event, helper) {
        var navEvt = $A.get("e.force:navigateToSObject");
        navEvt.setParams({
            "recordId": "v.object.id",
            "slideDevName": "chatter"
        });
        navEvt.fire();
    },

Limited in that it only works in the Salesforce1 mobile app. "v.object" is the SObject you're trying to open.