I'm stumped!!
I want to mark records (or setselectionfilter) on a form then copy the marks or selection filter (and other filters) to another instance of the same table.
How can I do this?
CurrForm.setselectionFilter(NewVariableOfTypeRecordBasedOnTheSameTable); <- this copies all blue (if no one is blue then the line where the courser is) makrd lines to the NewVariableOfTypeRecordBasedOnTheSameTable. (CurrForm.setselectionFilter(SalesHeader);)
Now all blue marked recs are stored into the NewVariableOfTypeRecordBasedOnTheSameTable Recordinstance.
If you mark the records in the listform (Ctrl+F1) you use the following:
markedonly(true);
if find('-') then begin
repeat
MyTempTABLEBasedOnTheSameTableLikeTheForm.init;
MyTempTABLEBasedOnTheSameTableLikeTheForm := Rec;
MyTempTABLEBasedOnTheSameTableLikeTheForm.insert;
until next = 0;
end;
markedonly(false);
Now all marked (Ctrl+F1) Recs are stored in the Temporary Table.
Comments
Now all blue marked recs are stored into the NewVariableOfTypeRecordBasedOnTheSameTable Recordinstance.
If you mark the records in the listform (Ctrl+F1) you use the following:
Now all marked (Ctrl+F1) Recs are stored in the Temporary Table.
regards
Can I just copy the marks not the whole record?
Like copyfilter except for marks.
Steve
After that just remove the filters from the new instance.