Showing posts with label Dialog. Show all posts
Showing posts with label Dialog. Show all posts

User Interface Builder Class

 


What Is User Interface Builder Class


The User Interface Builder Class is the layout parameter dialog box that opens when a report is running in the Microsoft Dynamics AX Or Finance & Operations. 

The User Interface also adds customization and additional fields for the dialog, You can also use this class to write the lookup and validation on the report dialog.


 UI Builder Class scenarios used are:

  1. Group the dialog fields
  2. Override the dialog field events
  3. For adding customized lookup dialog field
  4. To bind the dialog fields with contract parameters
  5. For changing layouts in dialog
  6. Adding more custom controls in the dialog

How to disable/hide report/Batch Job parameter on Dialogue

 

How to disable/hide report/Batch Job parameter on Dialogue




To hide the parameter from report/job dialogue, use the below annotation on the param method of the Report/Job data contract class.


[SysOperationControlVisibilityAttribute(false)].

Sample

Parameter will visible:

    [DataMemberAttribute,

    SysOperationLabelAttribute(literalStr("Task Size")),

    SysOperationGroupMemberAttribute("ParameterGroup"),

    SysOperationDisplayOrderAttribute("3")]

    public AD_BatchTaskSize parmBatchTaskSize(AD_BatchTaskSize _batchTaskSize = batchTaskSize)

    {

        batchTaskSize = _batchTaskSize;

        return batchTaskSize;

    }

Parameter will not visible:

    [DataMemberAttribute,

    SysOperationControlVisibilityAttribute(false)]

    public RecId parmFromRecId(RecId _fromRecId = fromRecId)

    {

        fromRecId = _fromRecId;

        return fromRecId;

    }

Virtual Fields Vs Computed Fields

  Virtual Field: A virtual field in D365FO is a field that doesn't have a direct representation in the database. It's a field that y...