How to Store Mutiple entries in the "Select" Compo

Posted by mvergara on 29-Oct-2014 16:08


Do you have the Java code to ‘Add’ more than one item in the ‘Select’ component in RB Mobile? For example, if you choose more than 2 items from the ’Select component, I would like to store both the value and label info. from the ‘Select Component’ into array, so I can later send the array with both values to Rollbase object.

Thank you for your help.



[collapse]
From: Manny Vergara <mvergara@progress.com>
Date: Tuesday, October 28, 2014 at 5:44 PM
To: "TU.Mobile@community.progress.com" <TU.Mobile@community.progress.com>
Subject: Re: [Technical Users - Mobile] How to read values from "Select" Component in Rollbase Mobile

Thanks Anil,

I tested this code and worked. :)

Cheers,
Manny.

[collapse]
From: Anil Kumar <bounce-anikumar@community.progress.com>
Reply-To: "TU.Mobile@community.progress.com" <TU.Mobile@community.progress.com>
Date: Tuesday, October 28, 2014 at 4:21 PM
To: "TU.Mobile@community.progress.com" <TU.Mobile@community.progress.com>
Subject: RE: [Technical Users - Mobile] How to read values from "Select" Component in Rollbase Mobile

var mySelectLabel = Progress("mySelectMenu").find(":selected").text();
alert(mySelectLabel);    
[/collapse][/collapse]

All Replies

Posted by Jean Richert on 06-Nov-2014 10:49

Anyone has a piece of code to share and/or give some hints?

Posted by John Goodland on 07-Nov-2014 04:19

When you say 'add' more than one item to the select component. Do you mean you have a list of data that you want to display within this select component or is it click something adds values to this select component

This thread is closed