web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

To make the dialog filed uneditable in the controller class..

(0) ShareShare
ReportReport
Posted on by 371

hello every one..have a one requirement..i create the srss report which run on the current record..when click on the report dialog a dialog box comes in that current id i can see..now the requirement is that i have to make that dialog filed uneditable..for this i donot want to create the ui builder class is there is any other way to control in the contract class..or some thing else how can i achieve this.. 

*This post is locked for comments

I have the same question (0)
  • vinaytak Profile Picture
    371 on at

    thanx @Sukrut Parab i have using this class and method but it does not make the dialog filed uneditable

  • vinaytak Profile Picture
    371 on at

    protected void prePromptModifyContract()

    {

       AMY_Itemrequisition                  AMY_Itemrequisition;

       AmyitemrequestContract               contract;

       if (this.parmArgs() && this.parmArgs().record())

       {

           contract   = this.parmReportContract().parmRdpContract() as AmyitemrequestContract;

           AMY_Itemrequisition = this.parmArgs().record();

           contract.parmItemrequest(AMY_Itemrequisition.Itemrequest);

       }

    }

    =======================================================

    public static client void main(Args _args)

    {

    AmyitemrequestControllerMain        controller = new AmyitemrequestControllerMain();

    AMY_Itemrequisition                 AMY_Itemrequisition;

    AMY_Itemrequisition = _args.record() as AMY_Itemrequisition;

    controller.parmArgs(_args);

    controller.parmReportName(ssrsReportStr(AMY_itemrequest, Item_request));  //vitual studio name and design name

    controller.parmShowDialog(true);

    controller.startOperation();

    }

  • vinaytak Profile Picture
    371 on at

    thanx @Sukrut Parab this is the table "AMY_Itemrequisition" and this is the filed " Itemrequest" on the dialog it fetch the current item req number this filed i want to disable it and there is no properties to show any allow edit some thing like that...is there is any other way.......besides ui builder

  • Verified answer
    Vilmos Kintera Profile Picture
    46,149 on at

    Using UI Builder is the trivial solution.

    You should extend the SrsReportDataContractUIBuilder class for your report, and in the example you can see how DialogField objects are retrieved. You can set the enabled property on them to false to lock them.

    http://www.artofcreation.be/2011/08/24/ax2012-sysoperation-part-3-sysoperationautomaticuibuilder/

  • vinaytak Profile Picture
    371 on at

    Thanx @Vilmos Kintera  i think it only the solution.. i though that we can control the edit and unedit through the controller class but for this i think UI builder class is mandatory

  • Martin Dráb Profile Picture
    239,399 Most Valuable Professional on at

    Sure, it's the UI builder who is responsible for building the UI; the purpose of controller classes is different. This split to several classes makes things much easier, as soon as you understand which class is responsible for what.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 39

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans