\r\n\r\n
Database / XML / Reporting Topics include: ADO.NET, SQL, XML structures and schemas, Crystal Reports, and other reporting tools

Go Back  Xtreme .NET Talk > .NET > Database / XML / Reporting > OLEDBADAPTER1.FILL () doesn't update text fields in tab controls?? why is this?


\r\n \r\n \r\n \r\n
 
 
Thread Tools Display Modes
\r\n \r\n
\r\n
\r\n \r\n I have a lookup form that calls oledbadapter1.fill(form1.instance.objdataset1,"filename")
\r\n
\r\nThis works fine for any field on form1 that is on a displayed tab. However, any data bound field that is displayed on a tab that is not currently active does not update until you click to activate the tab itself.
\r\n
\r\nI know this because I have another button that sends this data out via telnet and during the debugging process, I verify I am sending the correct fields and correct data. The contents of the text boxes will be empty until you click on the tab that has these fields.
\r\n
\r\nAs long as you click on each of the tabs after the ".fill" command then all the textboxes update and are filled correctly.
\r\n
\r\nI have tried form1.refresh form1.validate etc.
\r\n
\r\nThanks for any help you can give on this problem.\r\n
\r\n
\r\n \r\n
\r\n \r\n\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n
\r\n \r\n \r\n \r\n \r\n Reply With Quote\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n \r\n\r\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n'; pd[195560] = '\r\n\r\n \r\n\r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n\r\n\r\n\r\n\r\n\r\n \r\n\r\n\r\n\r\n \r\n \r\n\r\n
\r\n
\r\n  \r\n #2  \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n
\r\n \r\n Old\r\n \r\n 09-05-2002, 08:39 PM\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Robby\'s Avatar\r\n\r\n
\r\n \r\n Robby\r\n Robby is offline\r\n\r\n\r\n
\r\n \r\n
\r\n
\r\n \r\n I don\'t know how else to explain it. The fill works fine on any textbox that is currently visable (not the property visable) on the form. If the field is in a tab that is not the current active tab, then the textbox field does not update until you select the tab that this field is on.
\r\n
\r\nLets try this.
\r\nYou have a form it has one field on it called TextBox1. You have two tab pages called tabpage1, tabpage2. On tabpage1 you have Textbox2 & TextBox3, on tabpage2 you have TextBox10, TextBox 11, Textbox12.
\r\n
\r\nNo you the fill happens TextBox1, Textbox2, & Textbox3 will all get updated with the Data from the Fill command. However, if you do not select TabPage2, Textbox10, 11, & 12 will not get the data. The minute you click TabPage2, Textbox10, 11 & 12 will then get loaded with the correct data.
\r\n
\r\nAt first glance, you\'d think this is no big deal. But it is when I am trying to send this data out over telnet and have not viewed each individual tab after the fill happens. Then Textbox10, 11, & 12 are empty or have the old data in them.
\r\n
\r\nThanks for any further help\r\n
\r\n
\r\n \r\n
\r\n \r\n\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n
\r\n \r\n \r\n \r\n \r\n Reply With Quote\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n \r\n\r\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n \r\n
\r\n
\r\n
\r\n\r\n\r\n\r\n'; // next/previous post info pn[195393] = "195831,195560"; pn[0] = ",195393"; pn[195560] = "195393,195831"; pn[195831] = "195560,195393"; // cached usernames pu[0] = guestphrase; pu[3990] = "Robby"; // -->
Prev Previous Post   Next Post Next
  #1  
Old 09-05-2002, 03:23 PM
cgchris99
Guest
 
Posts: n/a
Default OLEDBADAPTER1.FILL () doesn't update text fields in tab controls?? why is this?

I have a lookup form that calls oledbadapter1.fill(form1.instance.objdataset1,"filename")

This works fine for any field on form1 that is on a displayed tab. However, any data bound field that is displayed on a tab that is not currently active does not update until you click to activate the tab itself.

I know this because I have another button that sends this data out via telnet and during the debugging process, I verify I am sending the correct fields and correct data. The contents of the text boxes will be empty until you click on the tab that has these fields.

As long as you click on each of the tabs after the ".fill" command then all the textboxes update and are filled correctly.

I have tried form1.refresh form1.validate etc.

Thanks for any help you can give on this problem.
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change 2 text fields: another way of doing it?? eramgarden ASP.NET 6 03-31-2004 10:34 AM
how to auto fill fields on a web page ? hawk1ns General 0 02-03-2004 01:13 PM
Tab Controls Jay1b General 3 12-06-2003 06:41 PM
Validation Controls and Clearing Fields timothy2l ASP.NET 2 09-23-2003 01:48 PM
Update Database Fields in report design Chong Database / XML / Reporting 1 04-11-2003 09:28 AM

Advertisement:

Powered by liquidweb