Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Clearing a field after posting

(0) ShareShare
ReportReport
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,194 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,745 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,194 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

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans