Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Passing picker data to a textfield within another window

Hi,
I created a window with several fields. A "text field click event" launches a picker within a new window. After having picked a row I need to pass to picked data back into the field I clicked. How is this done? Thanks for your support, regards Daniel

— asked April 18th 2010 by Daniel Bajka
0 Comments

2 Answers

  • Hi Daniel,

    Look into using our custom events API. You can listen for and fire custom events across open windows.

    There are examples of this in the Kitchen Sink as well.

    — answered April 19th 2010 by Kevin Whinnery
    permalink
    0 Comments
  • Hi Kevin,
    Thanks for your reply. I use the great "Kitchen Sink" samples wherever I can, but could not find a real sample for my question. Can you support me with a simple sample code?

    Thanks Daniel

    — answered April 19th 2010 by Daniel Bajka
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.