Is there a value with a key of "id" in your bind context?

On Oct 28, 2010, at 6:33 AM, [email protected] wrote:

> 
> Hi All,
> 
> I would like  use Data binding for list button for simple data.but it
> doesn't work.
> 
>    I just change this segment,but can't load the id to listButton.
> 
>  <ListButton selectedItemKey="imAccount.type"
> 
> listData="['AIM', 'Jabber', 'Yahoo']"/>
> from
> 
> 
> 
> <ListButton selectedItemKey="id"/>
> |--------------------------------------------------------------------------|
> |Form wtkx:id="form" styles="{showFlagIcons:false}">                       |
> |                        <sections>                                        |
> |                            <Form.Section>                                |
> |                                <Label wtkx:id="sourceLabel"              |
> |Form.label="Source" styles="{font:{italic:true}}"/>                       |
> |                                                                          |
> |                                <Label Form.label="ID" textKey="id"/>     |
> |                                <TextInput Form.label="Name"              |
> |textKey="name"/>                                                          |
> |                                                                          |
> |                                <BoxPane Form.label="Address"             |
> |orientation="vertical">                                                   |
> |                                    <TextInput textKey="name"             |
> |prompt="Street"/>                                                         |
> |                                    <BoxPane>                             |
> |                                        <TextInput textKey="address.city" |
> |prompt="City"/>                                                           |
> |                                        <TextInput textKey="address.state"|
> |textSize="6" prompt="State"/>                                             |
> |                                        <TextInput textKey="address.zip"  |
> |textSize="6" prompt="Zip"/>                                               |
> |                                    </BoxPane>                            |
> |                                </BoxPane>                                |
> |                                                                          |
> |                                <TextInput Form.label="Phone"             |
> |textKey="phoneNumber"/>                                                   |
> |                                <TextInput Form.label="Email"             |
> |textKey="emailAddress"/>                                                  |
> |                                                                          |
> |                                <BoxPane Form.label="IM">                 |
> |                                    <TextInput textKey="imAccount.id"/>   |
> |                                    <ListButton selectedItemKey="id"      |
> |                                      />                                  |
> |                                </BoxPane>                                |
> |                            </Form.Section>                               |
> |                        </sections>                                       |
> |                    </Form>                                               |
> |--------------------------------------------------------------------------|
> 
> 
> Best regards,
> Ken Jiang
> 
> *******************************************
> Murata Electronics Trading  (Shenzhen) Co.,Ltd
> Tel:86-755-82847251
> E-mail:[email protected]
> *******************************************
> 

Reply via email to