SBS Group’s AXIO Global Core Financial Solution Among First Microsoft Dynamics Solutions Available on Azure Marketplace

Friends,

I am very glad to share the news that SBS Group, a leading technology solutions and services firm, specializing in extending the Microsoft Dynamics platform with functional and industry specific solutions, announced today the availability AXIO Global Core Financials.

For more information, click here

To know more about AX Core and it’s offerings, click here.

Happy Dax6ng,

Removing a role to all or multiple users using X++ Code [Dynamics AX 2012]

Friends,

Below is the code snippet to remove a role to all or multiple users using X++ Code. In the below code, I have tried removing System administrator role to all the users except Admin and me. Please test the code before running it in any environments.

static void SR_RemoveRoleAccessToUsers(Args _args)

{

    SecurityRole        role;

    SecurityUserRole    userRole;

    UserInfo            userInfo;

 

    void removeFromSelectedUser(UserId  _userId, RecId  _recId)

    {

        fieldName                           userId;

        SysSecTreeRoles                     roleTree;

        SecurityUserRole                    securityUserRole;

        OMUserRoleOrganization              org;

        SecurityUserRoleCondition           condition;

        SecuritySegregationOfDutiesConflict conflict;

        RecId                               recId;

 

        userId  = _userId;

        recId   = _recId;

 

        ttsbegin;

 

        delete_from condition

        exists join securityUserRole

        where condition.SecurityUserRole == securityUserRole.RecId && securityUserRole.User == userId && securityUserRole.SecurityRole == recId;

 

        //<GEEEE>

        while select OMInternalOrganization, SecurityRole from org where org.User == userId && org.SecurityRole == recid

        {

            EePersonalDataAccessLogging::logUserRoleChange(org.SecurityRole, org.omInternalOrganization, userid, AddRemove::Remove);

        }

        //</GEEEE>

 

        delete_from org where org.User == userId && org.SecurityRole == recId;

 

        delete_from conflict where conflict.User == userId && ((conflict.ExistingRole == recId) || (conflict.NewRole == recId));

 

        //<GEEEE>

        EePersonalDataAccessLogging::logUserRoleChange(recId, 0, userId, AddRemove::Remove);

        //</GEEEE>

 

        delete_from securityUserRole where securityUserRole.User == userId && securityUserRole.SecurityRole == recId;

 

        ttscommit;

 

    }

 

    select role where role.Name == "System administrator"; // provide the role name to remove here   

   while select userInfo where (userInfo.id != ‘Admin’

        && userInfo.id != ‘sgirigari’) // ensure that you have admin role to run this job

    {

           removeFromSelectedUser(userInfo.id, role.RecId);

    }

    info("Removal process of role is complete.");

}

Please be careful in the above while select statement as you need to ensure that the job that is run by a developer should be added in the where clause (userInfo.Id != “Sgirigari”)to ensure that the job runs successfully as we are removing the System Administrator role. For any other role, you can ignore this where clause.

Happy dax6ng,

Sreenath Reddy

Do you want Dynamics AX to speak out messages for you ?(Text to speech) – Dynamics AX 2012 @ X++

Hi friends,

I was just trying my hands on text to speech library and developed a small class which will help to speak out the messages easily for you. This post will explain quickly how to convert text to speech using X++ by using System.Speech Library and you can explore from there Smile 

First, let’s add this library to our references Node. Go to AOT>> References >> Add references

clip_image001

Search for System.Speech in the list of assemblies, select it and click on Ok button

clip_image002

Now, let’s create a simple class by name SRSpeechSynthesizer

class SRSpeechSynthesizer

{

}

 

Add a new static method called speakAsync as shown below

 

public static void speakAsync(str _textToSpeak)

{

    System.Speech.Synthesis.SpeechSynthesizer synthesizer = new System.Speech.Synthesis.SpeechSynthesizer();

 

    synthesizer.set_Volume(100);  // 0…100

    synthesizer.set_Rate(-2);     // -10…10

 

    // Synchronous

    //you cannot perform any other function in your Windows Form until the "reader" object has completed the speech.

    //synthesizer.Speak(_textToSpeak);

 

    // Asynchronous

    synthesizer.SpeakAsync(_textToSpeak);

}

 

Now, you can use this class and method wherever you want.

 

For the sake of demo, I have used it in info class >> add method. The reason why I have added here is to speak out all the messages that get added during the any process. I know it’s annoying if there are many messages that gets added to the Infolog stack. (But choice is yours clip_image003 )

 

You can customize further by parameterizing this option specific to users (in the user options form).

Add the below lines of code to the add method.

if (session.clientKind() == ClientType::Client)

