I am trying to set the attribute for a Managed Package lightning component which was installed from App Exchange as follows!

<aura:component implements="flexipage:availableForAllPageTypes"
access="global" >
<aura:attribute name="InputRoleName" type="String"/>
<lightning:input  label="Enter the RoleName" name="InputRoleName" value="
<kkltng:Hierarchy apexClassForData="DFSUtils" apexInput="{!v.InputRoleName}"

But it doesn't render the output, all i need to achieve is give the role name as input from the UI and get the role hierarchy for that role!

I dont want to hard code the apexInput="CEO" but want to give the input from UI

Do any one faced this scenario, please do guide me.

  • Create an aura:attribute called as "InputRoleName" and then bind it with the lightning:input. This way when some-one enters the value , the two way binding expression will update the value of inputRoleName and the same can be passed to the managed package component.
    – Sumuga
    Sep 5, 2017 at 7:09
  • i tried that, it doesnt help me
    – ak_1
    Sep 5, 2017 at 18:03
  • The binding in lightning:input is not right. it is supposed to be value="{!v.inputRoleName}" and in the managed package component it is supposed to be apexInput="{!v.InputRoleName}" check this out [ pastebin.com/6R8bnXnA ]
    – Sumuga
    Sep 6, 2017 at 7:57
  • I tried this too it doesnt help!
    – ak_1
    Sep 11, 2017 at 0:13


You must log in to answer this question.