Fetch

From Axaptapedia

Fetch is a method used i dialogs that is overwritten, if the user wants more control over the output


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;
}