{

    SRSpeechSynthesizer::SpeakAsync(_txt);

}

clip_image004

 

That’s it. You can explore more on the System.Speech Library.

When you create a new SpeechSynthesizer object, it uses the default system voice. To configure the SpeechSynthesizer to use one of the installed speech synthesis (text-to-speech) voices, use the SelectVoice or SelectVoiceByHints method. To get information about which voices are installed, use the GetInstalledVoices method and the VoiceInfo class. (msdn). Also, ensure that audio device is installed and working fine.

 

Happy Dax6ng,

image

  

Block/Remove Personalization option on the form using X++ (Dynamics AX 2012)

Friends,

We all know that the users are provided with many options to personalize forms in Microsoft Dynamics AX . These include moving controls, setting properties on controls, and adding extra fields to forms.

We can block/remove the personalization option on a particular form using x++ code. To do this, override the init() method of the form/element and add the below code after super(); as shown below

element.blockPersonalization(true); will help to remove this option

image

For more information on enabling/disabling the personalization on the forms : Here is the link

Happy Dax6ng,

Sreenath Reddy

SBS Group Acquires Microsoft Dynamics® AX Practice from Solugenix Corporation

Friends,

SBS Group, a leading technology consulting firm integrating business management solutions, announced today the acquisition of Solugenix’s Microsoft Dynamics® AX Practice. Solugenix has a proven track record of successful implementations and support of Microsoft Dynamics AX across multiple industries. Solugenix will continue to provide Application Lifecycle Management, Enterprise Business Support and Professional Staffing solutions not related to Dynamics AX.

For more information: Click here.

Happy Dax6ng,

Sreenath Reddy

image

How to display/show the inventory dimensions as parameters on SSRS reports [Dynamics AX 2012, X++]

Friends,

Today, I am going to help you how to display the inventory dimensions [product dimensions, storage dimensions, Tracking dimensions] on SSRS reports as parameters. Not clear? Please see the Report parameters screen below.

All the inventory dimensions are available to be selected on report parameters below. You will see this view in almost all inventory reports and other module reports.

image

Well, Let me explain how to achieve this and retrieve the values in the data provider class

Its very simple, we need to make use of the contract class for this inventory dimensions view.

Standard has got a InventDimViewContract class with all the parm inventory dimensions methods and we can use these methods later in the DP classes for the selected inventory dimensions by the user on the report parameters screen.

Create an Object for InventDimViewContract in your contract class as shown below [Please note: I am using ProdPickListContract] as an example below

image

Then add a new parm method to the contract as shown below.

[DataMemberAttribute(‘InventDimViewContract’)]

public InventDimViewContract parmInventDimViewContract(InventDimViewContract _inventDimViewContract = inventDimViewContract)

{    

    inventDimViewContract = _inventDimViewContract;

    return inventDimViewContract;

}

That’s it, by adding the above discussed,we will get the inventory dimensions on the parameters screen.

Now, the question is how do we get the selected dimensions from the user. Its simple again.

In your data provider class, mainly in processReport method, get the object of the contract class and call the parmInventDimViewContract() method, this object will help you to retrieve the inventory dimensions selected by the user by using parm methods in it. [Example : ParmViewConfigId(), parmViewInventBatchId() etc]. Please refer to screen shot below.

image

You can use these selected inventory dimensions values based on your requirements. The above screen shot is just an example of retrieving the values.

 

Happy Dax6ng,

 

Sreenath Reddy

 

image

 

 

Upcoming: Microsoft Dynamics AX Solutions Excellence certification program that will help your company and employees show their level of AX expertise [H2 FY14]

Friends,

Microsoft Dynamics AX Solutions Excellence Certification Program has been designed to enable Microsoft Dynamics partners and individuals to achieve the highest level of certification on Microsoft Dynamics AX 2012. The Microsoft Dynamics AX Solutions Excellence Certification Program is aimed to help you:

  • Distinguish your partner organization and employees from the competition, and show your level of expertise to customers.
  • Demonstrate your company’s ability to provide proven, high-quality Microsoft Dynamics AX implementations.
  • Provide your employees with a learning path to attain the highest level of Microsoft Dynamics AX certification.
  • Provide your customers with best-in-class Microsoft Dynamics AX technical resources.

Beginning in H2 FY14, Microsoft Dynamics will be launching the exams for two out of the three AX Solutions Excellence Certification Program tracks, enabling Microsoft Dynamics partners and individuals to achieve the highest level of certification on Microsoft Dynamics AX 2012.

You can get more details from this link

Thank you!

Happy Dax6ng,

Sreenath Reddy

image

Follow

Get every new post delivered to your Inbox.

Join 238 other followers