Kent Searight Posted February 6, 2007 Posted February 6, 2007 I have a calculation field "deleteButton" that always returns the value "delete". When it's okay to delete a record (according to a set of rules) the value appears in the color assigned to the field. But when it's not okay to delete a record, the value appears in a "grayed out" color. How can I have my Delete script check the color of the value in that field?
comment Posted February 6, 2007 Posted February 6, 2007 I suppose that's possible, but I suspect it would be much simpler to check the same set of rules that the calculation field does.
Kent Searight Posted February 6, 2007 Author Posted February 6, 2007 Hi Michael, Nice custom function. It does exactly what I want (once I figured out that the :paragraph: at the end was tripping me up in the calc in my script) ...but I suspect it would be much simpler to check the same set of rules that the calculation field does. But then if the rules change I'd have to update them in 2 places. Attached is a sample of what I want, utilizing your CF to do so. Can you think of a better way to accomplish what I'd like to do? I'm certainly open to suggestions. Thanks for your help! RGB_Test.fp7.zip
comment Posted February 6, 2007 Posted February 6, 2007 But then if the rules change I'd have to update them in 2 places. True, but now if you want to change the colors, you need to update the script - which is much less obvious. How about something else? RGB_Test.fp7.zip
Kent Searight Posted February 6, 2007 Author Posted February 6, 2007 Very nice!! It took me a while to figure it out. I'd never paid much attention to "Format As Boolean" in the Number Format dialog before. This is a great technique. Many thanks, Michael!
Kent Searight Posted February 6, 2007 Author Posted February 6, 2007 :qwery: Now if there were just a way to define mouse-over behavior at the script level (beyond Button Setup dialog)...
Recommended Posts
This topic is 6561 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