Export (0) Print
Expand All

How to: Convert Web Forms

Dynamics AX 2009

To convert a Web form to use the ASP.NET-based framework for Enterprise Portal, you must first add the SysEPWebFormConverter class to your Microsoft Dynamics AX installation. Then you will use methods in this class to perform the conversion.

You must add this class to the Microsoft Dynamics AX installation.

To add the SysEPWebFormConverter class

  1. Display the Web Form Converter topic.

  2. Copy the text for the .xpo file to the clipboard.

  3. Open a text editor, such as Notepad.exe.

  4. Paste the content for the .xpo file into the text editor.

  5. Save the file and use SysEPWebFormConverter.xpo as the file name.

  6. In Microsoft Dynamics AX, open the AOT.

  7. Click the Import button to open the Import form.

  8. Click Browse and select the SysEPWebFormConverter.xpo file that you created.

  9. Click OK to start the import process. The class will be added to the AOT.

To use the Web Form Converter class, you will specify which Web forms you want to convert.

To use the Web Form Converter class

  1. In the AOT, expand the Classes node.

  2. Locate the SysEPWebFormConverter class. Expand the node for this class.

  3. Right-click the getFormsToConvert method for the class, and then click Edit.

  4. In the script for this method, specify the Web forms that you want to convert. Replace WebForm1 and WebForm2 with the names of the Web forms to be converted. If necessary, add more lines for additional Web forms.

  5. Click Save to save the changes.

  6. In the AOT, right-click the main method for the class, and then click Edit. This is the main code that performs the conversion. It retrieves the list of Web forms to convert, performs the conversion, and then adds the resources that were created to a new project.

  7. Specify the name of the project to be created. By default, the project created will be named WebForm_Conversion. You can change this name if needed.

  8. Click Save to save any changes to the script.

  9. Click Go to perform the conversion. The new project will be displayed that contains the new resources that were created.

  10. To use the new Web Controls that were created, you must deploy them to the Enterprise Portal server. In the AOT, expand the Web node, and then expand the Web Files node. Right-click the Web Controls node, and then click Deploy.

After the conversion is complete, you should verify that the new components are working correctly.

Community Additions

ADD
Show:
© 2014 Microsoft