For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 37 replies, 3 voices, and was last updated 13 years, 5 months ago by
Paul_paul.
-
AuthorPosts
-
Paul_paulParticipantHi 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?
July 17, 2012 at 5:01 pm #328279
Paul_paulParticipantHello!!! anybody there?
July 17, 2012 at 7:20 pm #328285
support-octavioMemberHi,
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.
July 17, 2012 at 8:57 pm #328286
Paul_paulParticipantThanks I will give it a try.
August 16, 2012 at 7:09 pm #329287
Paul_paulParticipantHi 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
August 17, 2012 at 1:33 pm #329307
support-octavioMemberHi stickleback,
I can take a look this weekend, please send your files via support at genuitec dot com. Use title: Mobione data from stickleback.
August 20, 2012 at 5:56 pm #329363
Paul_paulParticipantHi 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
August 20, 2012 at 6:16 pm #329364
support-octavioMemberHi 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
August 20, 2012 at 6:26 pm #329365
Paul_paulParticipantHi. No it was only 4mb I will try again.
August 20, 2012 at 6:32 pm #329366
Paul_paulParticipantI have sent the files, let me know if not received. Thanks
August 20, 2012 at 7:05 pm #329367
support-octavioMemberHi stickleback,
I’ve received your files, will check them out later today and will follow up tomorrow.
August 22, 2012 at 9:19 pm #329441
support-octavioMemberHi stickleback,
Please check your e-mail inbox, I’ve reply your last e-mail with the solution.
August 28, 2012 at 5:37 pm #329609
Paul_paulParticipantHi 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
August 29, 2012 at 6:48 pm #329656
support-octavioMemberHi stickleback,
Is your app a native or webapp? Running on iOS or Android?
August 29, 2012 at 7:49 pm #329660
Paul_paulParticipantHi, It is a web app at the moment but I may require the same functions later in IOS and Android.
-
AuthorPosts
