Monday, March 30, 2015

Dexterity Template - Temp record ID change (what populates when a lookup returns)

{--------------------------------------------------------------------------------
Re-open the window in case it is behind a lookup;
--------------------------------------------------------------------------------}
open window RecordWindow;

{--------------------------------------------------------------------------------
Abort if the selected record is the record currently displayed;
--------------------------------------------------------------------------------}
if '(L) Temp Record ID' = RecordID then
abort script;
end if;
{--------------------------------------------------------------------------------
Handle changes, if any, to the present record;
--------------------------------------------------------------------------------}
if changed(window RecordWindow) then
run script 'Handle Changes';
if not 'Handle Changes' then
RecordID of table RecordTable = RecordID;
abort script;
end if;
else
release table RecordTable;
end if;

{--------------------------------------------------------------------------------
Display the selected record;
--------------------------------------------------------------------------------}
RecordID = '(L) Temp Record ID';
run script 'Display Existing Record';

No comments:

Post a Comment

There was an error in this gadget