CALCFIELDS from SubForm?

Sneakyfall
Member Posts: 2
I have a form with an Flowfield and a subform.
I want to calculate the flowfield in the form from the code in the subform!
Can anybody solve this problem ??
Sneakyfall
I want to calculate the flowfield in the form from the code in the subform!
Can anybody solve this problem ??
Sneakyfall
0
Comments
-
such as ...
Subform contains a field "Amount" and on the main-form you have a field "Total Amount" which is the sum of all subform-amounts?
As far as I know (there were lot's of discussions about this subject earlier) this is NOT possible as you cannot fire a trigger on the parent form.
Workarounds:
1) on the main form make the calcfields on the OnActivate trigger
2) Use the OnTimer event on the main form in order to have the value recalculated every x milliseconds
Marcus Fabian
m.fabian@thenet.ch
+41 79 439 78 72With best regards from Switzerland
Marcus Fabian0 -
I have one idea, but have problem too <img border="0" title="" alt="" src="images/smiles/icon_smile.gif" />
We need to backup form handle before activating subfom.
in table/rec or form creatiing var Form2147483647 that eq to CurrForm, there backuping main form handle. On modify in subform we calling update.
PROBLEM:
operator := didn't works on forms. How save form handle ???
any suggestions ?0 -
Have your total FlowField on your Sub Form Table
Then Adjust your sub form to show the total Field on the top or bottom.
Sub Form
Line Total (FlowField)on Form
Colunm/Labels (Table Box)
Line 1
Line 2
Line 3
MindSource (UK) Limited
Navision Service Partner
david@mindsource.co.uk
info@mindsource.co.uk
[This message has been edited by Dave Cox (edited 18-07-2000).]0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions