Posting Date in Worksheet page NAV 2013 R2

IvonaKIvonaK Member Posts: 115
edited 2014-09-29 in NAV Three Tier
Hi to all,

I have a custom Worksheet page like picture 1

I int the Posting Date OnInit on Page like:

OnInit()
gDatePostingDate:=TODAY;

and it works until I change the Posting Date. But when I change a Posting Date to be another date it doesen't work.
For example if a change to be 09/30/2014 when I enter "Qunatity Sale" it returns Posting Date to be 09/29/2014. (picture 3)

I use NAV 2013 R2.

Any advance,

Thanks a lot

Comments

  • tinoruijstinoruijs Member Posts: 1,226
    Have you created the page yourself?
    Is there code on OnValidate of the gDatePostingDate?
    It probably should update a posting date on the header.

    Tino Ruijs
    Microsoft Dynamics NAV specialist
  • IvonaKIvonaK Member Posts: 115
    Yes I have create by myself. I don't have a field posting date in my table. But now it works :) I put
    CurrPage.UPDATE on Valide

    gDatePostingDate - OnValidate()
    CurrPage.UPDATE;

    and it works.

    Thanks a lot,
    Best Regrads,
  • tinoruijstinoruijs Member Posts: 1,226
    Well done! You're welcome.

    Tino Ruijs
    Microsoft Dynamics NAV specialist
Sign In or Register to comment.