This question is locked. New answers and comments are not allowed.
Hello
I would like to know how to pass data back from a Window to the calling View. For example:
1. I have a View which has a Button and a TextBox (lets call it TextBox1).
2. When the user clicks the Button a Window appears with a Texbox in it (lets call this textbox Textbox2).
3. The user enter some data into Textbox2 and closes the Window.
3. The text entered into Textbox2 (from the Window) should be passed back to TextBox1 in the parent View.
Can this be done? I know that I can subscribe to the Close event which takes an argument 'e', but Im not sure how to use it to receive data from a window object.
This type of functionality is useful in scenarios where a user may need to do a lookup for a related record which could be associated with a parent record (similair to a CRM type application).
Any help is appreciated.
Regards
Adam
I would like to know how to pass data back from a Window to the calling View. For example:
1. I have a View which has a Button and a TextBox (lets call it TextBox1).
2. When the user clicks the Button a Window appears with a Texbox in it (lets call this textbox Textbox2).
3. The user enter some data into Textbox2 and closes the Window.
3. The text entered into Textbox2 (from the Window) should be passed back to TextBox1 in the parent View.
Can this be done? I know that I can subscribe to the Close event which takes an argument 'e', but Im not sure how to use it to receive data from a window object.
This type of functionality is useful in scenarios where a user may need to do a lookup for a related record which could be associated with a parent record (similair to a CRM type application).
Any help is appreciated.
Regards
Adam