Microsoft Dynamics AX Developer Center Headlines

My Card

Saturday, April 25, 2009

Change an AX Bound Field to Hyperlink bound field in web user control

There are certain situations where we need to change an AX bound field to AX Hyperlink bound field in a web user control. I have listed out the required steps which need to be performed in order to do the needful.
1. Open the Web user control in visual studio. For detailed information on how to open a web user control & edit in Visual Studio please refer the AX Developer help.
2. Once you have the web user control added to web project in VS, open the HTML source of the control.
3. Replace the AxBoundField tag with the AxHyperLinkBoundField tag for desired column. Make sure to replace the end tag as well.
4. Now switch back to Design mode, select the grid and click on Edit Columns to edit the column property.
5. You will notice that the MenuItem property is enabled for the changed field as it is now hyper link bound field. This property will only be available for AXHyperLinkBoundFields.
6. Provide the menu item (AX Webmenuitem of type URL object) name to the property to set the hyperlink.
7. Follow the standard AX procedure to deploy the changes back to AX. For more detailed information on how to deploy the changes back to AX please refer Dynamics AX developer help.

Wednesday, November 19, 2008

Presence Information in Microsoft Dynamics AX 2009

Microsoft Dynamics AX 2009 now has integration to Office Communicator. This allows a user to see presence information of a contact & contact him instantly. Office Communicator is required for this purpose.
We can enable the presence information in a AX Form Control of type StringEdit by setting up the following properties:
1. PresenceIndicatorAllowed: If set to Yes then it will show the presence indicator sign in same control.
2. PresenceDataSource: Data source which will have the PresenceDataField information.
3. PresenceDataField: It should be the field for address book identification such as DirPartyId, ContactPersonId etc. These are the extended data types.
These extended data types are having the properties to call the Presence Class (DirPresenceInfo) & the respective method. These Properties are PresenceClass & PresenceMethod.
For ex: The DirPartyId field the Presence Class property is set to DirPresenceClass & the PresenceMethod property is set to "partyInfo".
The contact information should be available in the respective table. For ex: for an employee the contact information should be available & the Communicator Sign In address check box should be checked to use the feature.