Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

Clearing a field after posting

Posted on by 4,184

Hi

After Posting I want to clear the field, I used the function CLEAR(Tablename.fieldname) on Closepage function but still it doesnt work. any another solution to it? 

*This post is locked for comments

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,077 Super User 2024 Season 2 on at
    RE: Clearing a field after posting

    Did you find solution?

  • Suggested answer
    Amol Salvi Profile Picture
    Amol Salvi 18,694 on at
    RE: Clearing a field after posting

    You need to use MODIFY statement also after writing clear.

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,729 on at
    RE: Clearing a field after posting

    Chris,

    Which field and on what table you want to clear the value ? You can add your customization in the posting routine or add an event to do that. By Adding only CLEAR function will clear the value but if you don't add modify statement it will not commit to the database.

  • Suggested answer
    Yogesh Kulkarni_ Profile Picture
    Yogesh Kulkarni_ 1,762 on at
    RE: Clearing a field after posting

    Chris,

    You can add your code after execution of Posting routine as well.

    And yes as suggested by other members, you are missing with .MODIFY command.

    -Yogesh Kulkarni
    Please verify, if you find answer helpful.

  • Suggested answer
    Binesh Profile Picture
    Binesh 7,885 on at
    RE: Clearing a field after posting

    Hello,

    You have to write something like:

    CLEAR(Tablename.fieldname);

    Tablename.MODIFY;

  • Verified answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,077 Super User 2024 Season 2 on at
    RE: Clearing a field after posting

    you need to assign blank value to it and use tablename.Modify;

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 229,918 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans