Say I have a data field (call it Results.MyString) that looks like this in a text box in my report:
Some text here for all to read.
Also, say that I have a data field (call it Results.MyParam) that has this value:
here
Is there a way to conditionally format the text box so that it would search Results.MyString for any matches to Results.MyParam and change the color of them?
The end result would have the word "here" be a different color (ie Red), but the rest of the text in the text box be Black.
Selected Text is what you are looking for.
Two parts to the answer. 1. Hook into the code window by opening the Report parameters Code tab. Place your functions in the code window. 2. You can make a textbox expression placeholder react to HTML tags by enabling that property on the expression placeholder. (You can Google 'ssrs placeholder expression' for specifics.)
Your function could parse the text, find target string, dynamically surround the target with the appropriate HTML color tags and return the expression to the textbox.
Related
I'm using Apex 5.1. I have a form with several display-only items. I'd like to bold or color the label to distinguish it from the text. I see a field for Table Cell Attributes in the Label section, but I don't know how to indicate something like Bold or Color.
By the way, I have the Escape Special Characters option set to NO so that I can display the text in the display-only field without the HTML tags.
If you want ALL the labels on a page to be bold, you should use CSS, e.g. in the page Inline CSS attribute add this:
.t-Form-label { font-weight:bold; }
Should be fairly simple.
if your current label is Employee Name
set it to bold by putting this into the label property: <b>Employee Name</b>
want to combine two database field having datatype string.from that two fields first one make bold.
e.g.-EmployeeName(with Font Bold)+Address(with regular font).
i am using VS 2008 in build crystal report.
try below:
Take a formula and write below code:
"<b>"+EmployeeName+"</b>" + Address
Then go to the format field of the formula and then to paragraph tab there change the text representation to HTML Text
I am trying to create a script in Filemaker, so that when one field contains a specific value it will go to another field, select the text and change that field text color, just on that specific record. Is there an applescript method to change selected text from one color to another?
(I run a small B&B and am trying to get fields to change to red when the reservation cancelled field is selected.)
You can do this by applying Conditional Formatting to the text field when in Layout mode; no script required.
In the database table I have a CLOB column that stores content with html markup. To display the content, I have a "Hidden" item called P4_DESCRIPTION and in the region that I want to display the value of the item, I use &P4_DESCRIPTION. .
Unfortunatelly it is not evaluating the HTML markup and displays the content as it is stored in the DB.
I also tried to change the P4_DESCRIPTION from "Hidden" to "Display Only" but I have the same problem. A workaround that I found is that if I have the P4_DESCRIPTION as "Display Only" and in the region I keep the &P4_DESCRIPTION. then the &P4_DESCRIPTION. will evaluate the HTML code. In this case I have hide with CSS the item and I will have the result I want. But I suppose it's a dirty way of doing it.
What is the clean way of displaying the content of the column that contains HTML markup? (btw to create the content of that column I used the rich text editor field)
Set the item to Display Only and set Escape special characters on it to No.
I have such a case where a Text Box's visibility is dependent on a row group's visibility (let's say the group is called GroupA). Actually this Text Box is showing the title of this row group, so only if the row group is visible, this text box would appear. I guess I can achieve this by setting the visibility of this text box using an expression. However, I don't know how to express the GroupA's visibility in expression. Please help, thanks!
Pass a parameter to the report expressing if the GroupA is visible, then use this parameter to set the textbox visibility.
Post an example of your code... or explain the logic that shows/hides the GroupA.
If the logic is the presence of records then the you can do this check outside the report, inside the code, and pass this information as parameter.