Skip to main content

Notifications

Announcements

No record found.

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 225

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

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 993 Super User 2024 Season 1 on at
    RE: how to display dialog box with open save and cancel options

    I think you have to do that in registry.

    Maybe this can help you?

    winaero.com/.../

  • Justbiased Profile Picture
    Justbiased 5 on at
    RE: how to display dialog box with open save and cancel options

    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.

  • yoheswaran Profile Picture
    yoheswaran 225 on at
    RE: how to display dialog box with open save and cancel options

    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

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: how to display dialog box with open save and cancel options

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

  • yoheswaran Profile Picture
    yoheswaran 225 on at
    RE: how to display dialog box with open save and cancel options

    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
    Suresh Kulla 43,745 on at
    RE: how to display dialog box with open save and cancel options

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

  • yoheswaran Profile Picture
    yoheswaran 225 on at
    RE: how to display dialog box with open save and cancel options

    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
    Suresh Kulla 43,745 on at
    RE: how to display dialog box with open save and cancel options

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

  • yoheswaran Profile Picture
    yoheswaran 225 on at
    RE: how to display dialog box with open save and cancel options

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

  • Suggested answer
    RockwithNav Profile Picture
    RockwithNav 6,562 on at
    RE: how to display dialog box with open save and cancel options

    Something like ZETADOCS??

    Still not clear!!

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,602 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,340 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans