I have a processing only report. Two indent dataset: item, Item Ledger Entry.
In "Item Ledger Entry" OnPreDataItem trigger there is three SETRANGE:
SETRANGE(Exported,FALSE);
SETRANGE(Exportable,TRUE);
SETRANGE("Posting Date",DateFilter);
In "Item Ledger Entry" OnAfterGetRecord :
Exported := TRUE
MODIFY;
So my target is mark exported every record in "item ledger entry" for each item when meet filter.
But strange think is that Nav after loop first record in "Item ledger entry" mark it but skip other record of same item
Seems MODIFY instruction change all records of specific item.
If remove Exported := TRUE instruction all work and it loop all records
Why this?
0
Comments
Just a happy frood who knows where his towel is
I want to change field exported for every record..
](*,)
Why do you need Item Dataitem here?
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Just a happy frood who knows where his towel is
In "Item Ledger Entry" OnPreDataItem trigger there is three SETRANGE:
In "Item Ledger Entry" OnAfterGetRecord :
http://ssdynamics.co.in
Dataitem : Item
OnAfterGetRecord Trigger
http://ssdynamics.co.in
The question is why do you use the data item instead of variable ?
Just a happy frood who knows where his towel is
Yes exactly if the purpose is only to modify record then why don't you use record var instead of dataitem.