can we change flowfield in the header, and then affect line

julkifli33
Member Posts: 1,092
hi all
i have a case
for example i create new flowfield in purchase header
which sum from purchase line
i have 3 items. the line amount is 100, 200 and 300
so total 600
this 600 will be showed in the header
when i change this 600 become 610, so the line become 110,200,300
can we do that?
thanks
i have a case
for example i create new flowfield in purchase header
which sum from purchase line
i have 3 items. the line amount is 100, 200 and 300
so total 600
this 600 will be showed in the header
when i change this 600 become 610, so the line become 110,200,300
can we do that?
thanks
0
Comments
-
If you use flowfield and edit the value, the new line would be created.
In your case a new line with value 10 would be created.
I suppose you should use a field on the form, which would be calculated on open form or editing subform. And proceed with trigger OnValidate of the control, you should check the modification of the value and modify the line, update the form.Sincerely yours, GRIZZLY
Follow my blog at http://x-dynamics.blogspot.com0 -
a "sum" type flowfield is editable and affect the lines on which is calculated by default.
anyway, it does not work as you like, because it creates a new line (positive or negative) instead of increasing/decreasing an existing line.
moreover, not every field is populated but just those defined in the flowfield definition. you can try with the budget functionality to see how does it work (form 113)...as i always say: "a line of code worth 1000 words"
p.s. my 2 cents: this standard functionality won't fit your business need perfectly in my opinion...please explain why you want to do this modification...
GRIZZLY was faster0 -
i need amount in 3 currencies
so i add new field amount
to avoid mistake rounding, so i want to made it editable
how to create new line automatically if we modify it?0 -
I suppose you should use a field on the form, which would be calculated on open form or editing subform. And proceed with trigger OnValidate of the control, you should check the modification of the value and modify [OR INSERT] the line, update the form.0
-
Belias wrote:a "sum" type flowfield is editable and affect the lines on which is calculated by default.
anyway, it does not work as you like, because it creates a new line (positive or negative) instead of increasing/decreasing an existing line.
moreover, not every field is populated but just those defined in the flowfield definition. you can try with the budget functionality to see how does it work (form 113)...as i always say: "a line of code worth 1000 words"
p.s. my 2 cents: this standard functionality won't fit your business need perfectly in my opinion...please explain why you want to do this modification...
GRIZZLY was faster0 -
you CAN'T get it, because there isn't: it's how nav works: if you try the budget form you'll notice that everything happens "magically". If you want to do a custom solution (which is probably better for you) you won't need a flowfield, but a normal field (or maybe even a variable is enough for you), and then follow GRIZZLY's suggestion0
-
This function is a left over from the DOS version of Navision, back then you didn't have triggers the same as we have now, so it was difficult to create this type of functionality.
You can still use it, though you almost always need to put code in the OnInsert trigger of the underlying table. But in my opinion, if you are creating something new like this, better is to code the whole thing manually, that way you have much better control.David Singleton0
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