I just created my first custom table and extended another table.
I am trying to link them together but my look up function doesn't work.
Header table is custom table Projects and Lines tables is the existing User Tasks Table.
I added a Look up field to the User Task Table Project and want to look up from the list of the Projects and populate once chosen.
I am able to see the field, pick the project from the list but when the value is returned it is not visible on the task field.
What am I doing wrong.
pageextension 50129 UserTaskCardPageExtension extends /User Task Card/
{
layout
{
addafter(General)
{
group(/Dalla Terra/)
{
field(/Project/; rec.Project)
{
Caption = 'Project';
ApplicationArea = All;
trigger OnLookup(var Text: Text): Boolean
var
ItemRec: Record /Project;/;
begin
ItemRec.Reset();
if Page.RunModal(Page::Project, ItemRec) = Action::LookupOK then
/Project Name/ := ItemRec./Project Name/;
end;
}
field(/category/; Rec.Category)
{
ApplicationArea = All;
}
field(/Module/; Rec.Module)
{
ApplicationArea = All;
}
}
}
}
actions
{
// Add changes to page actions here
}
var
myInt: Integer;
/Project Name/: Text[100];