Index
2011-11-29 17:44 – John Fabiani : [dabo-users] fastest way to determine if there's a change
2011-11-29 17:59 – Paul McNett : Re: [dabo-users] fastest way to determine if there's a change
2011-11-29 18:31 – John Fabiani : Re: [dabo-users] fastest way to determine if there's a change
2011-11-29 19:00 – Paul McNett : Re: [dabo-users] fastest way to determine if there's a change
2011-11-29 20:19 – Ed Leafe : Re: [dabo-users] fastest way to determine if there's a change
2011-11-29 20:25 – Paul McNett : Re: [dabo-users] fastest way to determine if there's a change
2011-11-29 20:38 – John Fabiani : Re: [dabo-users] fastest way to determine if there's a change
2011-11-30 14:38 – John Fabiani : Re: [dabo-users] fastest way to determine if there's a change
2011-11-30 14:40 – Paul McNett : Re: [dabo-users] fastest way to determine if there's a change
2011-11-30 14:48 – John Fabiani : Re: [dabo-users] fastest way to determine if there's a change
Back to top
[dabo-users] fastest way to determine if there's a change

Author: John Fabiani

Posted: 2011-11-29 17:44:52   Link

Hi,

Paul just posted 6991 getChangeStatus()

What if I need to know if any biz object has changed?

What would be the fastest way to determine if there were a change.

Johnf

_______________________________________________

Post Messages to: Dabo-users@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Searchable Archives: http://leafe.com/archives/search/dabo-users

This message: http://leafe.com/archives/byMID/4918955.ury4y6IOQI@linux-12

©2011 John Fabiani
Back to top
Re: [dabo-users] fastest way to determine if there's a change

Author: Paul McNett

Posted: 2011-11-29 17:59:14   Link

On 11/29/11 2:44 PM, John Fabiani wrote:

> Paul just posted 6991 getChangeStatus()

>

> What if I need to know if any biz object has changed?

> What would be the fastest way to determine if there were a change.

biz.isAnyChanged(), or clarify what you mean.

Paul

_______________________________________________

Post Messages to: Dabo-users@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Searchable Archives: http://leafe.com/archives/search/dabo-users

This message: http://leafe.com/archives/byMID/4ED563C2.40703@ulmcnett.com

©2011 Paul McNett
Back to top
Re: [dabo-users] fastest way to determine if there's a change

Author: John Fabiani

Posted: 2011-11-29 18:31:41   Link

On Tuesday, November 29, 2011 02:59:14 PM Paul McNett wrote:

> On 11/29/11 2:44 PM, John Fabiani wrote:

> > Paul just posted 6991 getChangeStatus()

> >

> > What if I need to know if any biz object has changed?

> > What would be the fastest way to determine if there were a change.

>

> biz.isAnyChanged(), or clarify what you mean.

>

> Paul

The problem with isAnyChanged is it requires a specific bizobject. I want to

know if any bizobject has changed. More like self.Form.isAnyChanged()

Johnf

_______________________________________________

Post Messages to: Dabo-users@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Searchable Archives: http://leafe.com/archives/search/dabo-users

This message: http://leafe.com/archives/byMID/1525945.3A8Iur75LS@linux-12

©2011 John Fabiani
Back to top
Re: [dabo-users] fastest way to determine if there's a change

Author: Paul McNett

Posted: 2011-11-29 19:00:42   Link

On 11/29/11 3:31 PM, John Fabiani wrote:

> The problem with isAnyChanged is it requires a specific bizobject. I want to

> know if any bizobject has changed. More like self.Form.isAnyChanged()

class MyForm(...):

def isAnyChanged(self):

for biz in self.bizobjs: ## you need to manually put your bizobjs in here

if biz.isAnyChanged():

return True

return False

Paul

_______________________________________________

Post Messages to: Dabo-users@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Searchable Archives: http://leafe.com/archives/search/dabo-users

This message: http://leafe.com/archives/byMID/4ED5722A.9000207@ulmcnett.com

©2011 Paul McNett
Back to top
Re: [dabo-users] fastest way to determine if there's a change

Author: Ed Leafe

Posted: 2011-11-29 20:19:08   Link

On Nov 29, 2011, at 6:00 PM, Paul McNett wrote:

> class MyForm(...):

> def isAnyChanged(self):

> for biz in self.bizobjs: ## you need to manually put your bizobjs in here

> if biz.isAnyChanged():

> return True

> return False

Even simpler:

class MyForm(...):

def isAnyChanged(self):

return any([biz.isAnyChanged() for biz in self.bizobjs.values()])

