cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

UI5: Reading XML View Binding

adnanmaqbool
Contributor
0 Likes
558

Hi All

I want to read default binding data of an XML View, when opens first time.

I am trying to read binding of XML View at a point of time 'valueHelpRequest' to pass the value of a property Request_id which not bind to any field in XML View but representing the unique number of selected record in Master Detail Split App.

	<Label text="Self/Subordinates" required="true" wrapping="true"/>
	<Input name="Pernr" width="50%" id="subordinates_id" enabled="true" visible="true" value="{path: 'Pernr'}" valueHelpRequest="handleValueHelp"
	liveChange="validation" valueLiveUpdate="true" showValueHelp="true"/><br>

I have tried to use below code within valueHelpRequest event "handleValueHelp" but its not working here. Otherwise getBindingContext working perfectly fine in other event like change.

	handleValueHelp: function(oEvent) {

			this._valueHelpDialog = "";
			var bindingContext = this.getView().getBindingContext();
			var object = bindingContext.getObject();

                        var reqid = object.RequestId;

                            

}

Accepted Solutions (0)

Answers (0)