Axaptapedia is now maintained by AgileCadence For more information please click here.
Fetch
From Axaptapedia
Fetch is a method used in dialogs that is overwritten, if the user wants more control over the output
<xpp>
public boolean fetch()
{
Query q; QueryRun qr; ;
// Get query from the dialog qr = new QueryRun(this);
if ((qr.prompt()) && (element.prompt()))
{
while (qr.Next())
{
InventTable = qr.get(tablenum(InventTable));
// Do something, e.g.:
// element.send(InventTable);
// element.executesection(sectionname);
}
}
else
{
// User cancel
return false;
}
return true;
} </xpp>