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 ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I will assume you use the
RunBaseframework.For the dialog part of your question see Axapta Dialog Validation.
To show the query dialog, you must provide two methods:
and
The
queryRunmethod must return a valid non-null value.The
queryRuninstance variable is usually assigned a value in theunpackandinitParmDefaultmethods.Take a look on the
CustInterestCancelclass for a concise example.How to disable the select button: return false from
showQueryValues.