Thursday, December 20, 2012


qbds.addRange(fieldnum(AvVendorRoleTable, avRoleType)).value(strfmt("(AvRoleType == %1) || (AvRoleType == %2)", enum2int(avRoleType::Agency), enum2int(avRoleType::Pelesen)));
   
not allow edit at form searching page:
  qbds.addRange(fieldnum(AvVendorRoleTable, avRoleType)).status(1);

Wednesday, December 5, 2012

Combine Date and Time


static void AvBry_DateTime(Args _args)
{
    utcDatetime _dt1, _dt2;
    ;

    _dt1 = DateTimeUtil::newDateTime(today(), timenow());
   
    _dt2 = DateTimeUtil::newDateTime(today() - 1, timenow());
   
    if (_dt1 < _dt2)
        info("dt1 < dt2");
    else
        info("dt1 > dt2");
}