Hi in func2 i am not getting the value of input text. I'm doing this way because firstly i am pre-populating value, and i can clear the text value so that in SelectedRecordProj should be null.
Cmp
<aura:attribute name="SelectedRecordProj" type="Project__c" />
<ui:inputText label="Project Name" value="{!v.SelectedRecordProj.Name}" aura:id="SelectedProj" required="true" class="width" />
In one function snippet is: func1
js
NewO: function(component, event, helper) {
var projName = component.get("v.projData1");
component.set("v.SelectedRecordProj", projName);
}
In another function snippet is: func2
NewO1: function(component, event, helper) {
var abc=(component.find("SelectedProj").get("v.value"));
alert('abc'+abc);
}