Form PageName update dynamically

navman1navman1 Member Posts: 3
How can I not display a particular page in a form if the data displayed relates to a particular range of information.

i.e. I do not want to display rates for monthly employees

Comments

  • Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    If your question is: can I disable a tab from a form, the answer is NO.
  • navman1navman1 Member Posts: 3
    How can I set a the property to be invisible on the rate under certain cirmcumstances
  • SteveOSteveO Member Posts: 164
    You could use:

    Currform.ControlName.Visible := (Whatever_the_condition_is = true)
    to set individual controls to be visible or not (not Tab Pages)


    But be aware that just because it isn't visible on the form doesn't mean the user can't use Ctrl+F8 (Zoom) to see the field values that way.
    This isn't a signature, I type this at the bottom of every message
  • AdministratorAdministrator Member, Moderator, Administrator Posts: 2,500
    BlackTiger wrote:
    Weird solution for stupid request:
    You are abusing Forum Rule #2: Forum Rules

    And this is not the first time. So please be more careful when writing your responses to other people's questions. Your answers are appreciated though, but only when you can show some respect.
  • kinekine Member Posts: 12,562
    Do not forget: You can use the Frame control to "group" some controls to the group and use the .VISIBLE property of the frame to hide whole group of controls! it means, you can place the frame to the page, add all controls to the frame (place it inside the frame) and you can hide all controls through one command... ;-)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.