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
0
Comments
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.
Follow my blog at http://x-dynamics.blogspot.com
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 faster
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
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?
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
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.