Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Extension using visual studios in NAV

Posted on by 4,184

Hi All

I've created a small extension by adding a field to the Item Table for which I've created the table extension and page extension. 

Can someone tell me the further steps to compile and run the extension.

*This post is locked for comments

  • Suggested answer
    Maneesha Profile Picture
    Maneesha 5,889 on at
    RE: Extension using visual studios in NAV

    hi ,

    Follow the steps

    1.Create new files for your solution

    2.Get assistance with creating the appropriate configuration and setting files

    3.Use code snippets that provide templates for coding application objects

    4.Get compiler validation while coding

    5.Press F5 to publish your changes and see your code running

  • Verified answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,139 Super User 2024 Season 2 on at
    RE: Extension using visual studios in NAV

    if your original problem is solved the close the post and create new post.

    field(39;Blocked;Option)

       {

         CaptionML=ENU='Blocked';

         OptionCaptionML=ENU='" ",Ship,Invoice,All';

         OptionString=" ",Ship,Invoice,All;

       }

  • CDsilva Profile Picture
    CDsilva 4,184 on at
    RE: Extension using visual studios in NAV

    Ok. How do we define Option string in visual studios for a field.

  • Verified answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,139 Super User 2024 Season 2 on at
    RE: Extension using visual studios in NAV

    packagecachepath is

    The path to the folder where referenced symbol package files are located. The path could either be absolute or relative to the current extension working directory, for example: "../../resources"

    if you are using preview server then check folder

    C:\DEMO\New Developer Experience\Resources for files

  • CDsilva Profile Picture
    CDsilva 4,184 on at
    RE: Extension using visual studios in NAV

    I'm attaching the app.json file

    error3.JPG

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,139 Super User 2024 Season 2 on at
    RE: Extension using visual studios in NAV

    can you show app.json file?

  • CDsilva Profile Picture
    CDsilva 4,184 on at
    RE: Extension using visual studios in NAV

    I'm getting an error AL10166 :No source file specified

    Error: Package cannot be created.

    I'm attaching my code

    3173.error2.JPG3173.error2.JPG

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,139 Super User 2024 Season 2 on at
    RE: Extension using visual studios in NAV

    Follow the series of blog posts to know more details

    mohana-dynamicsnav.blogspot.in/.../developing-extensions-using-new-visual_17.html

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: Extension using visual studios in NAV

    If package is built and published it must have created those files, have you checked the folder using explorer instead of VS ? if not try search for the files and see if you can find them.

  • CDsilva Profile Picture
    CDsilva 4,184 on at
    RE: Extension using visual studios in NAV

    I've checked the tutorial, according to it Ctl+shift+B builds the file and creates app.json and F5 cretes the launch.json file.

    I've  followed these commands , I get a message Package is creates and suces on the package is published but I don't seem to find these files app.json and launch.json in my folder.

    Can you help me with this also the .navx file cannot be found

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans