How does one fill an asp.net combo box with a dynamics ax Lookup or enum using ax services

This question is not answered

im trying to fill up asp.net combo with ax enum and lookups but no success so far any ideas thanks in advance

All Replies
  • Do you need the look for Enterprise portal. Try using lookupdatamethod

  • You use the AxLookup control with a TextBox instead of combobox.

    fx:

    <asp:TextBox ID="TextBoxLedgerAccount" runat="server"></asp:TextBox>

    <dynamics:AxLookup ID="AxLookupLedgerAccountLookup"
        runat="server"
        ExtendedDataType="LedgerAccount"
        TargetControlId="TextBoxLedgerAccount"
        LookupType="EDT">
    </dynamics:AxLookup>

     

  • hi im getting a tag prefix error any solution to the problem

  • try adding:

    <%@ Register Assembly="Microsoft.Dynamics.Framework.Portal, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="Microsoft.Dynamics.Framework.Portal.UI.WebControls" TagPrefix="dynamics" %>