Passing data to parent components


howdy folks,

i'm attempting pass data between components. passing data parent component child component easy enough have run few problems attempting opposite.

goal :-
in more detail, have parent component contains accordian. each accordian pane component within itself. first accordian pane search component users can search customer's site address , make selection data grid. when user selects customer grid, wish pass site id of selection second accordian pane display sites full details.

problem :-
the way in have attempted passing selection (the site id) bindable variable (called siteid) in parent component contains accordian (using parent.siteid = event.currenttarget.selecteditem.siteid) pass second accordian pane site's details can displayed "undefined property" error.

i believe way using custom event search component hoping there more straight forward way this.

any appreciated.

many thanks.

i think events best approach problem, use parent or parentapplication properties acces parent component. think can use application.application , 1 references parent application too.
i insist using events best solution, feel free try other solutions

hope helps u out


More discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

Thread: PKI Client 5.00 install (for eToken Pro)

ATmega2560-Arduino Pin Mapping

Crossfader Arduino Tutorial