Oracle Apex Table Cell Attributes for a Page Item Label - oracle

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>

Related

Oracle APEX 5.0 multiple spaces show as single space in IR

I have an interactive report against a database table. One column contains multiple spaces in the middle of the string. The report is masking the multiple spaces and showing as only a single space. I want to show the exact table column value on the report.
I tried changing the column attributes from "Display as Text (escape special characters)" to "Standard Report Column" and nothing changed. I don't see any other APEX column attributes that will force the spaces to show. Any suggestions.
Column properties:
navigate to "file name" column's property palette (right hand side of the screen)
scroll down to static ID and name it somehow (for example, col_with_spaces)
Page properties:
go to page's property palette
scroll down to CSS and put this into the Inline CSS:
.a-IRR-table tr td[headers*="col_with_spaces"]
{
white-space: pre;
}
run the page; result:

change oracle apex tabular form column width

To change the column width of a tabular form, I have to put the below code into the HTML EXPRESSION field
<div style="width:20px;">#COLUMN_NAME#</div>
Is there any better way to do this? such as via the CSS on the header of the region?
Thanks
In form page, if you click on specific column, you will find menu on the right hand side. You can change column width under Appearance section or Advance section. There are places to change the column fields in under that sections.
Under Appearance section you can enter from width field.

Display HTML content inside a table cell - BIRT report designer

I have a dataset in which one of the column has html tags. When I try to bind the data column with a cell inside a table, the data is being displayed as it is - I see the html tags like < br >,< br > in the cell. Is there a way I can get rid of the tags and display the data with proper formatting?
Yes.
But a data item does not work for this.
You'll have to use a text item, and inside the text item, reference the data as row["MY_COLUMN"] (you know, what I mean). It is important to switch the text item's Content Type from the default Plain to HTML.

evaluate HTML content from item in region Oracle APEX

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.

SSRS 2008 partial string formatting

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.

Resources