CrmEntityFormView Update Form RRS feed

  • Question

  • I am using the free version of MS CRM partner portal. I am trying to populate a form using CrmEntityFormView , but cannot. Here is the code:

    <crm:CrmDataSource ID="crmDSEntitiesView" runat="server"  >
                <entity new_id="2" />
        <crm:CrmEntityFormView ID="cefv1" DataSourceID="crmDSEntitiesView" Mode="Edit" EntityName="new_entity" 
               runat="server" SavedQueryName="testView" FormName="Web Form" >

    I also tried setting fetchxml on the server side:

    crmDSEntitiesView.FetchXml = string.Format("<fetch mapping='logical'><entity name='{0}'><all-attributes />" +
                                                           "<filter type='and'><condition attribute = '{1}' operator='eq' value='{{{2}}}'/></filter></entity>" +
                                                           "</fetch>", "new_entity", "new_id", strId);

    But the form is not getting populated. What am I missing?

    Tuesday, August 13, 2013 8:40 PM

All replies

  • For the free portal framework, you will have to stick with the SavedQueryName field and ignore the FormName field.  The free portal framework does not support rendering CRM forms in the portal - for that, you have to use the commercial version from Adxstudio.  The free portal framework is only capable of rendering a single list of fields in a web form based on the columns in a saved query.

    Shan McArthur www.shanmcarthur.net Check out the commercial edition of xRM portals @ www.adxstudio.com

    • Proposed as answer by B sreenivasulu Friday, August 16, 2013 3:50 AM
    Friday, August 16, 2013 2:04 AM
  • Just been doing this in CRM 2015 with a CrmDataSource and an ASP:GridView, the thing I forgot was when changing the datasource, needed to re-assign the grids (whatever ui components) datasource to the the id of the  CrmDataSource object, and also call grid.DataBind(), I assume that the CrmEntityFormView has similar needs

    Monday, June 1, 2015 8:09 AM