Index
2008-11-10 18:14johnf : [dabo-users] bizobj that are read only
2008-11-10 18:22johnf : Re: [dabo-users] bizobj that are read only
2008-11-11 10:54johnf : Re: [dabo-users] bizobj that are read only
2008-11-11 10:57Ed Leafe : Re: [dabo-users] bizobj that are read only
2008-11-11 11:17johnf : Re: [dabo-users] bizobj that are read only
2008-11-11 11:24Ed Leafe : Re: [dabo-users] bizobj that are read only
2008-11-11 11:35johnf : Re: [dabo-users] bizobj that are read only
2008-11-11 12:10Ed Leafe : Re: [dabo-users] bizobj that are read only
Back to top
[dabo-users] bizobj that are read only

Author: johnf

Posted: 2008-11-10 18:14:42   Link

HI,

Is there a way to tell Dabo to ignore a bizobj during a save()?

--

John Fabiani

©2008 johnf
Back to top
Re: [dabo-users] bizobj that are read only

Author: johnf

Posted: 2008-11-10 18:22:53   Link

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

©2008 johnf
Back to top
Re: [dabo-users] bizobj that are read only

Author: johnf

Posted: 2008-11-11 10:54:06   Link

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

©2008 johnf
Back to top
Re: [dabo-users] bizobj that are read only

Author: Ed Leafe

Posted: 2008-11-11 10:57:57   Link

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

©2008 Ed Leafe
Back to top
Re: [dabo-users] bizobj that are read only

Author: johnf

Posted: 2008-11-11 11:17:28   Link

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

©2008 johnf
Back to top
Re: [dabo-users] bizobj that are read only

Author: Ed Leafe

Posted: 2008-11-11 11:24:07   Link

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

©2008 Ed Leafe
Back to top
Re: [dabo-users] bizobj that are read only

Author: johnf

Posted: 2008-11-11 11:35:29   Link

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

©2008 johnf
Back to top
Re: [dabo-users] bizobj that are read only

Author: Ed Leafe

Posted: 2008-11-11 12:10:02   Link

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

©2008 Ed Leafe