-- Ed Leafe

_______________________________________________

Post Messages to: Dabo-users@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Searchable Archives: http://leafe.com/archives/search/dabo-users

This message: http://leafe.com/archives/byMID/D6C16FC1-7CF9-445F-957A-66D3159939B5@leafe.com

©2011 Ed Leafe
Back to top
Re: [dabo-users] fastest way to determine if there's a change

Author: Paul McNett

Posted: 2011-11-29 20:25:07   Link

On 11/29/11 5:19 PM, Ed Leafe wrote:

> return any([biz.isAnyChanged() for biz in self.bizobjs.values()])

Excellent; I guess I never knew about that function because I don't recall ever using it!

Paul

_______________________________________________

Post Messages to: Dabo-users@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Searchable Archives: http://leafe.com/archives/search/dabo-users

This message: http://leafe.com/archives/byMID/4ED585F3.6010406@ulmcnett.com

©2011 Paul McNett
Back to top
Re: [dabo-users] fastest way to determine if there's a change

Author: John Fabiani

Posted: 2011-11-29 20:38:40   Link

On Tuesday, November 29, 2011 07:19:08 PM Ed Leafe wrote:

> On Nov 29, 2011, at 6:00 PM, Paul McNett wrote:

> > class MyForm(...):

> > def isAnyChanged(self):

> > for biz in self.bizobjs: ## you need to manually put your

> > bizobjs in here>

> > if biz.isAnyChanged():

> > return True

> >

> > return False

>

> Even simpler:

>

> class MyForm(...):

> def isAnyChanged(self):

> return any([biz.isAnyChanged() for biz in self.bizobjs.values()])

>

>

> -- Ed Leafe

thanks that looks like it could work.

Johnf

_______________________________________________

Post Messages to: Dabo-users@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Searchable Archives: http://leafe.com/archives/search/dabo-users

This message: http://leafe.com/archives/byMID/1401715.J1ZknAjJhy@linux-12

©2011 John Fabiani
Back to top
Re: [dabo-users] fastest way to determine if there's a change

Author: John Fabiani

Posted: 2011-11-30 14:38:10   Link

On Tuesday, November 29, 2011 07:19:08 PM Ed Leafe wrote:

> On Nov 29, 2011, at 6:00 PM, Paul McNett wrote:

> > class MyForm(...):

> > def isAnyChanged(self):

> > for biz in self.bizobjs: ## you need to manually put your

> > bizobjs in here>

> > if biz.isAnyChanged():

> > return True

> >

> > return False

>

> Even simpler:

>

> class MyForm(...):

> def isAnyChanged(self):

> return any([biz.isAnyChanged() for biz in self.bizobjs.values()])

>

>

> -- Ed Leafe

Is it possible that there could a timing issue using the above method? It

seems that return value is not always true after editing a value on the form.

Johnf

_______________________________________________

Post Messages to: Dabo-users@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Searchable Archives: http://leafe.com/archives/search/dabo-users

This message: http://leafe.com/archives/byMID/6648763.rrxSFe4ODC@linux-12

©2011 John Fabiani
Back to top
Re: [dabo-users] fastest way to determine if there's a change

Author: Paul McNett

Posted: 2011-11-30 14:40:22   Link

On 11/30/11 11:38 AM, John Fabiani wrote:

> Is it possible that there could a timing issue using the above method? It

> seems that return value is not always true after editing a value on the form.

Make sure focus has left the control, or call form.activeControlValid() first.

Paul

_______________________________________________

Post Messages to: Dabo-users@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Searchable Archives: http://leafe.com/archives/search/dabo-users

This message: http://leafe.com/archives/byMID/4ED686A6.7030509@ulmcnett.com

©2011 Paul McNett
Back to top
Re: [dabo-users] fastest way to determine if there's a change

Author: John Fabiani

Posted: 2011-11-30 14:48:49   Link

On Wednesday, November 30, 2011 11:40:22 AM Paul McNett wrote:

> On 11/30/11 11:38 AM, John Fabiani wrote:

> > Is it possible that there could a timing issue using the above method?

> > It seems that return value is not always true after editing a value on

> > the form.

> Make sure focus has left the control, or call form.activeControlValid()

> first.

>

> Paul

Yes that worked - thanks

Johnf

_______________________________________________

Post Messages to: Dabo-users@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Searchable Archives: http://leafe.com/archives/search/dabo-users

This message: http://leafe.com/archives/byMID/1816500.d8TtGYjErP@linux-12

©2011 John Fabiani