web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Clearing a field after posting

(0) ShareShare
ReportReport
Posted on by 4,188

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

  • Verified answer
    Mohana Yadav Profile Picture
    61,252 Super User 2026 Season 2 on at

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

  • Suggested answer
    Binesh Profile Picture
    7,887 on at

    Hello,

    You have to write something like:

    CLEAR(Tablename.fieldname);

    Tablename.MODIFY;

  • Suggested answer
    Yogesh Kulkarni_ Profile Picture
    1,762 on at

    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
    Suresh Kulla Profile Picture
    50,280 Super User 2026 Season 1 on at

    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
    Amol Salvi Profile Picture
    18,698 on at

    You need to use MODIFY statement also after writing clear.

  • Suggested answer
    Mohana Yadav Profile Picture
    61,252 Super User 2026 Season 2 on at

    Did you find solution?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans