Hi AXBoy,
Welcome to the other side if you came from AX, and I hope you like it over here :-). For pages based on Temp tables, I typically take a look at page 345 for inspiration. This used to be done with some code on OnFindRecord and OnNextRecord triggers, but nowadays we have the SourceTableTemporary page property to do it. So how to do it depends on what method you used. Below I made a small sample based on a temp Location table. When you run it, it will insert locations EAST and WEST. If you go into Edit mode and then change Name, then Name 2 will be updated.
Is that the kind of thing you need to do?
Best regards
Lars
== sample code ==
OBJECT Page 99999 Temp Table Page
{
OBJECT-PROPERTIES
{
Date=30-01-20;
Time=15:47:29;
Modified=Yes;
Version List=;
}
PROPERTIES
{
SourceTable=Table14;
PageType=List;
SourceTableTemporary=Yes;
OnOpenPage=BEGIN
Code := 'EAST';
Name := 'East';
INSERT;
Code := 'WEST';
Name := 'West';
INSERT;
END;
}
CONTROLS
{
{ 1 ;0 ;Container ;
ContainerType=ContentArea }
{ 2 ;1 ;Group ;
Name=Group;
GroupType=Repeater }
{ 3 ;2 ;Field ;
SourceExpr=Code;
ImplicitType=Code10 }
{ 4 ;2 ;Field ;
SourceExpr=Name;
OnValidate=BEGIN
"Name 2" := Name + ' 2';
END;
ImplicitType=Text100 }
{ 5 ;2 ;Field ;
SourceExpr="Name 2";
ImplicitType=Text50 }
}
CODE
{
BEGIN
END.
}
}