skip to Main Content

Although many questions exist on the same topic, I could not resolve​ this using the given solutions.

Code

[Snippet from the manifest.json to trigger the same]((https://phpout.com/wp-content/uploads/2023/10/Sb7g6.png)

File structure

Error

How can I resolve this issue?

Many Thanks

2

Answers


  1. Your this is placed in the wrong context or there is no object available while you should have an object for the controller.

    Most probably you can reach Source through oEvent (oEvent.getSource()), which will point out to the controller and then you could call getView():

    oEvent.getSource().getView()
    
    Login or Signup to reply.
  2. Could you provide your whole controller please? Perhaps something went wrong in the onInit function of it.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search