getting sap.m.Page from app

  • Klaus79
    Participant
      4 years, 2 months ago #26118

      Hi,

      is there a possiblity to get the “sap.m.Page” element positioned in the main app from a module.

      In the sap.m.Page different modules are loaded dynamically.

      I want to scroll the sap.m.Page from the app to bottom when a table in the module is growing.

       

      So in a more general way: how can I get access on an element situated in an app from within a module.

       

      Best regards

      Klaus

      Jennifer Häfner
      Moderator
        Has successfully completed the online course Intermediate (200)
        Has successfully completed the online course Advanced (300)
        Has successfully completed the online course Basics (100)
        Has successfully completed the online course Advanced (310)
        Has successfully completed the online course Advanced (320)
        Has successfully completed the Intermediate Certification
        Has successfully completed the Advanced Certification
      4 years, 1 month ago #26147
      Up
      0
      Down
      ::

      Hello Klaus,

      You can access an application element from within a module via code, e.g.:

      var oButton = sap.ui.getCore().byId('Screenname--ButtonId');

      In your module, just add a script shape after the event that you are listening to in the Process Designer and add the code there.

       

    Viewing 2 posts - 1 through 2 (of 2 total)

    You must be logged in to reply to this topic.