You need to sign in to do that
Don't have an account?

How to get input values in ui:input
I have a iteration where i need to get input field values but I am unable to get the values
this is my cmp
this is my cmp
<aura:iteration items="{!v.BundleProductWrapperItems}" var="vCWI" indexVar="index"> <ui:inputText class="slds-input" aura:id="idblp" value="{!vCWI.bundleListPrice}" change="{!c.calculateDefaultFees1}" /> <ui:inputText class="slds-input" aura:id="idbm" value="{!vCWI.bundlemarginPrice}" change="{!c.calculateDefaultFees1}" />this is my JS
calculateDefaultFees1:function(component, event, helper){ var BundleDiscount=component.find("idblp").get("v.value"); var margin=component.find("idbm").get("v.value"); }
component.get("v.BundleProductWrapperItems")
The values are inside the array.
Jeff,
I am populating records aswell from the database.
If there are 5 rows and If user wants to change the values of 2 row that should take only 2nd row value and calculate and display in the same row element.
Jeff,
I am helpless on this.
Can you help me with providing an example with this. :(
Put it inside calculateDefaultFees1()
If you see the pic,
billing fee and margin fee are autocalculated.
but there are 0's in the fields user will fill the change the value from 0 to any other interger that Billing and margin fee needs to be calculated.

No jeff,
i get error while saving
i am trying to put this inside calculateDefaultFees1