Print Page | Close Window

TextBox Clears After Navigation

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=103
Printed Date: 31-Mar-2025 at 4:35pm


Topic: TextBox Clears After Navigation
Posted By: Linguinut
Subject: TextBox Clears After Navigation
Date Posted: 03-Jul-2007 at 12:47pm
I have a comment textbox on a sales order window.  If I enter text into the box, then navigate to another sales order, when I return, the text is gone.  The only difference that I can detect between the comment textbox and others on the form is that it is multiline.  The comment textbox is properly bound to the comment field in the entity object.  The entity object is properly reflecting the structure of the sales order table. 
 
What should I look at to resolve this problem?
 
Note:  I demo the sales order window tomorrow morning at 9am.  It would be great to have this resolved by then.  If not, maybe I will just skip this field in the demo and see if I can get away with it.
 
Thanks!!
Bill



Replies:
Posted By: Linguinut
Date Posted: 09-Jul-2007 at 12:09pm

I did get away without having to demo this field; however, users are starting to test my application and will inevitably want to save a comment on the sales order.  David K. was unable to reproduce the issue at the lab at IdeaBlade (thanks for trying David!).  Does anyone have an idea where I might look to tackle this odd problem?

Thanks,
Bill


Posted By: kimj
Date Posted: 11-Jul-2007 at 1:36pm
First, I would double-check (or maybe triple-check) that the binding is in fact set up correctly.  You never know. :)
 
Next take a look at this tech tip on data binding and form validation :  http://www.ideablade.com/forum/forum_posts.asp?TID=55 - http://www.ideablade.com/forum/forum_posts.asp?TID=55 .
 
Also take a look at the BindingDescriptor.DataSourceUpdateMode property, which is used to control when data is pushed into the bound object.  It defaults to "OnValidation", although in your case it may have been accidentally set to "Never".  It can also be set to 'OnPropertyChanged". 
 
Finally, if none of this works, check your debuglog.xml to see if any warnings or errors have been logged.  Binding problems usually cause an exception to be thrown and not logged, but you might find something suspicious going on.
 
Good luck.


Posted By: Linguinut
Date Posted: 11-Jul-2007 at 5:09pm
Thank you, Kim.  I'll walk through these ideas tomorrow and report on the results.
 
Much appreciated!
Bill



Print Page | Close Window