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

Announcements

No record found.

News and Announcements icon
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
    239,029 Most Valuable Professional on at
    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,354 Moderator on at
    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 617

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 461 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 298 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans