1
0
-1

I’m trying to hook up a DDS on the Page Controller’s Page Change rule. I can find the current page (Form.getCurrentPageNumber()), but I can’t seem to find the page number that the user is navigating to.

 

Is there a way to determine where the user intends to go?

    CommentAdd your comment...

    2 answers

    1.  
      2
      1
      0

      From Maesto 5.0.15 onward. Within the page change (On the Page Controller) and page load rules (On the individual pages). You can access the page id of the page navigated to and from via the info object parameter.

      Like so:

      var navigatedFrom = info.from;
      var navigatedTo = info.to;

       

      Console output of the "info" parameter after navigating back and forth between two pages.

        CommentAdd your comment...
      1.  
        2
        1
        0

        Good question Jeroen. There is a new event type called Page Load that you can apply to a page component that provides the id of the page navigating from. This event type may solve your problem.

        Otherwise, I've submitted a request on your behalf to have the target page id added to the info object in the page change event (TPD-4155).

          CommentAdd your comment...