Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3184

How to trigger two functions with single button press in UI5

$
0
0

Hi All,

 

could you please say how to trigger two functions  from single button press in SAP UI5 button [Requesting in xml view].

 

Controller.js

onPress1: function () {

  console.log( " 1 Pressed");

  },

  onPress2: function () {

console.log( "2  Pressed");

  },

 

View.xml(following is working when seperate buttons)

<Button  press="onPress1"/>

<Button press="onPress2"/>

 

View.xml(following is Not working)

<Button press="onPress1 ; onPress1"/>

 

could you please say where I am going wrong...

 

Note:for my scenario function2 calling inside function1 will not workout.

Could you please suggest any other solution for XML view.

 

Thanks in advance,

regards,

Abhiram.


Viewing all articles
Browse latest Browse all 3184

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>