June 2, 200322 yr 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
June 2, 200322 yr 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.
June 2, 200322 yr Author 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?
June 2, 200322 yr 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), "")
Create an account or sign in to comment