Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / April 2006

Tip: Looking for answers? Try searching our database.

Dynamic vs. conditional formatting

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Greg S - 04 Apr 2006 18:16 GMT
Is there a way to change the formatting on an object (e.g. table background
color) and have that format dictated by a value in the XML?  I'm not talking
about conditional formatting, but true dynamic formatting.  For example: I
can use conditional formatting to change color, but I have to code the form
ahead of time to expect specific colors.  In a dynamic scenario I want to
have the content drive the color, but I don't want to restrict the list of
colors by creating a conditional formatting rule for each possible color.

pseudo code example
 Conditional formatting: if myValue = "green", set color = "green"
 Dynamic: set color = myValue
Greg Collins [InfoPath MVP] - 06 Apr 2006 17:58 GMT
You can probably do this by manually modifying the view XSL, but it will probably require that you use a Preserve Code Block to do it if you don't want to lose your changes the next time you save your form template from the designer.

Signature

Greg Collins [InfoPath MVP]
Visit http://www.InfoPathDev.com

Is there a way to change the formatting on an object (e.g. table background
color) and have that format dictated by a value in the XML?  I'm not talking
about conditional formatting, but true dynamic formatting.  For example: I
can use conditional formatting to change color, but I have to code the form
ahead of time to expect specific colors.  In a dynamic scenario I want to
have the content drive the color, but I don't want to restrict the list of
colors by creating a conditional formatting rule for each possible color.

pseudo code example
 Conditional formatting: if myValue = "green", set color = "green"
 Dynamic: set color = myValue
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.