DanBrill Posted August 15, 2005 Share Posted August 15, 2005 I'm having a problem getting the evaluate function to work properly with textColor. The basic format of what I'm trying to do is case (isempty(OverRidePrice); BigSumOfOtherStuff; textcolor(evaluate(OverRidePrice);rgb(255;0;255))) The field result is a number. It works if I set the field result to text. How can I get it to work with the field result as a number? I've tried messing around with getAsText and getAsNum functions, but without success. Thanks for any insights, Dan Link to comment Share on other sites More sharing options...
DanBrill Posted August 15, 2005 Author Share Posted August 15, 2005 Hey there, I'm having a problem getting the evaluate function to work properly with textColor. The basic format of what I'm trying to do is case (isempty(OverRidePrice); BigSumOfOtherStuff; textcolor(evaluate(OverRidePrice);rgb(255;0;2 55))) The field result is a number. It works if I set the field result to text. How can I get it to work with the field result as a number? I've tried messing around with getAsText and getAsNum functions, but without success. Thanks for any insights, Dan Link to comment Share on other sites More sharing options...
Slobey Posted August 15, 2005 Share Posted August 15, 2005 Is this the calculation for OverRidePrice and if so what is the evaluate function neede for? Link to comment Share on other sites More sharing options...
-Queue- Posted August 15, 2005 Share Posted August 15, 2005 TextColor only works with text. I am curious, though, what the purpose of Evaluate(OverRidePrice) is. Is there a formula or number in OverRidePrice? Link to comment Share on other sites More sharing options...
Slobey Posted August 15, 2005 Share Posted August 15, 2005 TextColor only works with text. You don't mean that it doesn't work with numbers do you Queue? I use text color all the time in number fields. Link to comment Share on other sites More sharing options...
-Queue- Posted August 15, 2005 Share Posted August 15, 2005 Ah, you are correct. It works as long as you do not format the number field otherwise. Link to comment Share on other sites More sharing options...
DanBrill Posted August 16, 2005 Author Share Posted August 16, 2005 TextColor only works with text. I am curious, though, what the purpose of Evaluate(OverRidePrice) is. Is there a formula or number in OverRidePrice? Thanks, that's what I was concluding. Maybe FM8 will have true condition formatting. I've created another calc field whose result is a container, so if the condition is met it displays a yellow block which highlights the field. Good enough as a workaround. OverRidePrice is a text field where the user can enter their own calculation. Instead of sticking in "4", they can put in "2+2". Its easier than doing the math on some scratch pad on the side, helps the user remember how they arived at their conclusion, and easier to go back and edit later. Basically makes a calc field result like a spreadsheet. Link to comment Share on other sites More sharing options...
DanBrill Posted August 16, 2005 Author Share Posted August 16, 2005 You don't mean that it doesn't work with numbers do you Queue? I use text color all the time in number fields. Yeah, I've got to format the number field to a fixed number of decimal places, so that nixes the ability to add text color. Link to comment Share on other sites More sharing options...
-Queue- Posted August 16, 2005 Share Posted August 16, 2005 Well, you could use a formula such as the one displayed here to format your number in the calculation instead. Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6683 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