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:
Related
I have an Oracle APEX application (current release) that is using CARDS. I WANT an icon with 4 text columns to be displayed. I am getting an icon with 3 text columns displayed, and I don't know what I am doing wrong. The column card_subtitle is the column not showing. The SQL I am using returns data for all attributes…
select
path_id,
name card_title,
description card_subtitle,
owner card_text,
'Benchmark data' card_subtext,
path_id card_initials,
…
When I run the query from SQL, card_subtitle does have data. It is defined as varchar2 like the other columns. I have set template options to show 4 lines. As an alternative, I have tried taking two columns and concatenating them together with an HTML break ('< b r >') in between, but < b r > is displayed, instead of causing a line break. (Note I had to put in extra spaces so that SO would actually show the code...)
When run, the card displays as:
My template options are defined as:
select the column and in the security tab under "Escape special characters" choose the option NO.
this is for the line break to work
Please follow the below steps
1.Select the region
2.select the region attribute
3.goto the card region template
4.select the body text auto it will show the full content
there is only one disadvantage, that means, if you are enabled body text auto, the card alignment issue will came.
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>
I have an interactive grid in an APEX application, and one of the columns (header ATTACHMENT) has URLs that open in a new tab. However, as part of the functionality of an interactive grid, I am unable to edit the URL within this column. All the columns are editable, but since I changed this column to a 'Link' the user cannot edit it. I also tried single row view, but same.
Is this possible?
Thanks
See my interactive grid
How about specifying the same column (attachment) twice? One would be used for editing purposes, and another one as a link. Something like this:
select
id,
attachment edit_url,
'Link' link_url
from your_table
ID is the primary key column
EDIT_URL is a usual Text Field
LINK_URL is a Link column
its "Query only" property has to be set to "Yes"
"Escape special characters" set to "No"
When you run the page, it'll show 3 columns; EDIT_URL will be editable. Once you modify that column's value and save the changes, LINK_URL will reflect that change and - when you click the "Link" word in that column, it'll lead you to the modified URL.
I am in a report page in APEX. I went to the report attributes page and inside that are columns which each have their own column attributes. I needed to know how to use the value of one column while I am in a separate column's attribute page. With the picture attached, I try to do above using #COLUMNNAME# to get the value, but the correct value is not being used. You use hashtags to reference column values in the column formatting section.
Javascript/Dynamic Action:
$('.dis_flag:contains(disabled="true")').parents('td[headers="DIS"]').siblings('td[headers="PHONE"]').children('input:text').attr('disabled', true);
where:
DIS - alias of my column, indicating disable editing or no (if disable it contains value disabled="true". But it can have any another value).
dis_flag - class name, i added for this column in "Column Formatting" -> "CSS Class". I added this class to refer this value more easy.
PHONE - alias of column, that must be disabled.
You can add this javascript code to the
"Page Load" Dynamic Action
"Page Attributes" -> "JavaScript" -> "Execute when Page Loads".
Report template. Making your own report template is more difficult, and hard to explain in two words. Just go to the templates list, find report template named Two Column Portlet, type Named Column (row template) and maybe you will understand what i mean.
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.