cancel
Showing results for 
Search instead for 
Did you mean: 

Sap Fiori - My Travel Request App Extension - error load controller

patty_1982
Contributor
0 Kudos
578

Hi gurus,

I am extending the SAP Fiori My Travel Request application using WebIDE through extensibility panel.

I need to extend DetailForm view and its controller.

I extended DetailForm view, I run the extended app from WebIDE and everythings works.

Then I just extended its controller without adding my code. Now, when I run the extended app and I try to create a new travel request or editing a travel request i have this error:

Any idea? The manifest is automatically generated by WebIDE through extensibility panel.

Thank you

Patrizia

vamsilakshman_pendurti
Active Participant
0 Kudos

Hi Rossi,

Actually we are also having the similar kind of requirement in My Travel Request V2. But unable to access the application from WEBIDe to perform the changes.

When we are trying to import the app by using WEBIDE am Getting Error "Extending smart applications is currently not supported".

Kindly guide us how to get the access to do the modification on the same smart control application using WEBIDE...

Thanks,

Lakshman.

Accepted Solutions (0)

Answers (4)

Answers (4)

patty_1982
Contributor
0 Kudos

The problem should be into these libraries:

jQuery.sap.require("travel.request.create.util.Formatters"); jQuery.sap.require("travel.request.create.util.InputHelper"); jQuery.sap.require("travel.request.create.util.FileUploadHelper");

because i am using Internet Explorer browser (unfortunatelly it is not possibile install chrome or use portable chrome or other software on this system for security policies)

patty_1982
Contributor
0 Kudos

Hi,

unfortunatelly I have the same error.

patty_1982
Contributor
0 Kudos

This is the view extension generated by WebIDE

mvaibhav
Contributor
0 Kudos

ho Patricia,

Try updating the controllerName in the view to the following and try :

controllerName ="travel.request.create.FIN_TR_CREEXtension.view.DetailFormCustom"

Thanks,

vaibhav

mvaibhav
Contributor
0 Kudos

hi Patrizia,

Is your path for the controller properly mentioned in the manifest ?

I think that the controllers would be specified under the controllers folder in Web IDE.

So path to your controller in manifest should be pointing to controllers folder instead of view.

controllerName : "travel.request.create.FIN_TR_CREEXtension.controller.DetailFormCustom"

You will need to do the same for all the controllers you extend.

Thanks,

Vaibhav Maheshwari

patty_1982
Contributor
0 Kudos

Hi

the project is created automatically by WebIDe extension app tool. It creates view and controllers under same folder “view”

mvaibhav
Contributor
0 Kudos

hi Patricia,

Can you please share the extended view and controller code ?

I think the issue could be with the namespace.

We might need to manually add the namespace for the controller property in the view .

For Example :

<mvc:Viewxmlns:mvc="sap.ui.core.mvc"xmlns="sap.m"controllerName="namespaceofyourapp.view.DetailFormCustom">

Thanks,

Vaibhav