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)

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

I have the same question (0)
  • Verified answer
    Mohana Yadav Profile Picture
    61,005 Super User 2025 Season 2 on at

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

  • Suggested answer
    Binesh Profile Picture
    7,885 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,247 Super User 2025 Season 2 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,005 Super User 2025 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

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)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans