cancel
Showing results for 
Search instead for 
Did you mean: 

2 controllers for list report

10-20-2020 2:19 PM
akshaya_p Contributor
1010 views 3 comments
0 Likes
SAP Managed Tags
Subscribe

Hi All,

Is it possible to have more than one controller extension for list report/object page?

0 Likes

Accepted Solutions (0)

Answers (1)

Answers (1)

maheshpalavalli
Active Contributor
0 Likes

You can actually have more than one, but one for list report and other for object page.

https://ui5.sap.com/#/topic/199a496c5fa544dfbe134b53eaba092e

If you want to further modularize then try creating a singleton class like show below and modularize the code, but you will have a single extension controller and you will be calling the singleton class methods inside.

https://blogs.sap.com/2015/12/29/ui5-classes-and-objects-singleton-pattern/

Regards,

Mahesh