Friday 29 March 2013

Code for Select All button


write this code in From Data Source Methods

public void selectAllClosed()
{
    QueryRun                queryRun;
    RBOGiftCardTable      _rboGiftCardTable;
    ;

    ttsbegin;
    queryRun = new QueryRun(this.query());

    while (queryRun.next())
    {
        _rboGiftCardTable = queryRun.get(tablenum(RBOGiftCardTable));
        if(_rboGiftCardTable.PartialClose_ABC ==NoYes::Yes)
        {
        _rboGiftCardTable.Close_ABC = NoYes::Yes;
        _rboGiftCardTable.selectForUpdate(true);
        _rboGiftCardTable.update();
        }

    }

    ttscommit;
    RBOGiftCardTable_ds.executeQuery();
   }








No comments:

Post a Comment