hioctane Posted June 2, 2003 Posted June 2, 2003 Can I use scripts to control the properties and presence/absence of layout elements such as buttons, fields and text? For example say I needed to have "SendReminder" button to appear only when overDue>1. If overDue = 0 the button should not appear the layout. How would I go about that? -ilya
Ugo DI LUCA Posted June 2, 2003 Posted June 2, 2003 There are a couple of demos here around about this feature. It's called "Visibility" and was introduced (I just hope I'm not wrong) by J.M. OSBORNE. In the attachment section, at the entrance, check for an attachment called "hide button" or just make a search on "visibility" here or at FMFiles.com.
hioctane Posted June 2, 2003 Author Posted June 2, 2003 The visibility discussiong is very informative. Is there way to control properties of layout elements? For example would it be pissible to change the color of type based on the value of a field?
Ugo DI LUCA Posted June 2, 2003 Posted June 2, 2003 Absolutely, This would be done by a calculation based upon a global container field. Put your color graphics in a container g_container. Then the calc is c_showcontainer= Case(your value>number, GetRepetition(Container,1),"") You could show as many colors as you wish, if you had more than one condition. Paid, partly paid, Not Paid is the classic example. Then, c_showcontainer = Case(value =Not Paid, GetRepetion(Container,1), value =Partly Paid, GetRepetion(Container,2), "")
Recommended Posts
This topic is 7848 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