Skip navigation
AvaSim
Currently Being Moderated

rawValue from list box to text box

Mar 9, 2012 5:43 AM

Hi all,

 

Can someone please tell me how I get the rawValue of a selected Item of a list box into a numeric field?

 

I have a button that pushes the selected entry to a text field. I would like to use the same button to populate the afferent numeric value of the same selected item to a numeric field.

 

 

Country.rawValue

=

Countries.getDisplayItem(Countries.selectedIndex);

 

This is what I have to get the displayed data.

 

What would the script be to get the rawValue fo the selcted Index?

 

Thanks a lot,

 

Larissa

 
Replies
  • Currently Being Moderated
    Mar 11, 2012 8:36 AM   in reply to AvaSim

    Hi Larissa,

     

    NumericField.rawValue = Countries.rawValue;
    

     

    Will get you the rawValue (bound value) of the list box.

     

    See here for an example: http://assure.ly/fYCuQ2.

     

    Hope that helps,

     

    Niall

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 12, 2012 2:23 AM   in reply to AvaSim

    Instead of getDisplayItem() method, you use getSaveItem()

      

    Country.rawValue = Countries.getSaveItem(Countries.selectedIndex);

     

    Nith

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points