0

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 ?

0

1 Answer 1

0

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.

1
  • i had read this somewhere , but forgotten .. Thanks for reminding me :) Sep 19, 2011 at 16:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.