HI,
Is there a way to tell Dabo to ignore a bizobj during a save()?
--
John Fabiani
On Monday 10 November 2008 03:14:42 pm johnf wrote:
> HI,
>
> Is there a way to tell Dabo to ignore a bizobj during a save()?
I mean is there a property I can set to true to force Dabo to ignore the
bizobj?
--
John Fabiani
On Monday 10 November 2008 03:22:53 pm johnf wrote:
> On Monday 10 November 2008 03:14:42 pm johnf wrote:
> > HI,
> >
> > Is there a way to tell Dabo to ignore a bizobj during a save()?
>
> I mean is there a property I can set to true to force Dabo to ignore the
> bizobj?
OK this is what I did to get what I wanted.
First the reason for a the need to get Dabo to bypass the save().
I have several grids based on a view. Can't update, insert or delete using a
view or you get an error.
On two of my grids I wanted to have the word "None" appear when the grid had
no data available. I decided I could issue a self.new() in the case when
self.rowcount==0 (no data available and issue a new() in the requery() ) and
set the defaultvalues to either a blank or the word "None". This worked well.
But of course Dabo saw it as a change and when the form issued a save().
In the beforenew() I issued a self.clearall(). This cleared the data
assoicated with the grids.
So now I instead of a empty grid I have the word "None" in at least one of the
columns the others are blank. I think it looks better than an empty grid.
--
John Fabiani
On Nov 11, 2008, at 9:54 AM, johnf wrote:
> On two of my grids I wanted to have the word "None" appear when the
> grid had
> no data available. I decided I could issue a self.new() in the case
> when
> self.rowcount==0 (no data available and issue a new() in the
> requery() ) and
> set the defaultvalues to either a blank or the word "None". This
> worked well.
> But of course Dabo saw it as a change and when the form issued a
> save().
Did you set these values in onNew()? That's what that method is for:
setting default values that don't "dirty" the record.
-- Ed Leafe
On Tuesday 11 November 2008 07:57:57 am Ed Leafe wrote:
> On Nov 11, 2008, at 9:54 AM, johnf wrote:
> > On two of my grids I wanted to have the word "None" appear when the
> > grid had
> > no data available. I decided I could issue a self.new() in the case
> > when
> > self.rowcount==0 (no data available and issue a new() in the
> > requery() ) and
> > set the defaultvalues to either a blank or the word "None". This
> > worked well.
> > But of course Dabo saw it as a change and when the form issued a
> > save().
>
> Did you set these values in onNew()? That's what that method is for:
> setting default values that don't "dirty" the record.
>
> -- Ed Leafe
That might work too.
--
John Fabiani
On Nov 11, 2008, at 10:17 AM, johnf wrote:
>> Did you set these values in onNew()? That's what that method is for:
>> setting default values that don't "dirty" the record.
>>
>> -- Ed Leafe
>
> That might work too.
Might work? If it doesn't, it's a major bug.
This is how the framework is *supposed* to work. You're wasting your
time if you try to create your own workarounds when the solution is
already built-in.
-- Ed Leafe
On Tuesday 11 November 2008 08:24:07 am Ed Leafe wrote:
> On Nov 11, 2008, at 10:17 AM, johnf wrote:
> >> Did you set these values in onNew()? That's what that method is for:
> >> setting default values that don't "dirty" the record.
> >>
> >> -- Ed Leafe
> >
> > That might work too.
>
> Might work? If it doesn't, it's a major bug.
>
> This is how the framework is *supposed* to work. You're wasting your
> time if you try to create your own workarounds when the solution is
> already built-in.
>
>
> -- Ed Leafe
OK don't get mad!
--
John Fabiani
On Nov 11, 2008, at 10:35 AM, johnf wrote:
> OK don't get mad!
I'm not mad; I just hate seeing you (or anyone) struggle more than
they have to with Dabo.
-- Ed Leafe