How can you code dataset navigation connected to the report but not connected to any band in report script ?

Question: How can you code dataset navigation connected to the report but not connected to any band in report script ?

Answer:

1
2
3
4
5
6
7
8
9
10
var DS: TfrxDataSet;
begin
 DS:=Report.GetDataset('Items');
 DS.First;
 while not DS.Eof do 
 begin 
 ShowMessage(DS.Value('Part Name'));
 DS.NEXT;
 end; 
end.