[flexcoders] Re: databinding back to source?
This is a known binding issue with B3. For now, you can refresh the tree with: tree.invalidateList(); -TH --- In flexcoders@yahoogroups.com, "Rick Schmitty" <[EMAIL PROTECTED]> wrote: > > Thank you for the reply! > > Sorry, I wasnt sure of the exact question because I wasnt sure what I > was looking for. So yes the data does update, but the visual > component itself does not. > > For example, if you expand the tree, and edit "controls", when you > click on "controls" in the list view, the textinput and selectedItem > reference contain my changes, but the listview itself doesn't. Also > when editing the selected item, the debug text fields update as you > type. > > I'm unsure of what you meant by a change notification structure like > binding. The datasources for both components are a plain object, and > I thought I was binding via the curly brackets on the click event? Do > I need to create a function that after updating the data, it refreshes > the tree/list manually? > > function update(){ > tree.selectedItem.label=lbl.text; > tree.; > } > > > > > > On 5/26/06, Michael Montagna <[EMAIL PROTECTED]> wrote: > > I'm not exactly sure what the question is, but it seems you're asking > > if changes to data pulled from the Tree will be seen in the > > original data structure? > > > > If that's what you mean, then you don't need binding, the Tree control > > already uses (and returns) your data by reference. If you get a data > > point from the Tree control (like selectedItem), then changes to that > > reference will be reflected in your original data structure. > > > > This doesn't mean that the changes will be seen by the Tree however. > > Some data types, like Object, require a change notification structure > > like binding or Collections. > > > > Is that what you're looking for? > > > > -Michael > > > > > > --- In flexcoders@yahoogroups.com, "Rick Schmitty" wrote: > > > > > > Is there a way to bind back to where the original databind came from? > > > Not sure if thats the correct terminology for what I'm trying to > > > say...so here is my simple example. > > > > > > In the example below it "kinda" happens, but only if you expand/close > > > a node after. The list editor should also update the tree, and vice > > > versa. I'm sure I'm missing a simple step here... > > > > > > > > > > > > http://www.adobe.com/2006/mxml" > > layout="horizontal"> > > > > > > > > > > > > > > > > > > > > > > > > dataProvider="{fileSystemStructure}"/> > > > > > > > > > text="{tree.selectedItem.label}"/> > > > > > click="{tree.selectedItem.label=lbl.text}"/> > > > > > > > > > > > > width="300"/> > > > > > > > > > > > > dataProvider="{fileSystemStructure.children}" > > > width="300" height="200"/> > > > > > > > > > text="{list.selectedItem.label}"/> > > > > > click="{list.selectedItem.label=lbl2.text}"/> > > > > > > > > > > > > width="300"/> > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > Flexcoders Mailing List > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > > Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.com > > Yahoo! Groups Links > > > > > > > > > > > > > > > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Re: databinding back to source?
Thank you for the reply! Sorry, I wasnt sure of the exact question because I wasnt sure what I was looking for. So yes the data does update, but the visual component itself does not. For example, if you expand the tree, and edit "controls", when you click on "controls" in the list view, the textinput and selectedItem reference contain my changes, but the listview itself doesn't. Also when editing the selected item, the debug text fields update as you type. I'm unsure of what you meant by a change notification structure like binding. The datasources for both components are a plain object, and I thought I was binding via the curly brackets on the click event? Do I need to create a function that after updating the data, it refreshes the tree/list manually? function update(){ tree.selectedItem.label=lbl.text; tree.; } On 5/26/06, Michael Montagna <[EMAIL PROTECTED]> wrote: > I'm not exactly sure what the question is, but it seems you're asking > if changes to data pulled from the Tree will be seen in the > original data structure? > > If that's what you mean, then you don't need binding, the Tree control > already uses (and returns) your data by reference. If you get a data > point from the Tree control (like selectedItem), then changes to that > reference will be reflected in your original data structure. > > This doesn't mean that the changes will be seen by the Tree however. > Some data types, like Object, require a change notification structure > like binding or Collections. > > Is that what you're looking for? > > -Michael > > > --- In flexcoders@yahoogroups.com, "Rick Schmitty" <[EMAIL PROTECTED]> wrote: > > > > Is there a way to bind back to where the original databind came from? > > Not sure if thats the correct terminology for what I'm trying to > > say...so here is my simple example. > > > > In the example below it "kinda" happens, but only if you expand/close > > a node after. The list editor should also update the tree, and vice > > versa. I'm sure I'm missing a simple step here... > > > > > > > > http://www.adobe.com/2006/mxml" > layout="horizontal"> > > > > > > > > > > > > > > > > dataProvider="{fileSystemStructure}"/> > > > > > > > > > click="{tree.selectedItem.label=lbl.text}"/> > > > > > > > > width="300"/> > > > > > > > > > > width="300" height="200"/> > > > > > > > > > click="{list.selectedItem.label=lbl2.text}"/> > > > > > > > > width="300"/> > > > > > > > > > > > > > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com > Yahoo! Groups Links > > > > > > > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: databinding back to source?
I'm not exactly sure what the question is, but it seems you're asking if changes to data pulled from the Tree will be seen in the original data structure? If that's what you mean, then you don't need binding, the Tree control already uses (and returns) your data by reference. If you get a data point from the Tree control (like selectedItem), then changes to that reference will be reflected in your original data structure. This doesn't mean that the changes will be seen by the Tree however. Some data types, like Object, require a change notification structure like binding or Collections. Is that what you're looking for? -Michael --- In flexcoders@yahoogroups.com, "Rick Schmitty" <[EMAIL PROTECTED]> wrote: > > Is there a way to bind back to where the original databind came from? > Not sure if thats the correct terminology for what I'm trying to > say...so here is my simple example. > > In the example below it "kinda" happens, but only if you expand/close > a node after. The list editor should also update the tree, and vice > versa. I'm sure I'm missing a simple step here... > > > > http://www.adobe.com/2006/mxml" layout="horizontal"> > > > > > > > > dataProvider="{fileSystemStructure}"/> > > > > click="{tree.selectedItem.label=lbl.text}"/> > > > > width="300"/> > > > > > width="300" height="200"/> > > > > click="{list.selectedItem.label=lbl2.text}"/> > > > > width="300"/> > > > > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.