This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Is it possible to hide fields in the GenericMasterData Forms and Special Forms (i.e. Person) in Manager without editing Default Rights? v6/v8

Hi, the question is for V6 and V8

Is it possible to hide fields in the GenericMasterData Forms and Special Forms (i.e. Person) in Manager without editing Default Rights?

I tried something with DialogColumn.Columngroup and Sortorder but this does not work as expected.

I think there was a pretty easy way but i do not remember.

Thank you in advance.

Martin

Parents
  • You have to put some code in the OnLoaded-Event of the tables in question.

    The code is from version 8 but should work in 6 as well.

    ' Should work in version 6 and up
    ' Hide a property if it is not coming via a sync
    If Not CBool(Connection.Variables("FULLSYNC")) Then
    	Base.Columns("<ColumnName>").CanShow = False
    End If 
    
    ' Version 8 only 
    ' Hide a property if it is not coming via a sync
    ' and the logged in user has no system privileges like the service accounts.
    If Not CBool(Connection.Variables("FULLSYNC")) 
        And Not Connection.User.IsAdministrativeAccount Then
    	Base.Columns("<ColumnName>").CanShow = False
    End If 
    
    

Reply
  • You have to put some code in the OnLoaded-Event of the tables in question.

    The code is from version 8 but should work in 6 as well.

    ' Should work in version 6 and up
    ' Hide a property if it is not coming via a sync
    If Not CBool(Connection.Variables("FULLSYNC")) Then
    	Base.Columns("<ColumnName>").CanShow = False
    End If 
    
    ' Version 8 only 
    ' Hide a property if it is not coming via a sync
    ' and the logged in user has no system privileges like the service accounts.
    If Not CBool(Connection.Variables("FULLSYNC")) 
        And Not Connection.User.IsAdministrativeAccount Then
    	Base.Columns("<ColumnName>").CanShow = False
    End If 
    
    

Children
No Data