Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

WEB CLIENT Browsing for a file

Posted on by 90

Hi !!!

I'm trying browse for a file using the File Management codeunit functions (Codeunit 419) but these functions use .NET variables 'Run on client' and this is a limitation in the web client.

How could i browse for a file in the web client?

Thanks in advance !!!!

*This post is locked for comments

  • Jose Manuel Sola Profile Picture
    Jose Manuel Sola 90 on at
    RE: WEB CLIENT Browsing for a file

    Thanks Suresh !!! I'll check it

  • Verified answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: WEB CLIENT Browsing for a file

    Jose, You can still use the FileManagement UploadFile function to upload but it gives the server file, there are few functions in the File Managment to check if it is Web Client or not or even to check if the client can run Dot Net or not. CanRunDotNetOnClient

    Check codeunit 9170 for examples.

  • Jose Manuel Sola Profile Picture
    Jose Manuel Sola 90 on at
    RE: WEB CLIENT Browsing for a file

    :(....

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: WEB CLIENT Browsing for a file

    No native function for selecting only a folder in web client if I remember correctly.

  • Jose Manuel Sola Profile Picture
    Jose Manuel Sola 90 on at
    RE: WEB CLIENT Browsing for a file

    Thanks Stefano,  this works !!!!, This function loads the file to the server and from there you can select it ... but if I want to select a folder on the local computer. What could I use?

    Thanks in advance again!!

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: WEB CLIENT Browsing for a file

    You can use the Upload function:

    [View:https://docs.microsoft.com/en-us/dynamics-nav/upload-function--file-]

    Or FileManagement.UploadFile

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans