Solution was to add a Application.DoEvents() right after oTrans.Update()
Thanks,
Kunal
----- Original Message ----
From: Kunal Ganguly <kunal_vantage@...>
To: Vantage Yahoo Group <vantage@yahoogroups.com>
Sent: Friday, May 23, 2008 3:11:50 PM
Subject: [Vantage] checkbox not remaining checked
I added a checkbox to the part entry form on the plants tab. If the user checks this checkbox, the existing vales in some fields (if any) are copied to UD fields and then overwritten with static values. If the user unchecks this box, then the values are written back. Here is where I have a problem - the checkbox does not remain checked! the chkmycheckbox. click method fires just fine, and the values get updated, but thats where it stops. Here is another weird thing, if I have a messagebox which says something to the effect of "Change Successfull" then the checkbox remains checked. So, I have the "true" effect of the checkbox, but never the "false" effect.
Thinking that there was perhaps a delay between the client and server communicating, I introduced a delay into the execution - System.Threading. Thread.CurrentTh read.Sleep( 2000)
- no help. I also tried various combinations of
oTrans.NotifyAll( )
oTrans.Refresh( )
oTrans.Update( )
edvPartPlant. Notify(New EpiNotifyArgs( oTrans, edvPartPlant. Row, edvPartPlant. Column))
any ideas?
Thanks,
Kunal
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
Thanks,
Kunal
----- Original Message ----
From: Kunal Ganguly <kunal_vantage@...>
To: Vantage Yahoo Group <vantage@yahoogroups.com>
Sent: Friday, May 23, 2008 3:11:50 PM
Subject: [Vantage] checkbox not remaining checked
I added a checkbox to the part entry form on the plants tab. If the user checks this checkbox, the existing vales in some fields (if any) are copied to UD fields and then overwritten with static values. If the user unchecks this box, then the values are written back. Here is where I have a problem - the checkbox does not remain checked! the chkmycheckbox. click method fires just fine, and the values get updated, but thats where it stops. Here is another weird thing, if I have a messagebox which says something to the effect of "Change Successfull" then the checkbox remains checked. So, I have the "true" effect of the checkbox, but never the "false" effect.
Thinking that there was perhaps a delay between the client and server communicating, I introduced a delay into the execution - System.Threading. Thread.CurrentTh read.Sleep( 2000)
- no help. I also tried various combinations of
oTrans.NotifyAll( )
oTrans.Refresh( )
oTrans.Update( )
edvPartPlant. Notify(New EpiNotifyArgs( oTrans, edvPartPlant. Row, edvPartPlant. Column))
any ideas?
Thanks,
Kunal
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]