hiding/showing Page fields based on conditions ?

VotucVotuc Member Posts: 206
edited 2011-03-10 in NAV Three Tier
Hi,

I have a client who has a custom Navision Form that needs to be redone as a page. This form sets fields and labels as Visible = true or visible = false depending on the type of record you are viewing.

Can I do this with FIELDS in a (card type) page? I was able to do something similar with a filter in a different (list type) page by using set Range then currPage.update; but in this Page every time I put in currPage.update it says:


Microsoft Dynamics NAV
You cannot make any changes in the database until a transaction has been started.
Page View - Barter Item Card must close.
OK

Any ideas would be appreciated. Thanks!

Comments

  • mihail_kolevmihail_kolev Member Posts: 379
    CurrForm.UPDATE[(SaveRecord)]

    Parameters
    SaveRecord
    Type: Boolean

    Set this parameter to true if you want to save the current record. Set this parameter to false if you want to update without saving the current record.

    try with CurrPage.UPDATE(FALSE)
    -Mihail- [MCTS]
  • matttraxmatttrax Member Posts: 2,309
    Many of the properties in NAV 2009 no longer require static values like Yes/No, True/False. They can retrieve their value from a variable.

    Create a boolean variable that will serve as the value of whether or not a field will display. Set the IncludeInDataset property of it to Yes. Change the visibility of the boxes to be YourVariable or NOT YourVariable accordingly.
Sign In or Register to comment.