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)

How to create file upload control in ax 2012 form?

(0) ShareShare
ReportReport
Posted on by 3

Hi All,

I want to create a form to import CSV file. The form should be a grid. So, the grid allows the user to import the file and description of the file.

I have to store file path and description.

I don't know which control is supporting to upload the file. Please help me.

Thanks for advance,

Hari

*This post is locked for comments

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

    You should use EDT FileNameOpen

    Try exploring class - SysDataImportSetBased

    This class is having Dialog method which basically using this EDT

    Please verify

  • Verified answer
    Hariharans87 Profile Picture
    3 on at

    Hi,

    I have created string field in the table and assign the value "FilenameOpen" in the extended data types property.

    I have added that field in the form design and also i have added some below methods in that form.

    str fileNameLookupFilename()

    {

       return '';

    }

    container fileNameLookupFilter()

    {

       return ['All *.csv files','*.csv'];

    }

    str fileNameLookupInitialPath()

    {

       return '';

    }

    str fileNameLookupTitle()

    {

       return "@SYS53008";

    }

    Now, it is working fine. Thanks for your reply,

    Thanks,

    Hari

  • Community Member Profile Picture
    on at

    Hi,

       I am doing this task, i have added EDT  in my table and used in my form, where can i add those methods, Am i able to open my file?? 

  • Suggested answer
    Evan Adamson Profile Picture
    105 on at

    This might be a little late for Thameem Tharick but may help someone else. The methods described above by Hariharan S should be added at the highest or outer most scope of the 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…

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