Forum Discussion

KevinJardine's avatar
1 month ago
Solved

Missing NoesisGizmo changePage function

Unfortunately, despite the Meta Horizon v243 Release Notes, there is no changePage function.

Is there a workaround or is this going to be added on Monday hours before the contest deadline?

I could certainly use this function and was coding some features to use it when I noticed the function was missing from the API.

8 Replies

  • This has been added in todays (v244) update.

    • KevinJardine's avatar
      KevinJardine
      Member

      Perfect. I created the second page I needed anyway so I can swap it in tomorrow without any complicated tricks.

  • Unfortunately changePage is not working for me.

    I load the dataContext first. If my page is just referenced in the NoesisGUI gizmo form in the desktop editor, all is fine.

    However, if I load it using changePage, first the NoesisGizmo pops out of the zoom mode.

    And secondly, it is blank, as though it cannot access the data context. I am not supplying the data context as a parameter as I want to use the same one all the time, but even if I do it makes no difference.

    I could really use some help here or I may be forced to use two different Noesis gizmos which is confusing and ugly.

    • KevinJardine's avatar
      KevinJardine
      Member

      If I use console log to dump the data context I can see that all the correct values are there. However for some reason changePage is not accessing them.

      • KevinJardine's avatar
        KevinJardine
        Member

        I solved this for now by toggling the visibility of overlapping canvases on the same page rather than using changePage.

    • FreakyChest's avatar
      FreakyChest
      Member

      I tried as well and the changePage seems to break data context when using spatial, but seems to work when using ScreenOverlay. 

      Posting just so they know bug has been recreated (not isolated to one user).

      • KevinJardine's avatar
        KevinJardine
        Member

        Thanks! I am forced to use spatial because of another NoesisGUI bug: loaded image assets can only be viewed by the owner. To get around that I position non-Noesis image panels in front of the gizmo and so need to use a spatial mode to see them.