Subform vs. Parent form

DakkonDakkon Member Posts: 192
edited 2004-12-25 in Navision Attain
Does anyone know a way to force a parent form to update all displayed flowfields on screen from within a function/trigger of the subform?
My problem is basically that I'm displaying a sum flowfield in my header that is based on the subform lines and I need this figure to update every time I update or insert a new subform line.
Anyone have any ideas?

(Happy Holidays!)
Thad Ryker
I traded my sanity for a railgun :mrgreen:

Comments

  • eromeineromein Member Posts: 589
    Sure... But it aint nice!

    Activate the OnTimer trigger on the main form. Code a CURRFORM.UPDATE (could be CURRFORM.UPDATE(False)) in this trigger. Be sure you only do this update if there is something to update to get a better performance!

    Check http://www.mibuso.com/dlinfo.asp?FileID=290 and http://www.mibuso.com/dlinfo.asp?FileID=321 of samples.
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."
  • janpieterjanpieter Member Posts: 298
    There are some other tricks to achieve this which are a bit nicer (but not nice). You can find it somewhere in the "Tips and tricks" section of this forum.

    This subject is discussed a lot.
    In a world without Borders or Fences, who needs Windows and Gates?
  • DakkonDakkon Member Posts: 192
    Thanks, I'll check for those tips now.
    I tried using the timer idea already but it creates a new problem even though it solves my first one. The problem being that if it updates every half or full second (which is what I'd need) the subform keeps refreshing and makes it extremely frustrating for anyone trying to enter data in it.
    It's almost a catch 22 scenario:)
    Thad Ryker
    I traded my sanity for a railgun :mrgreen:
Sign In or Register to comment.