开发者

Dialog selection Criteria

开发者 https://www.devze.com 2023-04-05 16:17 出处:网络
When we create a dialog, how do we get the selection criteria for the record (Select button) and how do we disable the select button on the Dialog ?开发者_高级运维I will assume you use the RunBase fra

When we create a dialog, how do we get the selection criteria for the record (Select button) and how do we disable the select button on the Dialog ?开发者_高级运维


I will assume you use the RunBase framework.

For the dialog part of your question see Axapta Dialog Validation.

To show the query dialog, you must provide two methods:

public boolean showQueryValues()
{
    return true;
}

and

public QueryRun queryRun()
{
    return queryRun;
}

The queryRun method must return a valid non-null value.

The queryRun instance variable is usually assigned a value in the unpack and initParmDefault methods.

Take a look on the CustInterestCancel class for a concise example.

How to disable the select button: return false from showQueryValues.

0

精彩评论

暂无评论...
验证码 换一张
取 消