 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Nicolas GASNIER Guest
|
Posted: Thu May 04, 2006 5:15 pm Post subject: Problem with post() and null values... |
|
|
Hi there,
I have a problem when using post() on a new row in a dataset. If I have a
null value (assigned via setVariant(v) with v.setNull() or
setAssignetNull()) in my row, then the row disappear ! It has the same
effect as calling DataSet.cancel()...
This is really annoying and I really need to use NULL values for certain
fields... Does anyone have an idea on how to solve this problem ?
Greetings,
Nicolas GASNIER |
|
| Back to top |
|
 |
Kevin Dean [TeamB] Guest
|
Posted: Fri May 05, 2006 1:15 pm Post subject: Re: Problem with post() and null values... |
|
|
Nicolas GASNIER wrote:
| Quote: | Hi there,
I have a problem when using post() on a new row in a dataset. If I have a
null value (assigned via setVariant(v) with v.setNull() or
setAssignetNull()) in my row, then the row disappear ! It has the same
effect as calling DataSet.cancel()...
This is really annoying and I really need to use NULL values for certain
fields... Does anyone have an idea on how to solve this problem ?
|
I've never encountered that problem despite having several applications
with null values in fields. One possible cause is that the fields with
null values are primary key fields. I don't know how DataExpress would
handle that, but I would expect that it would have problems locating the
records for display again. Make sure that all your primary key fields (at
least those identified to DataExpress) are not null. The underlying
database should enforce this as well.
--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/
NEW WHITEPAPERS
Team Development with JBuilder and Borland Enterprise Server
Securing Borland Enterprise Server
http://www.datadevelopment.com/papers/index.html
Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|