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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Open Excel by form button

(0) ShareShare
ReportReport
Posted on by 12

I'm having a button in the form and when i click that button it should open a excel (with headers) and there i can able to enter the value and then save it in any destination , so it's possible ?

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Yes it's possible.

  • UmesH@ Profile Picture
    810 on at

    Can you Please tell us how can we do it ?

  • Martin Dráb Profile Picture
    237,967 Most Valuable Professional on at

    What exactly do you mean by "with headers"? And are you aware of the standard functionality for exporting to Excel?

    By the way, please use more descriptive thread titles than "AX beginner".

  • VV-22040800-0 Profile Picture
    12 on at

    Headers is nothing but the header fields for the excel which is we going to open !

  • Verified answer
    Ravikumar Profile Picture
    325 on at

    I hope this helps.  

    learnax.blogspot.in/.../x-code-to-readwrite-dynamics-ax-data-to.html

  • Martin Dráb Profile Picture
    237,967 Most Valuable Professional on at

    Which fields? All fields of a table, all fields from all tables in the form, all fields in a group, all fields in a grid, editable fields only...?

  • VV-22040800-0 Profile Picture
    12 on at

    all fields of a table

  • Suggested answer
    Martin Dráb Profile Picture
    237,967 Most Valuable Professional on at

    The link above shows how to use SysExcel classes. People also often use plain CSV files, which can be created by CommaTextIO class (for example).

    To get names of table fields, use SysDictTable class. If it has fields() method, it will be the easiest way (it's possible that this particular method doesn't exist in AX 2009).

  • VV-22040800-0 Profile Picture
    12 on at

    yeah thank you so much !

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans