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 NAV (Archived)

How to set a Default value for an option field in the page

(0) ShareShare
ReportReport
Posted on by

Hello guys , the issue is I want to specify an a default value for DOCUMENT TYPE in the cash receipt journals page only to be only payment , putting in considerations that putting init value in the table will change it for all journals and I don't want that !

any ideas ?  

*This post is locked for comments

I have the same question (0)
  • Luc van Vugt Profile Picture
    on at

    Let code do it in the OnNewRecord trigger (or even better in an event subscriber to this trigger).

  • Community Member Profile Picture
    on at

    thank you for your reply BUT ,

     could u provide the code please?

  • Verified answer
    Amol Salvi Profile Picture
    18,698 on at

    As Luc suggested You can write the code on OnNewRecord trigger

    Just write

    "Document Type" :="Document Type"::Payment;

  • Community Member Profile Picture
    on at

    my bad it worked actually , thanks Mr Amol 

    much appreciation

  • Community Member Profile Picture
    on at

    I am Functional user of NAV 2013 R2.  Can i Learn Technical to customize in short time.

  • Luc van Vugt Profile Picture
    on at

    Well, take advantage of the C/SIDE Development 101 webinars of NAV Skills on youtube. Search on youtube for "c/side development 101 series".

  • DineshM Profile Picture
    238 on at

    Hi ,How to set decimal field value  of table to suppose 100 so that it will come by default also where to write code in table ?

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 NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans