Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Unanswered

Import from Excel code showing data in Table but not in Form in AX 2012

(0) ShareShare
ReportReport
Posted on by 190

Hi there, I got a requirement to import data from excel to AX 2012 Purchase Components.  Navigate to Accounts Payable > All Purchase Orders > Double click on any Open Order > Expand Components tab.   I had written logic using this link.  The data is populating in the table but not showing in Form. After a lot of analysis I found that by creating a record from UI PurchLineRefRecId is generating and because of that we can see the record in the Form but from importing from excel the record is inserting in Backend Table but the record not showing in Form and PurchLineRefRecId is also not generating.  Actually I had created a button on the PurchTable form and added my import from Excel logic in Clicked() method.  

My requirement is  : 

1. Import Purch Components for particular PurchLine from excel.  

2. The data should appear on the Form as well.

Please let me know if i need to modify anything. Thanks in advance.

Thanks & Regards,

Prem

  • premK6969 Profile Picture
    premK6969 190 on at
    RE: Import from Excel code showing data in Table but not in Form in AX 2012

    Can you please let me know how it can be solved in whatever post you like.

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,684 Super User 2024 Season 2 on at
    RE: Import from Excel code showing data in Table but not in Form in AX 2012

    Hi Prem,

    You had another question where some other fields and the PurchLineRefRecId were not filled correctly: community.dynamics.com/.../after-importing-from-excel-purchid-and-purchlinenumber-not-updating-in-ax-2012

    I do think this question is a duplicate of your previous. Please continue with the initial question. This question will be locked.

  • premK6969 Profile Picture
    premK6969 190 on at
    RE: Import from Excel code showing data in Table but not in Form in AX 2012

    Required Table to update in backend is : PurchLineIngredient Table. This table is interlinked with PurchLine table.

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,684 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,414 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans