Oct 4, 2016

(Sample) find method in X++ (X++ find 메소드 샘플)

static CustTable find(CustAccount   _custAccount,
                      boolean       _forUpdate = false)
{
    CustTable custTable;
    if (_custAccount)
    {
        if (_forUpdate)
        {
            custTable.selectForUpdate(_forUpdate);
        }
        select firstonly custTable
            index hint AccountIdx
            where custTable.AccountNum == _custAccount;
    }
    return custTable;
}

No comments:

Post a Comment