Results 1 to 2 of 2

Thread: How to set the value of a combobox

  1. #1
    Senior Member
    Join Date
    Feb 2012
    Location
    Germany, near Jena and Weimar
    Posts
    264

    How to set the value of a combobox

    Combobox in a canvas section:

    The different values are provided by a SELECT ... DISTINCT statement.
    I can get a single set value "cValue" like this:

    Code:
    var oItem = Lianja.getElementByID("page1.section1.field1");
    var cValue = oItem.value;
    My question:
    How can I set the combobox to one of its values by a statement?
    For example
    Code:
    oItem.value = "FRA";
    doesn't work.

    Thanks for hints!
    Georg

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    item.text = "FRA" will select it.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us