OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

sapui5 event registration for multiple objects - failed?

  • Thread starter Thread starter sguski
  • Start date Start date
S

sguski

Guest
My first post in this community! I'm happy to be here. Already learned a lot of stuff but I have a question which I couldn't solve with the existing questions yet.

Simple task: I have two smart tables: "SmartTablePanel2" and "SmartTablePanel4"

In my controller I attach the event "DataReceived" to both smart tables at the event "onInit".

enter image description here

Normally I wanted to have one function but it was not working so I tried to have two functions: "onDataReceived" and "onDataReceived2". But this is also not working :-(

My functions are quit simple:

enter image description here

My problem: In both events are fired but in the functions I only receive "SmartTablePanel2" ... I would expect one is "2" and the other would be "4" but it is in both cases "2"!

First call: enter image description here

Second call: enter image description here

Thank you so much in advance Sven

<p>My first post in this community! I'm happy to be here. Already learned a lot of stuff but I have a question which I couldn't solve with the existing questions yet.</p>
<p>Simple task:
I have two smart tables: "SmartTablePanel2" and "SmartTablePanel4"</p>
<p>In my controller I attach the event "DataReceived" to both smart tables at the event "onInit".</p>
<p><a href="https://i.sstatic.net/7oND1mke.png" rel="nofollow noreferrer">enter image description here</a></p>
<p>Normally I wanted to have one function but it was not working so I tried to have two functions: "onDataReceived" and "onDataReceived2". But this is also not working :-(</p>
<p>My functions are quit simple:</p>
<p><a href="https://i.sstatic.net/rv92fvkZ.png" rel="nofollow noreferrer">enter image description here</a></p>
<p>My problem: In both events are fired but in the functions I only receive "SmartTablePanel2" ... I would expect one is "2" and the other would be "4" but it is in both cases "2"!</p>
<p>First call:
<a href="https://i.sstatic.net/l6pxUl9F.png" rel="nofollow noreferrer">enter image description here</a></p>
<p>Second call:
<a href="https://i.sstatic.net/UwDetSED.png" rel="nofollow noreferrer">enter image description here</a></p>
<p>Thank you so much in advance
Sven</p>
 

Latest posts

J
Replies
0
Views
1
jbowerbir
J
Top