Hi guys,
we all know about this little feature when you create a FlowField of Type Sum. It creates a new line in the "source table". The difference between the new value and the old value is entered in your "source field". All other fields are filled like defined in your Flow Field or by the default value of the field. But what to do when I want some fields to be filled by another value? Is it possible in any way to turn off the default behaviour of the Flow Field and let it still be editable?
"Money is likewise the greatest chance and the greatest scourge of mankind."
0
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
RIS Plus, LLC
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
I would personally not even go there.
RIS Plus, LLC
Yeah, I see what you mean. Kamil catched exactly my point and I also thought like you, Daniel, it is possibly better to do not change the default behaviour. I agree, one workaround is to disable the field and use a TextBox Control on every form where you want to use it. But I don't like this way for several reasons, but mainly because it is attached to a form.
InitValue isn't a solution in my opinion. It could be one in special situations when it's possible to use those init values any time. But maybe when you enter a new record by another way you don't want to use those init values.
There is another solution, very similar to the InitValue solution. Validating the FlowField will validate all the fields that are given by the filter in CalcFormula. Thus it's possible to implement some logic in the OnValidate-Trigger of those fields. Take a look at Table Resource Field Capacity. When you enter a value into Capacity the Resource Group of the Resource is filled automatically. But here you have the same problem, what if you don't want the fields to be filled like this every time? And in some cases in OnValidates of the "Source Table" it isn't possible to calculate/find the right value for each field.
So, which way would you go? Or is there even another possible way?
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.