[Laszlo-user] datacomboboxes and local datasets?

Elliot Winard enw at laszlosystems.com
Mon Mar 10 13:11:37 PDT 2008


While assembling a bug file for the openlaszlo JIRA, I came up with the 
following syntax. [0] It works in pagan-deities but was *not* working in 
wafflecone.

I think I'm all good now.
Thanks,
-e

[0]
    <contactfieldcombo itemdatapath="local:internal:/select/option"
                       textdatapath="@name"
                       valuedatapath="@value"
                       >
        <!-- combobox-backing dataset -->
        <dataset name="internal">
            <select name="Notification" value="0">
                <option name="e-mail" value="0" />
                <option name="mobile" value="1" />
            </select>
        </dataset>
       
        <handler name="onselect" args="dptr">
            Debug.write('value:', this.value);
            Debug.write('datapointer:', dptr);
        </handler>
    </contactfieldcombo>


Elliot Winard wrote:
> I'm building a dynamically-generated form that includes text fields & 
> comboboxes.  I want to use local datasets because the components are 
> dynamically generated and there may be any number of them.  It looks 
> like this has been an issue as far back as 2005.  [0]
>
> I've looked at combobox, datacombobox and incubator/lzcombobox but ran 
> into problems getting any of them to work with local datasets.  I'd 
> prefer not to add another combobox to the set of existing ones.
>
> Has anybody successfully done something like this without implementing 
> their own combobox?
>
> Thanks,
> -e
>
> [0] http://www.openlaszlo.org/jira/browse/LPP-898
>


More information about the Laszlo-user mailing list