At the moment I have a data base where I am using dynamic user levels. in the user table I create the user, login details and user level. this in turn is used to populate 3 other tables with the users name. what I am having to do is after I generate every the code with php maker is alter by hand every select statement to include WHERE userlevel = 2 or 3 or 4 depending on what the user level is. is there anyway to do this in phpmaker without having to do this by hand for every table?
sql select user level
-
- User
- Posts: 9430
You can specify a dynamic table/lookup table filter based on user level. The format is a SQL WHERE statement. For example: "<Field> = " & CurrentUserLevel()
For table level filter, use the [Tables] -> [Filter] setting. For lookup table filter, use [Fields] -> [Lookup Table] -> [Filter].