Subject | RE: Re[3]: [IBO] IBO rev 2785 and default values |
---|---|
Author | Jason Wharton |
Post date | 2018-11-02T01:22:40Z |
Hi Marcin,
Yes, I've been thinking about this and I am actually taking a
look at it right now.
What if I did this:
GetServerDefaults would be changed to GetServerDefaultsMode that would have three values.
sdfOnPost (the default)
sdfAlways
sdfNever
GetServerDefaults would be changed to GetServerDefaultsMode that would have three values.
sdfOnPost (the default)
sdfAlways
sdfNever
I will
make the sdfOnPost setting have the following behavior:
Dataset goes into insert mode. No defaults are acquired from the server, yet. When the record is posted it will determine values that are still null and then plug in a value for them from the server default value, if available.
Dataset goes into insert mode. No defaults are acquired from the server, yet. When the record is posted it will determine values that are still null and then plug in a value for them from the server default value, if available.
The
other two modes are self-explanatory.
Therefore, for
you, the legacy behavior you wanted will still be there and the desirable
aspects will also still happen as well.
What
do you think?
Jason
Wharton
From: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com]
Sent: Wednesday, October 31, 2018 10:40 AM
To: IBObjects@yahoogroups.com
Subject: Re[3]: [IBO] IBO rev 2785 and default values
Hi Jason
Is it possible that we can get back to below
discussion?
I'd like to know if you're going to modify the way IBO treats
defaults
from the server?
Thx
Marcin
------ Wiadomość
oryginalna ------
Od: "Marcin Bury"
<marcin.bury@...>
Do: IBObjects@yahoogroups.com
Data:
07.08.2018 21:15:20
Temat: Re[2]: [IBO] IBO rev 2785 and default
values
>Hello Jasonresponse.
>
>First of all - thank you for prompt
>good thing. There
>Getting default values from the server is generally
>is nice feature 'Import server defaults' that fills'DefaultValues'
>property.GetServerDefaults - which is by deafault ( ) set
>Then there is property
>to false.would like to have control on application side if a query utilises
>I
>server defaults or not. Isn't it the purpose of GetServerDefaultsNUMERIC(15,2)
>property?
>For currency fields I always use domain defined as
>default 0. This default is actually to cover my lazy backin case of
>... In this particular example null value means somethingdifferent
>than 0 value. Quite often I use following scenario: whileadding new
>record such a field is intentionally left blank, if the userwants to
>put there some explicit value - he is more than welcome - 0 isone of
>possible explicit values. If while saving the record this fieldis
>still bank, some predefined calculations are performed and theirresult
>is written to this field.my second case - what was your intention to
>
>Then I would get back to
>get defaults forparameters?
>simply sometimes
>Jason, I always appreciate and admire your hard work,
>don't follow you intentionsregards
>
>Best
>Marcin------
>
>------ Wiadomość oryginalna
>Od: "'Jason Wharton' jason@... [IBObjects]"IBObjects@yahoogroups.com
><IBObjects@yahoogroups.com>
>Do:
>Data: 07.08.2018 20:37:09[IBO] IBO rev 2785 and default values
>Temat: RE:
>intent was for these changes to be an improvement. IBO's core
>>
>>
>>Marcin,
>>
>>My
>>philosophy is to have all of the aspects possible from the server bea
>>part of things on the client. I want server declared defaultvalues
>>to be utilized on the client. Perhaps you could explain to mewhy you
>>want a NULL default rather than the server declared default.I
>>probably just don't understand why this would cause a probleminstead
>>of beingappreciated.
>>Wharton
>>Thanks,
>>Jason
>>www.ibobjects.com[mailto:IBObjects@yahoogroups.com]
>>
>>
>>----------------------------------------------------------
>>From:IBObjects@yahoogroups.com
>>Sent: Tuesday, August 07, 20181:51 AM
>>To:IBObjects@yahoogroups.comrev 2785 and default values
>>Subject: [IBO] IBO
>>Jason
>>
>>Hello
>>columns' default
>>It seems that you modified the way IBO works with
>>values. And it also seems that you made a step toofar .
>>If a column is based of domain with default value this defaultvalue
>>iskeeping null value),
>>taken when adding new record (previously IBO was
>>but what is more annoying that IBO sets thedefault value for
>>parameters.that has and integer parameter based on
>>I have a stored procedure
>>domaindefault value. Procedure is prepared to accept null value in
>>with 0 as
>>thisparameter and 'behave' accordingly. What was my surprise when IBO
>>set0 for this parameter 'without asking'
>>reconsider your changes?
>>So, could you
>>[Non-text portions of this message have been removed]
>>Thanks
>>Marcin
>>
>>
>>
>>
>>