facebook

Select list from all pages

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

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

    Paul_paul
    Participant

    Hi I was wondering if the (Example: Display SelectList selections in a TextArea) in the ‘how to section’ could be implemented to gather selected items data from several different pages, rather than just one as shown in the example, then displayed together on one summary page, similar to a checkout page after items have been purchased?

    #328279

    Paul_paul
    Participant

    Hello!!! anybody there?

    #328285

    Hi,

    I was modifying the example and achieve what you’re asking. First, you should add the screens that will have the Select Lists, and adds the buttons to permits navigate beetwen them and the last screen should go to summarize screen.

    Then modify the summarize function: Receive the name of a list and return the selected items.

    function summarize(namelist) {
      var summary = "";
    
      //multiple select list: get selected items as array
      $('select[name='+namelist+'] :selected').each(
         function(i, selected) {
           summary += $(selected).text() + "::" + $(selected).val() + "\n";
       });
    
       return summary;
    }

    Then add and modify some code on the phoneui.prePageTransition function:

    phoneui.prePageTransition = function(currentPageId,targetPageId) {
      // add custom pre-transition code here
      // return false to terminate transition
      
      if (currentPageId == '#m1-list') {
        var summarytext = "";
        summarytext += summarize("list1"); //note that this is sending a name of a list as parameter
        summarytext += summarize("homelist1"); //note that this is sending a name of a list as parameter
        $('#m1-summary-textArea1').text(summarytext); //after get all the selected items, put the text on textarea
      }
      
      return true;
    }

    Note that you should put the custom javascript code in the <firstPage>_custom.js file. Hope this is helpful for you.

    #328286

    Paul_paul
    Participant

    Thanks I will give it a try.

    #329287

    Paul_paul
    Participant

    Hi There,
    I had tried without success to get the selected items to summerise, is there any way you can look at the app for me? I have spent days trying to get this to work. Sometimes it does and sometimes it doesn’t, very frustrating.

    Regards

    #329307

    Hi stickleback,

    I can take a look this weekend, please send your files via support at genuitec dot com. Use title: Mobione data from stickleback.

    #329363

    Paul_paul
    Participant

    Hi Again, I sent the files as requested but I’m thinking you didn’t receive as I attached a read receipt and have had nothing back , can you confirm. Thanks

    #329364

    Hi stickleback,

    We didn’t receive your files. Are the size higher than 5 MB? Please add only the necesary files (you can exclude the images) and try again, also please add my e-mail to CC list: octavio at genuitec dot com

    #329365

    Paul_paul
    Participant

    Hi. No it was only 4mb I will try again.

    #329366

    Paul_paul
    Participant

    I have sent the files, let me know if not received. Thanks

    #329367

    Hi stickleback,

    I’ve received your files, will check them out later today and will follow up tomorrow.

    #329441

    Hi stickleback,

    Please check your e-mail inbox, I’ve reply your last e-mail with the solution.

    #329609

    Paul_paul
    Participant

    Hi Octavio, Thanks for your help I have it working correctly, can you now tell me how I can keep the summary screen visible whilst I use the ‘dial phone’ feature. This feature causes the app to close and forget the selected items. Thanks

    #329656

    Hi stickleback,

    Is your app a native or webapp? Running on iOS or Android?

    #329660

    Paul_paul
    Participant

    Hi, It is a web app at the moment but I may require the same functions later in IOS and Android.

Viewing 15 posts - 1 through 15 (of 38 total)
Reply To: Select list from all pages

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