Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ SQL » SqlArray row validation bug
SqlArray row validation bug [message #4449] Wed, 09 August 2006 12:41 Go to next message
zsolt is currently offline  zsolt
Messages: 698
Registered: December 2005
Location: Budapest, Hungary
Contributor
I tried to use WhenAcceptRow to validate user input, but when returning false, the changes of fields other than last modified fields disappiered from array and database.
I have changed Accept() method to:
bool  SqlArray::Accept() {
	bool b = ArrayCtrl::Accept();
	if(b) Ctrl::ClearModify();
	return b;
}

And now it seems to be working well.
Re: SqlArray row validation bug [message #4450 is a reply to message #4449] Wed, 09 August 2006 12:43 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Thanks (now in uppsrc).

Mirek
Re: SqlArray row validation bug [message #4451 is a reply to message #4450] Wed, 09 August 2006 12:48 Go to previous message
zsolt is currently offline  zsolt
Messages: 698
Registered: December 2005
Location: Budapest, Hungary
Contributor
Thanks, you are very fast Smile
Previous Topic: 607-Dev3 Errors (worked previously) [SOLVED]
Next Topic: SqlArray Accept() Enables controls
Goto Forum:
  


Current Time: Sat May 04 11:16:16 CEST 2024

Total time taken to generate the page: 0.01950 seconds