Let's follow up this discussion at the Neptune Community

(this forum will be kept in read-only mode)

Debugger Helper Method

Hello Neptune team,


if an App gets opened within the Launchpad, all IDs of objects are new calculated. Objects can only be addressed during a debugging session through this little piece of code:


image


It would be easier, if this method would be part as a function in the sap.n. namespace. 

if (sap.n) {
    sap.n.getObjectByID = function(id) {
        var object;

        object = sap.ui.getCore().byId(sap.n.currentView.createId(id));
        return object;
    }
}

So it would be possible to address all objects on a easy to remember way. 


Best regards,

Fabian


1 person likes this idea
1 Comment

Hi Fabian


Agree that this could be a nice method, so we will add it into SP03.


Thank you for the contribution :-) 


Regards

Ole-Andrè


1 person likes this
Login or Signup to post a comment