Hi everyone, I create a new field in Sales Header table called "Vasilhame" and this field only will be display when I choose a specific Posting No Series. So my idea was to include this field in my page and set the Visible property to a new boolean var I've created called ShowVasilhame.
This var have the option "Include In Dataset" equals to true and now I need to validate the change of Posting no Series equals to a specific text like "MRVFA" then this field should appear in my page, else it may still hide.
I create a function also called SetVasilhameVisibility(Show) where
LOCAL SetVasilhameVisibility(Value : Boolean)
ShowVasilhame:=Value;
Other code... OnInit() SetVasilhameVisibility(FALSE); IF "Posting No. Series"='MRVFA' THEN SetVasilhameVisibility(TRUE); OnOpenPage() IF "Posting No. Series"='MRVFA' THEN SetVasilhameVisibility(TRUE); Posting No. Series - OnValidate() IF "Posting No. Series"='MRVFA' THEN SetVasilhameVisibility(TRUE); Posting No. Series - OnLookup(VAR Text : Text) : Boolean Posting No. Series - OnDrillDown()
My problem is when I change the posting no series, because it stays visible and don't hide anymore...
*This post is locked for comments