Im a rookie in the SAPUI5 enviroment and with JavaScript. I use the Master Detail template, thereby are on the master page the Supplier displayed and on the detail page the products, which they produce. My goal is to display the number of products behind every supplier name on the master page. The products and the supplier are 2 entities and have an association. There is a function in my detail controller, which counts the table lenght and dispaly the variable on the detail page. How do i get this variable in my master page?
I tried it with OData operations, did not work cause of the dependence between the 2 entities.
I tried it with an Eventbus to get access to the count function from master to detail controller. Problems occured with the triggering of the event.
I tried display my function as an object and had a problem with the access of the varibles.
Do someone has a smart solution for my problem ? :)
Regards Felix