facebook

ComboBox: go to page

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

    Hi all.
    Please help.
    How to use the ComboBox go to a specific page? (MultiPage widget)

    Click to ComboBox item -> Select "Main Page" -> Click -> Go to Main Page.
    #339058 Reply

    Hi Internationale,

    You can use something like next code in your combobox’s on Change action:

    var pageId = $('select[name="combobox1"]').val();
    phoneui.gotoMultiPagePage('m1-<designName>-multiPage1', 'SET_PAGE', 'm1-<designName>-'+pageId, 'NONE');
    

    First, you get the value of the combobox, note that is necesary that the value of your items in combobox have the name of the pages id:
    See attachment combobox-multipage.png
    Then, you call the gotoMultiPagePage with parameters: widgetId, targetType (SET_PAGE in this case) your page id(i.e. m1-<designName>-page1) and transition.

    Hope this is helpful.

    Attachments:
    You must be logged in to view attached files.
    #339062 Reply

    thx Octavio, but i dont understand this moment:

    Then, you call the gotoMultiPagePage with parameters: widgetId, targetType (SET_PAGE in this case) your page id(i.e. m1-<designName>-page1) and transition.

    can u give me an example (project file)?

    #339068 Reply

    @Internationale,

    The example is in my last post:

    @support-octavio wrote:

    Hi Internationale,

    You can use something like next code in your combobox’s on Change action:

    var pageId = $('select[name="combobox1"]').val();
    phoneui.gotoMultiPagePage('m1-<designName>-multiPage1', 'SET_PAGE', 'm1-<designName>-'+pageId, 'NONE');
    
    #339109 Reply

    @Octavio

    I tried and I did not get it done.
    still need an example in the project, please!!!

    #339111 Reply

    Hi Internationale,

    Hope next sample file is helpful for you.

    Attachments:
    You must be logged in to view attached files.
Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: ComboBox: go to page

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