Flow field question

pvar
Member Posts: 157
Hi,
I know flowfields are not part of the table in which you define them but I have a strange situation.
We have a flow filed in service item table and during sales order posting codeunit 5920 assigns a value from the sales header table to that flow field(I saw the code) even though the flow filed is defined as a look up to another table where there is no data, bad design I agree.
When I look at the service item card, I see the value for the flow field but if I do a CALCFEILDS in the code I get nothing because the lookup returns null.
So my question is where exactly the flow field data is physically stored that I see on the card? We have Navision 3.6 with sql server option.
Thanks for any help.
I know flowfields are not part of the table in which you define them but I have a strange situation.
We have a flow filed in service item table and during sales order posting codeunit 5920 assigns a value from the sales header table to that flow field(I saw the code) even though the flow filed is defined as a look up to another table where there is no data, bad design I agree.
When I look at the service item card, I see the value for the flow field but if I do a CALCFEILDS in the code I get nothing because the lookup returns null.
So my question is where exactly the flow field data is physically stored that I see on the card? We have Navision 3.6 with sql server option.
Thanks for any help.
0
Comments
-
you make CALCFIELDS before or after getting record?
you should make CALCFIELDS for each record you get.
CALCFIELDS is done automatically you are using has a direct source expression in forms0 -
It's not stored in the flowfield, flowfields are calculated values that are retrieved from other tables. Entering a value in the flowfield enters a record into the table where the sumindexfield is defined for a value that makes the flowfield value true. So if the CALCSUM of the sumindexfield is 10, and you enter 15 into the flowfield, the system will add a record with the value 5 to the table with the sumindexfield. This is really tricky stuff, so you have to test it properly.0
-
DenSter wrote:It's not stored in the flowfield, flowfields are calculated values that are retrieved from other tables. Entering a value in the flowfield enters a record into the table where the sumindexfield is defined for a value that makes the flowfield value true. So if the CALCSUM of the sumindexfield is 10, and you enter 15 into the flowfield, the system will add a record with the value 5 to the table with the sumindexfield. This is really tricky stuff, so you have to test it properly.
A good example to look at is the Budget Tables, as you enter a value in the flowfield the child table records are created!
As to the tricky stuff, sure is, if you were to make the Customer balance editable and entered zero, you would have problems!Analyst Developer with over 17 years Navision, Contract Status - Busy
Mobile: +44(0)7854 842801
Email: david.cox@adeptris.com
Twitter: https://twitter.com/Adeptris
Website: http://www.adeptris.com0
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