Mark,

 

As long as you have named colors in FP that match a field, using field
values to change the color of your text will work. We use a script like this
to alter text color:

 

return "<color name =\"" + Field("Target_Vehicle_Model") + "\">" 

+ "Your " + Field("Target_Vehicle_Model") + " is waiting at"

 

 

Change your color name value to:

 

'<color name =\"" + Field("Color Field") + "\">'

 

You should get your result.

 

Doug Pershing

VP-Data & Production

WMSG Inc

1278 Titan Dr

Dallas, TX 75247

(214) 640-2224

e-mail [EMAIL PROTECTED]

web http://wmsginc.com

click on information and news to see the latest at WMSG Inc.

 

 

-----Original Message-----
From: Mark Hardee [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 31, 2007 4:54 PM
To: FusionPro Users Forum
Subject: [fusionpro] Text colors revisited

 

I have a rule that seriously manipulates several fields. In that rule 

are text color changes. I assume that you place the rule in the text 

editor box and color it the "base" color and the color tags within that 

rule should react..

 

Basically the rule is colored white and ONLY the tagged protion of the 

result should display - but..

 

It ain't working...

 

Ideas?

 

Rule Below:

 

switch (Field("Large ").toLowerCase())

{

    case "FOR".toLowerCase():

        return Field("SuperL") + "<superscript>" + Field("Large ") +" $" 

+ "</superscript>" + Field("SuperR")+ '<colorname="Black">' 

+"<superscript>" +"."+ Field("Sub") + "</superscript>" + '</color>';

    case "2".toLowerCase():

        return "<superscript>" + Field("SuperL")+"</superscript>" + 

Field("Large ")+ "<superscript>" + '<colorname="Black">' + Rule("Sub1")+ 

"</superscript>"+ '</color>';

    case "20".toLowerCase():

        return "<superscript>" + Field("SuperL")+"</superscript>" + 

Field("Large ")+ "<superscript>" +'<colorname="Black">'  + Rule("Sub1")+ 

"</superscript>"+ '</color>';

    case "30".toLowerCase():

        return "<superscript>" + Field("SuperL")+"</superscript>" + 

Field("Large ")+ "<superscript>" + '<colorname="Black">'  + 

Rule("Sub1")+ "</superscript>"+ '</color>';

    case "40".toLowerCase():

        return "<superscript>" + Field("SuperL")+"</superscript>" + 

Field("Large ")+ "<superscript>" + '<colorname="Black">' + Rule("Sub1")+ 

"</superscript>"+ '</color>';

    case "50".toLowerCase():

        return "<superscript>" + Field("SuperL")+"</superscript>" + 

Field("Large ")+ "<superscript>" + Rule("Sub1")+ "</superscript>"+ 

'</color>';

    case "75".toLowerCase():

        return "<superscript>" + Field("SuperL")+"</superscript>" + 

Field("Large ")+ "<superscript>"  + '<colorname="Black">'+ Rule("Sub1")+ 

"</superscript>"+ '</color>';

    case "9".toLowerCase():

        return "<superscript>" + " "+ Field("SuperL") + "</superscript>" 

+ Field("Large ")+ "<superscript>"  + '<colorname="Black">'+ 

Rule("Sub1")+ "</superscript>"+ '</color>';

    default:

        return "<superscript>" + Field("SuperL")+"</superscript>" + 

Field("Large ")+ "<superscript>" + '<colorname="Black">' + Rule("Sub1")+ 

"</superscript>"+ '</color>';

}

 

 

Notice that the <colorname="Black"> tag is applied to a rule - I've 

tried it with just a field and it didn't work either..

 

HELP!

 

-- 

 

Mark Hardee

Director of Digital Services

 

Mercury Printing

A Consolidated Graphics Company

4650 Shelby Air Drive

Memphis, TN 38118

Plant: 901-345-8480

Direct: 901-462-3464

 

 

 

--

 

Users of FusionPro Desktop have unlimited free email support. Contact
Printable Support at [EMAIL PROTECTED] 

--

 

View FusionPro Knowledge Base, FusionPro Samples at

www.printable.com/vdp/desktop.htm

 

--

 

To unsubscribe send a blank email to [EMAIL PROTECTED]

--

 

 

--

 

--

 



--
Users of FusionPro Desktop have unlimited free email support. Contact Printable 
Support at [EMAIL PROTECTED] 
--
View FusionPro Knowledge Base, FusionPro Samples at
www.printable.com/vdp/desktop.htm

--
You are currently subscribed to fusionpro as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
--




--
Note:  All e-mail sent to or from this address will be received or otherwise 
recorded by the e-mail recipients of this forum. It is subject to archival, 
monitoring or review by, and/or disclosure to someone other than the recipient. 
Our privacy policy is posted on www.printplanet.com
--

Reply via email to