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 :
Small and medium business | Business Central, N...
Suggested Answer

how to display dialog box with open save and cancel options

(1) ShareShare
ReportReport
Posted on by 231

Dear Friends,

I import a file from local directory to nav page once i click the file , i need to show the dialogue box like this

is there is any code available to show this and once its done that file should be open if we click open or save in local directory .

And i need to show this box while i click imported file which i have created.

pastedimage1579764005703v1.jpeg

Thanks in advance

I have the same question (0)
  • Suggested answer
    RockwithNav Profile Picture
    8,600 Super User 2025 Season 2 on at

    Something like ZETADOCS??

    Still not clear!!

  • yoheswaran Profile Picture
    231 on at

    just i need to open or save or cancel my imported file which was imported into page

  • Suggested answer
    Suresh Kulla Profile Picture
    50,243 Super User 2025 Season 2 on at

    Do you need this when you export the data? why would you open a file while importing?

  • yoheswaran Profile Picture
    231 on at

    I'm importing file from local directory and it was stored in one table 

    Then I have another action button as export there are multiple files for a single sales order or purchase order

    I need to export a single file how it can be done any suggestions it's a client requirement.

  • Suggested answer
    Suresh Kulla Profile Picture
    50,243 Super User 2025 Season 2 on at

    I am still lost, do you want to export the data from the table? ur requirement is not clear.

  • yoheswaran Profile Picture
    231 on at

    Thsnks for the reply,

    pastedimage1580106432372v2.png 

    Here i can able to import files by clicking action for a particular sales order No once i clcik export button im getting error.

    thanks in advance

  • Suggested answer
    Suresh Kulla Profile Picture
    50,243 Super User 2025 Season 2 on at

    Ok, are you using RecRef ? can you send us the code for export

  • yoheswaran Profile Picture
    231 on at

    Thanks for the reply,

    Table:Export attachment function

    ExportAttachment(RecIDToExport : RecordID;RecLineNo : Integer;RecNameofFile : Text)
    SETRANGE("Record Id",RecIDToExport);
    SETRANGE("Line no",RecLineNo);
    SETRANGE("Name of a file",RecNameofFile);

    IF NOT FINDFIRST THEN
    ERROR(Text0004);
    REPEAT
    CALCFIELDS(Attachment);
    IF NOT Attachment.HASVALUE THEN
    ERROR(Text0004);
    TempBlob.Blob := Attachment;
    FileManagement.BLOBExport(TempBlob,"Name of a file",TRUE);// altered
    UNTIL NEXT=0;

    Page:

    Export Attachment - OnAction()
    AttachmentRecRef.OPEN(DATABASE::"Attachment Customization");
    AttachmentRecRef.SETPOSITION(GETPOSITION);
    AttachmentRecId := AttachmentRecRef.RECORDID;
    AttachmentRecRef.CLOSE;
    AttachmentCustomized.ExportAttachment(AttachmentRecId,"Line no","Name of a file");

    Thanks in advance

  • Justbiased Profile Picture
    5 on at

    I actually have a similar question. When I go to print, there was always an option to open, save or cancel for all documents (excel, word or PDF). I accidentally unchecked to box that says always ask before this action on this type of file for my PDF option. I need the dialog box back so that I can quickly save it to my desktop.

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,105 Moderator on at

    I think you have to do that in registry.

    Maybe this can help you?

    winaero.com/.../

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans