KnightShift Posted November 7, 2003 Posted November 7, 2003 How do I display a specific image on a layout based upon the contents of a field? Making separate menu layouts for various levels of users is getting to be a hassle. I'd like to use one layout that works for all, but the buttons displayed would be based on the user's passwordd level. So that user pwd "Top" would display button image "Top", user "Middle" would display button "Middle" etc. Using this method I would be able to use the same menu for all and be able to show disabled buttons when appropraiate. I can't quite seems to this set up. Any advice appreciated. Thanks
JerrySalem Posted November 7, 2003 Posted November 7, 2003 Sounds like you need to use a calculation field. First make a repeating global container field (Ill call it image). and then put into it the different images you want to display. Next make a calculation field of type global. the calculation should have a case statment; case( field = "condition1", getrepetition(image, 1), field = "condition2", getrepetition(image, 2), . . . getrepetition(image,n) where field is the test field. HTH Jerry
Kundinger Posted November 8, 2003 Posted November 8, 2003 Hi Rick, Your approach to 'altering' the user interface could be accomplished in a number of fashions... Based on your comments... you could utilize any of the following or combinations thereof... A. a conditional background image that changes based on certain conditions or user privileges B. a conditional message area that displays warnings to users about certain conditions C. a conditional set of buttons that are active/inactive based on certain conditions or user privileges D. a conditional set of button names that are active/inactive or change based on certain conditions or user privileges These capabilities are accomplished with calc fields, repeating container fields, and scripts... - calc fields determine if a certain condition exists... then displays the appropriate text or image from a repeating container field - repeating container fields 'hold' all the text or image options that could be potentially displayed to the user - scripts have 'if' functions to determine if a condition exists based on the results of a calc field, then performs the appropriate actions EXAMPLES... I utilize a background color scheme to display a 'normal' color (green) when conditions are normal within a record or group of records... 'warning' color (red) when conditions are NOT normal within a record or group of records and require action on the users part. My project management solution has a 'Tasks' layout that will display a green background for typical tasks and a red background for tasks that are unassigned, over budget, etc. My calendar solution has a 'Month' layout that displays grey for normal work week days, pink for weekend days, and green for 'today'. I utilize 'warning messages' to display warnings to users about conditions that may exist and require action within records... typically displayed within a custom dialog box or blank area of the screen. My marketing management solution has a warning message on the 'Contacts' layout to warn users when they put a space or return character at the end of field contents such as a return character at the end of a first name. When it comes to buttons... I utilize button labels that display black letters for an active button and grey for inactive buttons. I also utilize buttons (attached to scripts) that determine if a 'BAD' condition exists or if a user has privileges to perform the function. My calendar solution has an 'Create Activity' layout with a grey 'POST' button that will change to black only when a user has entered ALL required data... if they click the grey 'POST' button (script), it will display a warning dialog to complete the required data fields before continuing. I hope these examples give you ideas for your solutions... Good Luck! Bob Kundinger [email protected]
Recommended Posts
This topic is 7684 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now