2

I want this when user click it is got account id and with id it is redirect to AccountDetailLightning.

This my first component:

`<a href="javascript:void(0);" class="link"  aura:id="{!obj.Id}" onclick="{!c.RedirectToSupplierDeatilsPage}">
        <!--    <ui:button href="javascript:void(0);" class="link" press="{!c.RedirectToSupplierDeatilsPage}" > -->
                <h3 class="title" >{!obj.Name}</h3>
                <span>Address:</span> <span >{!obj.BillingStreet}</span>
                <span >Phone:</span> <span >{!obj.Phone}</span>
                <span>Customer Number:</span> <span >{!obj.AccountNumber}</span>

            </a> 

js controler code.

RedirectToSupplierDeatilsPage:function(component,event,helper)
    { debbuger;
        var evt = $A.get("e.c:AccountDetailLightning");
        evt.setParams({ "obj.Id": "00QB0000000ybNX"
      });
         navEvt.fire();
}

1 Answer 1

4

You can use force:navigateToComponent event.

eg:-

navigateToRollCall : function(component, event, helper) {
var evt = $A.get("e.force:navigateToComponent");
    evt.setParams({
        "obj.Id": "00QB0000000ybNX"
    });
    evt.fire();    
}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .