I have two radio buttons and one datawindow. By selecting one of them, the datawindow select must change dynamically. For example, when rb1 is checked the datawindow select is "select name, surname, age from Table1" and when rb2 is checked datawindow select is "select name, surname, age from Table2". How can i do that?
Thanks!
There are many ways to skin a cat but it's not uncommon to see either of these strategies used. The first might be okay if you want both to look similar in presentation. Second might be cleaner if there is the user interface looks different for each one.
Use SetSQLSelect function (or)
Swap out one of two datawindow objects based on radio button position.