Field Visibility Extension

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
ConstanceLake
User
Posts: 37

Field Visibility Extension

Post by ConstanceLake »

Hi all,
we would like to use the field visibility extension feature in two ways:

1) Field visibility dependent from UserLevel: Some fields of user masterdata table should be not visible or edit for a specific user type

2) Field visibility dependent from boole values in a maintenance table. Maintenace table incluedes usersID and boole values (0, 1) for each field/column.

Which code snippet do we need to include in the Advanced Setings of Field Visibility Extension Menu for option 1:
a) For table settings: Table permission type = UserLevel?
b) For field settings: Which code snippet do we need to include for the fields of user table we would like to set on visible or hidden, dependet from userlevel

Which code snippet do we need to include in the Advanced Setings of Field Visibility Extension Menu for option 2:
a) For table settings: Table permission type = UserID?
b) For field settings: Which code snippet do we need to include for the fields of user table we would like to set on visible or hidden, dependent from bool value for a suer in the maintenance table. We have a query on the maintenance table to check the bool value for each column. The result of this query is 0 or 1 for a specific user and column.

Best regards, Thomas


motfs
User
Posts: 258

Post by motfs »

Read the note under the FieldVisibility extension. There is description about how to use.

For case 1:
set [Permission Type] as UserLevel for the Table and enter the UserLevel for the field to be Visible (which page you want, make sure the value match the datatype for the field).

Similiarly for case 2.

Try to generate a page to try. If any issue, post your setting here for discussion.


Post Reply