My 2p about ERP Solutions, Information Worker Solutions and other software products (mainly Microsoft Dynamics AX and Microsoft SharePoint).

27 March 2010

Equivalent for valueStr in Axapta 3.0 SP1

by Patrik Luca 0 comments



In Dynamics AX, you can use valueStr to get the string value of a ComboBox control on a Form. In Axapta 3.0 SP1, this method doesn’t exist.

Example in Dynamics AX 2009

  1. Create a new form.
  2. Add a ComboBox control in the Design node.
  3. Set property EnumType of the added ComboBox to ProjType.
  4. Set property AutoDeclaration to Yes for the added ComboBox.
  5. Add a Button control in the Design node.
  6. Override the Clicked method of the Button control as follows:
    void clicked()    


In Dynamics AX 2009, you’ll get the value of the EnumType as string.

Equivalent in Axapta 3.0 SP1

Unfortunately, this ain’t working in Axapta 3.0 SP1.

To achieve the same in Axapta 3.0 SP1, override the Clicked method of the Button control as follows:

void clicked()


Comments 0 comments

Patrik Luca, Ieper, BELGIUM
Feel free to use or spread all of the content on my blog. In return, linking back to my blog would be greatly appreciated. All my posts and articles are provided "AS IS" with no warranties.

Subscribe feeds via e-mail
Subscribe in your preferred RSS reader

Subscribe feeds rss Most Read Entries

Subscribe feeds rss Recent Entries


Recommended Books

Subscribe feeds rss Recent Comments

This Blog is part of the U Comment I Follow movement in blogosphere. Means the comment field of this blog is made DOFOLLOW. Spam wont be tolerated.

Blog Archive

My Blog List