Monday, February 12, 2018

SSRS : Enable/ Disable contract class Control Based on other contract parameter control

In this blog we will see how to enable / disable contract class parameter control based on the modification of other contract class parameter. This all is going to be happened in UI Builder class
So here we go
1.       First write the Method which is responsible to perform actual functions like enabling and disabling control
In this blog I will be using Enum Control and based on its modification disabling lookup controls

Where in below image Report Type is Enum Control and WindMast and Sensor are the lookup controls
Enable/ Disable Method should be written in UI Builder class will be like
private boolean EnableControls(FormComboBoxControl _control)
{
   
   
    if(_control.valueStr() == enum2str(TK_TurbineSummary::Production))
    {
    dWindMast.enabled(false);
    dSensor.enabled(false);
    }
    else
    {
       dWindMast.enabled(true);
    dSensor.enabled(true);
    }
    return true;
}
In above piece of code I have disable the lookup controls On “Production” Report Type and make them enable on Wind Speed Report Type
Where dWindMast and dSensors are the dialog field define in Build method of UI Class like Below
Now In Post Build Method of UI Class we need to register our above created method “EnableControls”  Like below
public void postBuild()
{
 dReportType = this.bindInfo().getDialogField(this.dataContractObject(), methodStr(TK_TurbineSummaryContract, parmReportType));
            dReportType.registerOverrideMethod(methodStr(FormComboBoxControl, modified), methodStr(TK_TurbineSummaryUI, EnableControls), this);
            dShowProduction = this.bindInfo().getDialogField(this.dataContractObject(), methodStr(TK_TurbineSummaryContract, parmShowProduction));
}
When we Run Report and change the Report type Drop down value Result will be as below
Disable Controls : 
Enabling Control on drop down selection changed

Wednesday, February 7, 2018

Microsoft Dynamics AX7 vs Microsoft Dynamics 365









Microsoft Dynamics AX 7:- The new release of Dynamics AX (7) is an ERP which can be used anytime, anywhere, on any device and it comes with new development work-space.




Microsoft Dynamics 365:- Microsoft Dynamics 365 is a cloud service which is a combination of Microsoft’s current CRM and ERP cloud solutions with new role based subscriptions and purpose-built apps. Dynamics 365 includes analytics from Cortana Intelligence and Power BI, and powerful features of Office 365. Users can select apps as per their business demands, they can adopt additional capabilities with ease as all the apps work together.