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.