To Lock r hide range on the form we have Status method of QueryBuildRange
public void executeQuery()
{
QueryBuildDataSource qbds;
QueryBuildRange qbr;
qbds = this.query().dataSourceTable(tableNum(CMSProspectParentTable));
qbr = qbds .addRange(fieldNum(CMSProspectParentTable , ParentId));
qbr.value("anyParentId"); //two dots are considers as empty string in ax
//qbr.status(0);
//qbr.status(1);
qbr.status(2);
} The following values are possible for the status:
| Value | Staus |
|---|---|
| 0 | Status Open. |
| 1 | Status Lock. |
| 2 | Status Hide. |
No comments:
Post a Comment