web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Adding New lines in a GrideView in enterprise Portal in AX 2012

(2) ShareShare
ReportReport
Posted on by 4
Hi, 
How can you add new lines in  GridView in Enterprise Portal in AX 2012.
I am trying to create a new line and nothings happens in the Action buttons in the Corporate kpi Tab.
Categories:
I have the same question (0)
  • Martin Dráb Profile Picture
    236,330 Most Valuable Professional on at
    Adding New lines in a GrideView in enterprise Portal in AX 2012
    Please give us some details. Do you mean that you can't add any rows anywhere, in a single standard form, in a custom form you're developing? Or is the actual problem different. Did it work before?
  • Suggested answer
    Saif Ali Sabri Profile Picture
    2,351 Super User 2025 Season 2 on at
    Adding New lines in a GrideView in enterprise Portal in AX 2012
    To resolve the issue where clicking “New” in the Corporate KPIs grid in Enterprise Portal (EP) in Microsoft Dynamics AX 2012 does not add a new line, follow this solution checklist. This is a common problem when either the AX metadata, AOT setup, or SharePoint EP configurations are incomplete or not correctly wired.

    Solution: Enabling Line Addition in EP GridView (AX 2012)

    🔧 Step 1: Confirm Grid Configuration in AOT

    1. Open AOT in AX.
    2. Go to your Web ModuleWebWeb Pages → locate the EP page you're working with.
    3. Find the GridView control under the relevant Web Form.
    4. Ensure:
      • The AllowAdd property = Yes
      • The AllowEdit property = Yes
      • The DataSource is bound to a DataSet properly.

    🔧 Step 2: Check the DataSet

    1. Go to AOT > Data Sets.
    2. Open the DataSet used in this EP page.
    3. Verify:
      • The data method for insertion (create or initValue) is implemented and exposed.
      • The DataSet’s AllowCreate and AllowEdit = Yes
      • The related table in the dataset allows inserts (check table properties).

    🔧 Step 3: Implement the Create Method if Missing

    If the "New" button does not trigger anything, you might need to handle the creation of a new record manually.
    • In the Web Form code-behind (.cs file in EP project if customized), implement the Create button handler:
    csharp
    protected void NewButton_Click(object sender, EventArgs e)
    {
        CorporateKpiDataSource.Create();
    }
    • Ensure your CorporateKpiDataSource is linked to the correct AX DataSet.

    🔧 Step 4: Rebuild and Deploy EP

    If you made any changes to AOT or Visual Studio EP project:
    1. Deploy the Web project via:
      • Right-click EP Web project → Deploy
    2. Restart IIS (iisreset).
    3. Clear browser cache and test again.

    Step 5: Security/Permissions

    • Confirm that the user has insert permissions on the table behind the Corporate KPI entity.
    • Use AX Security Keys and Privileges to ensure access.

    🧪 Step 6: Test in AX Client (not EP)

    To isolate if it’s a data issue:
    • Go to the corresponding form in AX rich client.
    • Try to add a new KPI line manually.
    • If it fails here too, it’s a data or table-level restriction.

    Optional: Enable Logging

    Enable EP tracing in web.config for SharePoint to catch errors not shown in UI.

    🧠 Summary

    Step Area Action
    1 GridView Control Set AllowAdd and AllowEdit = Yes
    2 DataSet Check AllowCreate, create method
    3 EP Button Code (Optional) Handle Create() manually
    4 Deployment Rebuild EP project and deploy
    5 Permissions Ensure insert rights on table
    6 AX Client Test manually via AX form

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,004

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 865 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 582 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans