7/29/2010 10:47:17 PM
Title:
Events...
Hi all,
i have a custom accordion header in which i need to place combo box and i was using this combo box in the body of the accordion.
the combo box provides no.of days and on selection it would draw the calendar
Now the problem is that whenever there is change in combo box i need to send the change event with the value that is selected to the custom component
plz help me on this,
thanks
Tyler
Points: 230
Posts:0
7/30/2010 12:02:46 AM
declare a public function inside your custom function so that its accessible form out side.
Say cusComponent is your custom component and comboVal is function inside which receives the combo selection value as parameter. which should be accessible from anywhere in application using Application Object. You can call the following code from combo change handler to pass value
Application.application.cusComponent.comboVal(myComoValue)
7/30/2010 12:23:19 AM
hi tyler, thanks for the reply
this is not working as both are custom components,request you provide sample eg's with this scenario,if possible
thanks
Tyler
Points: 230
Posts:0
7/30/2010 12:45:05 AM
for the above code to work your custom component should be on Application root and should have ID cusComponent. Its simple code enough. Any component whether flex or custom component can be accessed using the Application.application which points to root. You can trace the function inside your custom component and see if its being called.Call it from anywhere in application not just from combo listener . The function should be public.
8/16/2010 2:15:58 AM
Hello cf_flex
Can you provide your code(s), in which you have problems.
regards,
8/16/2010 2:49:06 AM
hi prestine,
problem got fixed
thanks a lot