Update main Form on changing data in SubForm

Hi all, How can I update Flow and Normal Fields in Main Form after i’ve changed some data in SubForm? I could make a new menu button item and run update from it (with keyboard shortcut) but … it’s paranormal for user to press keyboard shorcut after every data change. Has anybody any idea [?]

Hi Athur Try the search function with “update sub” [;)] bye André

No Matches found

Sorry, but You can’t. The subform doesn’t know it’s a subform. /Lars

Just put a function in the subform which should be called by the OnModify, OnDelete and OnInsert triggers of the subform and which stores a “data-changed”-flag in a global variable. In the OnTimer-trigger of the main form, call this function an use its return value to determine if the data has changed. It’s of course not the kind of coding you would find in the Application Designers Guide, but I don’t think there is another solution. Alex

Have you tried it? Form sometimes crashes when opening form or inserting new record.

Yup, I tried it - no problems.

quote:


Originally posted by Arthur
No Matches found


Really? http://www.navision.net/forum/topic.asp?TOPIC_ID=5094&SearchTerms=update,sub http://www.navision.net/forum/topic.asp?TOPIC_ID=3487&SearchTerms=update,sub http://www.navision.net/forum/topic.asp?TOPIC_ID=3233&SearchTerms=update,sub http://www.navision.net/forum/topic.asp?TOPIC_ID=2943&SearchTerms=update,sub http://www.navision.net/forum/topic.asp?TOPIC_ID=2216&SearchTerms=update,sub and so on …

quote:


Originally posted by Andre DDB

quote:


Originally posted by Arthur
No Matches found


Really? http://www.navision.net/forum/topic.asp?TOPIC_ID=5094&SearchTerms=update,sub http://www.navision.net/forum/topic.asp?TOPIC_ID=3487&SearchTerms=update,sub http://www.navision.net/forum/topic.asp?TOPIC_ID=3233&SearchTerms=update,sub http://www.navision.net/forum/topic.asp?TOPIC_ID=2943&SearchTerms=update,sub http://www.navision.net/forum/topic.asp?TOPIC_ID=2216&SearchTerms=update,sub and so on …


Yes! I don’t why [V]

quote:


Originally posted by AK
Yup, I tried it - no problems.


Yes, it works [:)] Thank you !!

Or put a FlowField in the table of the subform and put that fiueld as a control in the bottom of the subform (ouside the table box). That works. /Lars