Hi All,
I've created a list page based on a query object. When I run the query on its own data is displayed, however when the query is published to a page, the page is opened just with column headings. Sample code below:
page 50100 myPage
{
PageType = List;
Caption = 'Page';
ApplicationArea = All;
UsageCategory = ReportsAndAnalysis;
SourceTable = "Purchase Header";
SourceTableTemporary = true;
Editable = false;
DeleteAllowed = false;
InsertAllowed = false;
layout
{
area(Content)
{
repeater(Group)
{
field(No; "No.") { ApplicationArea = all; Caption = 'Order No.'; }
}
}
}
Procedure SetPageData()
Var
Myquery: query PODetail;
Begin
while MyQuery.Read() do begin
//Init();
"No." := Myquery.No;
Insert();
end;
End;
}