Hi,
I am creating an adaptation project from Bas using my btp trial account. I am creating a variant for the My Travel Requests V2 standard fiori app (sap elements - F0409A). But when I create a controller extension, any methods added or hook methods like init() do not work.
For example, if I click on a button, the method called in the press event is not fired.
I have checked a lot of bogs, finally referred to the sap note : https://userapps.support.sap.com/sap/support/knowledge/en/3249943.
for checking for issues. But I am unable to identify the problem here.
Can anyone suggest, what I might be doing wrong.
Thanks,
Jalpa Desai
Hi again,
I just need a little bit of Clarification.
I am trying a similar thing by adapting the My Travel and Expenses V2 App(F0584A) - SAP Fiori for SAP S/4HANA 1909.
Again, I am facing same issue - like view changes are displayed in the app variant. But controller extension is not possible.
Can anyone please suggest or guide here, so I can accordingly come to a conclusion.
Thanks,
Jalpa
Request clarification before answering.
I had a similar problem while extending My Travel Requests V2 standard fiori app - F0409A. I solved it by changing the controller I was extending in the codeExt file. Depending on where you click to create the controller extension, it might reference the Controller for the reuse component instead eg create extension for a form field instead of the details page. so in your codeExt file update the selector to the controller of the app you are currently in, in my case it was the following.
"selector": {
"controllerName": "fin.travel.mytravelrequestsv2.controller.Main"
},
remember to like if it helps...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.