[Wtr-general] Question about Select-Lists

Cain, Mark Mark_Cain at rl.gov
Tue Apr 18 13:52:35 EDT 2006


Try something like this to get all select_list contents:

 

    myList = $ie.select_list( :name, 'select1').getAllContents

 

If you wanted to select everything in the list you could do this:

 

   for lst in myList

      $ie.selectBox( :name, 'select1').select("#{lst}")

   end

 

Hope this helps,   

 

--Mark

 

________________________________

From: wtr-general-bounces at rubyforge.org
[mailto:wtr-general-bounces at rubyforge.org] On Behalf Of Rodrigo Julian
Martin
Sent: Tuesday, April 18, 2006 10:37 AM
To: wtr-general at rubyforge.org
Subject: [Wtr-general] Question about Select-Lists

 

Hello! 

 

I am trying to make a code that could scan all the items of a
Select-List, in order to store them and be able to validate data. I
tried a couple of things like working with

the each method for the options, or with GetSelected Items, but I can't
find the way... Is there a simple way? 

 

Thank you so much for your help!

Cheers

 

Rodrigo Julian Martin.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060418/eb1f313e/attachment.html 


More information about the Wtr-general mailing list