facebook

Jump to page in multipage

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #340544 Reply

    Proffie
    Member

    can somebody explain me, how I can jump from one screen to a dedicated page of a multipage on another screen?
    I use the On Click Action from MobiOne, which offers me the possibility to go to the multibox screen.
    If I go to that multipage screen, I will end up on the page which was last visited, but I want to jump to the first page.
    How and where do I set this?
    I tried fiddling around with the Action definitions in “project”.js, but changing the action from
    ‘action8’:function() { phoneui.gotoScreen(‘m1-NewReportBeta1’, ‘FLIP_LEFT’);},
    to
    ‘action8’:function() { phoneui.gotoMultiPagePage(‘m1-NewReportBeta1-multiPage1’, ‘SET_PAGE’, ‘m1-NewReportBeta1-General’, ‘FLIP_LEFT’);},
    that did not work at all. The button went dead.

    #340545 Reply

    Stu Wade
    Member

    Hi Proffie,

    Thought that I had seen your problem before …

    Look here http://www.genuitec.com/support-genuitec/viewtopic.php?f=8&t=5331

    #340548 Reply

    Proffie
    Member

    I tried that one. is not working…
    I tried also to get the example in the thread working…nope.
    I changed the button to the run javascript and added the two lines

    phoneui.gotoMultiPagePage('m1-NewReportBeta1-multiPage1', 'SET_PAGE', 'm1-NewReportBeta1-General', 'NONE');
    phoneui.gotoPage('m1-NewReportBeta1', phoneui.transitions.slideRight);

    But Nothing happens now when I run it in test center…
    What am I missing?

    #340550 Reply

    Stu Wade
    Member

    Sorry, your code looks good to me, leaving me with no more to offer.

    Octavio – I guess you are needed here …

    #340551 Reply

    Proffie
    Member

    Ok, I got the problem solved now…

    What you have to do additionally to what has beed said in the thread before is:
    – adding the multipage.mobi file to the calling .mobi ‘Additional Project Files’ under “Miscellaneous” in Properties.
    I did this for every calling .mobi file, even if they are part of the same project, and now it seems to work.
    pheew…

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Jump to page in multipage

You must be logged in to post in the forum log in