On the fly fields (OpenInsight Specific)
At 08 MAR 1999 07:19:16PM S Berger wrote:
This is completely theoretical. I'm not even sure that I want to do it. But, here goes. I have a form with many fields that are bound to a table. In some cases, when I fill one field with a particular code then I want to fill in another field with symbolic data. However, if I fill in a different code, I don't want the symbolic data, I want the user to type in a description. Right now I have 2 seperate edit lines to handle this. Is it possible to have 1 box and have it bound based on the code provided. Maybe 1 option would be to place 2 fields on top of each other and have 1 or the other visible based on the value of the field. Just an idea I am kicking around. If anyone has any ideas please let me know.
S
At 09 MAR 1999 01:01AM Don Bakke wrote:
You can alter the contents of another control (databound or not) using the CHAR or LOSTFOCUS event of the first control. Based on whatever logic fits then set the TEXT or DEFPROP property of this second control.
dbakke@srpcs.com
At 09 MAR 1999 01:07PM S Berger wrote:
Well after I left I decided to take a different tack with this. I have made the description an un-bound edit line. Based on the code, I either fill the control with the text from the table, or I set my focus into the description control. I think this is going to work. Thanks for the suggestion.
S