Report of the apex - line break
Hello
I have a table with the information from the log.
In the region of report I did a simple sql query as
Select logdata.l_id, logdata.text
of logdata
where logdata.l_id =: P1_ID;
Now, I have all the information for my client, but for now the apex report looks like this, for example for 3 entries:
L_ID | TEXT |
---|---|
1 | ABCDEFG hijklmn opqrs tuvwxyz |
2 | Test1 test2 test3 |
3 | blah blah blah blah blah blah blablablablablablablablablablablablablablablablablabla |
How is it possible to break the line after a special length, while I will you have such a report?
L_ID | TEXT |
---|---|
1 | ABCDEFG hijklmn opqrs tuvwxyz |
2 | Test1 test2 test3 |
3 | blah blah blah blah blah blah blablablablablab ablablablablablablablablablablablabla |
Any ideas? What I have to put in place? A short example would be useful.
I use apex 3.2 on a company server.
DB2000 wrote:
Hello
I have a table with the information from the log.
In the region of report I did a simple sql query as
Select logdata.l_id, logdata.text
of logdata
where logdata.l_id =: P1_ID;
Now, I have all the information for my client, but for now the apex report looks like this, for example for 3 entries:
L_ID TEXT 1 ABCDEFG hijklmn opqrs tuvwxyz
2 Test1 test2 test3 3 blah blah blah blah blah blah blablablablablablablablablablablablablablablablablabla How is it possible to break the line after a special length, while I will you have such a report?
L_ID
blah blah blah blah blah blah blablablablablab
ablablablablablablablablablablablabla
Any ideas? What I have to put in place? A short example would be useful.
I use apex 3.2 on a company server.
To begin, what is the real nature of the data 'blablablablablablablablablablablablablablablablablabla '? Why it does not contain white spaces that would allow him to break naturally? (Questions of this nature involving the space without text continue to flow upward. No one ever gives a satisfactory explanation how these data, and why it contains no spaces.)
I have an old example for a standard report, but it should be easier in modern browsers. Add the following style sheet to the HTML header in report page properties:
where the TEXT is to wrap column alias. Change the width setting as needed.
Tags: Database
Similar Questions
-
The number of characters in the CLOB column is supported by the report of the APEX
Hello
Actually, I have a report of the Apex based on CLOB column, which includes data whose length exceeds 10,000 characters.
up to 10,000 characters, it works fine, but once it get records with characters more than 10 + lift
ORA-06502: PL/SQL: digital or value error: character string buffer too small
Thank you and best regards,
Ashish
2902196 wrote:
Please update your forum profile with a recognizable username instead of "2902196": Video tutorial how to change username available
Always include the information referred to in these guidelines when you post a question: How to get the answers from the forum
Actually, I have a report of the Apex based on CLOB column, which includes data whose length exceeds 10,000 characters.
up to 10,000 characters, it works fine, but once it get records with characters more than 10 + lift
ORA-06502: PL/SQL: digital or value error: character string buffer too small
The maximum size of a column report CLOB value is 32 KB. However, the maximum size for the content of the line of the full report is also 32 KB (including the HTML markup), so you can be hitting this limit because of the size of your 10 K CLOB data + the rest of the line.
According to the database character set and the characters which that contains data, the character encoding may use more than one byte to represent a character.
-
How do the query select outer join to a report of the APEX
Hi all
I'm Ann.
I have a select statement that is used to calculate statistics for a month (October 2012 in this example)
Select ph.phase_number
sum ((case
WHEN ph.date_finished IS NULL or ph.date_finished > last_day (TO_DATE (' ' Oct 2012 ', ' MY YYYY' "))
THEN last_day (TO_DATE (' ' Oct 2012 ', ' MY YYYY' "))
Of OTHER ph.date_finished
END)
(-ph.date_started + 1) / count (def.def_id) as avg_days
Ph phase_membership
inner join court_engagement this on ph.mpm_eng_id = ce.engagement_id
join in-house defendant def on ce.defendant_id = def.def_id
where def.active = 1
and ph.date_started < = last_day (TO_DATE (' ' Oct 2012 ', ' MY YYYY' "))
and ph.active = 1
and UPPER (ce.court_name) LIKE '% '.
Rollup Group (phase_number)
;
The result is as below
Phase_Number AVG_DAYS
Phase One 8.6666666666666667
Phase two 14.6
Phase three 12
11.4615365
I have another list of selection mainly the list of months between two date value.
Select to_char (which_month, 'LUN YYYY') as display_month
de)
Select add_months (to_date (' ' August 2012 ', ' MY YYYY' "), rownum-1) which_month
of object
where
rownum < = months_between (to_date (' ' Oct 2012 ', ' MY YYYY' "), add_months (to_date (' ' August 2012", "MY YYYY"), - 1))
order of which_month)
The query result is as below
DISPLAY_MONTH
AUGUST 2012
SEP 2012
OCT 2012
Is it possible I can join these two select statement above to generate a comparable result:
Days of month Phase number Avg
August 2012 Phase One 8.666
Sep 2012 Phase One 7.66
Oct 2012 Phase One 5,66
August 2012 Phase two 8.666
Sep 2012 Phase two 7.66
Oct 2012 Phase two 5,66
August 2012 Phase three 8.666
Sep 2012 Phase three 7.66
Oct 2012 Phase three 5,66
Or
Days of month Phase number Avg
August 2012 Phase One 8.666
August 2012 Phase two 7.66
August 2012 Phase three 5,66
Sep 2012 Phase One 8.666
Sep 2012 Phase two 7.66
Sep 2012 Phase three 5,66
Oct 2012 Phase One 8.666
Oct 2012 Phase two 7.66
Oct 2012 Phase three 5,66
And it can be controlled by Phase number or month.
My other colleague suggested I should use a left outer join, but after having tried many ways, I'm still stuck.
I tried select is
Select a.display_month, b.* in)
Select to_char (which_month, 'LUN YYYY') as display_month
de)
Select add_months (to_date (' ' August 2012 ', ' MY YYYY' "), rownum-1) which_month
of object
where
rownum < = months_between (to_date (' ' Oct 2012 ', ' MY YYYY' "), add_months (to_date (' ' August 2012", "MY YYYY"), - 1))
order which_month)) a left outer join
(Select to_char (ph.date_finished, 'MY YYYY') as join_month, ph.phase_number)
sum ((case
WHEN ph.date_finished IS NULL or ph.date_finished > last_day (TO_DATE (a.display_month, 'MY YYYY'))
THEN last_day (TO_DATE (a.display_month, 'MY YYYY'))
Of OTHER ph.date_finished
END)
(-ph.date_started + 1) / count (def.def_id) as avg_days
Ph phase_membership
inner join court_engagement this on ph.mpm_eng_id = ce.engagement_id
join in-house defendant def on ce.defendant_id = def.def_id
where def.active = 1
and ph.date_started < = last_day (TO_DATE (a.display_month, 'MY YYYY'))
and ph.active = 1
and UPPER (ce.court_name) LIKE '% '.
To_char (ph.date_finished, 'MY YYYY'), group (phase_number) rollup) b
On a.display_month = b.join_month
but then I get an error
SQL error: ORA-00904: "A." "" DISPLAY_MONTH ": invalid identifier
I need to view a report on the APEX with option for people to download at least format CSV.
Already 1 inteactive report in the page, so I don't think adds another interactive report without using the iframe trick.
If any of you have any ideas, please help.
Thank you very much.
AnnHello Ann,.
Frank has done a very good job. I am also impressed.
Is in regard to your correction to his question, the problem is on this replacement you did
last_day(TO_DATE(am.which_month,'MON YYYY'))
AM.which_month is already a date type, and you don't need to convert it to this day.
Here is the correct way:last_day(am.which_month)
There are also sometimes with the data you've posted have no line for this month. So I also added a function NVL to display 0 under avg_days for these cases.
Here is my corrected query:
DEFINE startmonth = "Aug 2012"; DEFINE endmonth = "Oct 2012"; WITH all_months AS ( SELECT ADD_MONTHS(to_date('&startmonth','MON YYYY'), ROWNUM-1) AS which_month , ADD_MONTHS(to_date('&startmonth','MON YYYY'), ROWNUM ) AS next_month from all_objects where rownum <= months_between(to_date('&endmonth','MON YYYY'), add_months(to_date('&startmonth','MON YYYY'), -1)) ) SELECT TO_CHAR (am.which_month, 'Mon YYYY') AS month , ph.phase_number , NVL(sum ( (CASE WHEN ph.date_finished IS NULL OR ph.date_finished > last_day(am.which_month) THEN last_day(am.which_month) ELSE ph.date_finished END ) - ph.date_started + 1 ) / count(def.def_id), 0) as avg_days FROM all_months am LEFT OUTER JOIN a_phase_membership ph PARTITION BY (ph.phase_number) ON am.which_month <= ph.date_started AND am.next_month > ph.date_started AND ph.date_started <= last_day(am.which_month) -- May not be needed AND ph.active = 1 LEFT OUTER JOIN a_engagement ce ON ph.mpm_eng_id = ce.engagement_id AND ce.court_name IS NOT NULL -- or something involving LIKE LEFT OUTER join a_defendant def ON ce.defendant_id = def.def_id AND def.active = 1 GROUP BY ROLLUP(phase_number, am.which_month) ORDER BY am.which_month , ph.phase_number ; The output is: MONTH PHASE_NUMBER AVG_DAYS -------- -------------------- ---------- Aug 2012 PHASE ONE 0 Aug 2012 PHASE THREE 0 Aug 2012 PHASE TWO 0 Sep 2012 PHASE ONE 12 Sep 2012 PHASE THREE 1 Sep 2012 PHASE TWO 9 Oct 2012 PHASE ONE 8 Oct 2012 PHASE THREE 0 Oct 2012 PHASE TWO 14 PHASE ONE 11 PHASE THREE 1 PHASE TWO 11.5 9.71428571
I don't know if that's really what you want. In the case check it and let me know.
Kind regards.
Al -
UTF8 National characters in the reports of the APEX
Hello
We have a table of type NVARCHAR2 column (200), which contains characters russion (utf8).
It is stored and displayed correctly in our development tools.
However, in the reports of the APEX (Classic and IR), the values are truncated. It's the same thing when you make a SELECTION in the SQL workshop.
Once the setting (SELECT * FROM NLS_DATABASE_PARAMETERS):
PARAMETER VALUE NLS_NCHAR_CHARACTERSET AL16UTF16 NLS_LANGUAGE AMERICAN NLS_TERRITORY AMERICA NLS_CURRENCY $ NLS_ISO_CURRENCY AMERICA NLS_NUMERIC_CHARACTERS ., NLS_CHARACTERSET WE8ISO8859P1 NLS_CALENDAR GREGORIAN NLS_DATE_FORMAT DD-MON-RR NLS_DATE_LANGUAGE AMERICAN
APEX Application is created by default, no globalization setting is changed.
Any ideas?
Best regards
Martin
-
Are the possible line breaks in the first argument to apex.confirm?
I have an apex.confirm that looks like this and works very well.
JavaScript:apex.confirm ("all data for this commitment will be permanently deleted. Click OK to confirm the deletion of engagement & P21_ENGAGEMENT_ID., or Cancel to keep it. ',' DELETE');
I would like to put a newline between the sentences, as well as housing starts "Click OK... "on a new line in the pop-up dialog box. Is this possible?
Use the Apex 4.1.1.00.23 versionMark T. says:
I have an apex.confirm that looks like this and works very well.JavaScript:apex.confirm ("all data for this commitment will be permanently deleted. Click OK to confirm the deletion of engagement & P21_ENGAGEMENT_ID., or Cancel to keep it. ',' DELETE');
I would like to put a newline between the sentences, as well as housing starts "Click OK... "on a new line in the pop-up dialog box. Is this possible?
Use a new line of JS in the string:
apex.confirm('All data for this Engagement will be irretrievably deleted.\nClick OK to confirm deletion of Engagement &P21_ENGAGEMENT_ID., or Cancel to keep it.','DELETE')
-
Line of update in the report on the special line button click
Hello
With the help of Apex 4.0.
I have a requirement like if there is a report that displays data on the search. I've created a report with the sql query. And it works properly.
In the columns of the report, there is a column that has the list of selection (static), and the user must be able to select the value of the list and updated that particular line.
I added a button and calls the javascript function to update the value with the AJAX code. However, it is not value select list returning to update.
Is there another way to implement this requirment or please suggest where I'm wrong? Please advice.
Thank youHello
Page 900 now works.
I have the target URL of the link value
javascript:void(0)
link attributes
onclick="update_queue_status(this,'#EMPNO#')"
JavaScript
I also created user to developer for ASSISTANCE from your workspace
Kind regards
Jari -
interactive report in the apex of link in pdf format
I'm building an interactive report based on a view of my oracle table. I want to use the single line view icon to view pdf reports that already exists on my web server. For example, if my line id is xxx, name the pdf file would be xxx.pdf.
How can I steer to the pdf based on the interactive report right?
Also how can I restrict the security of the pdf file for those who sail through the apex?
Thank youI won't get into the politics of the opportunity to leave the files in the o/s level, or store them in a table. The pros & cons range from the use of Oracle, generation of size redolog tablespace, backup & duration of restoration on the one hand, to the lack of RI and potential security problems of the file server on the other.
If your file is stored in a table or an o/s, you can get it in a blob and then use WPG_DOCLOAD.download_file to view it.
http://Apex.Oracle.com/pls/OTN/f?p=31517:64
Re: Open a file from the file server: security problemBy displaying the image via a call to pl/sql, you can easily check that the user is logged on and the right to consult the file before posting to protect themselves against the bookmarking, URL hacking or whatever.
-ONE
-
remove the editfield line break
Hi I have a newline removal of difficulty of editfield. The situation is that I have editfield and the user inserts the body of the text.
When the user clicks on a button, I want all the characters than insert user to show online with no spacing or no line breaks. I used StringUtilities.removeChar (String, "") to remove the empty spaces, but I don't know how to remove line breaks ("feed").
Please help and thank you!
Thanks for the suggestion, but I found a simple way using two Editifields!
-
Is there a way to generate a report via the command-line script or groovy?
I would like the option to generate a report (for example, model "Host physical load summary") from the command line, where I will provide the settings he needs. Is there a way to do in groovy?
Okay, maybe this constant is not declared in 5.5.8.2 yet. Just replace-1
-
Display an image BLOB in a report of the APEX
Hello
I have a BLOB column in a table that contains an image I want to display in a report.
The table definition for the table (MAG_IMAGES) that I store the BLOB in is:
CREATE TABLE 'MAG_IMAGES '.
(NUMBER OF 'MAG_IMAGE_ID',
VARCHAR2 (200) "NUMERO_IMAGENOM_IMAGE."
BLOB "CONTENT."
'MIME_TYPE' VARCHAR2 (1000).
NUMBER OF "DOC_SIZE."
'CONTENT_TYPE' VARCHAR2 (1000).
VARCHAR2 (20) "DISPLAY_AREA."
TIMESTAMP 'LAST_UPDATE_DATE' (6).
ENABLE 'MAG_IMAGES_PK' CONSTRAINT PRIMARY KEY ('MAG_IMAGE_ID')
)
/
It's the Vendor_Group Table where I store the Image_Id.
CREATE TABLE 'VENDOR_GROUP '.
(NUMBER OF 'VENDOR_GROUP_ID',
VARCHAR2 (100) "VENDOR_GROUP_NAME."
"IMAGE_ID" NUMBER
ENABLE 'VENDOR_GROUP_PK' CONSTRAINT PRIMARY KEY ('VENDOR_GROUP_ID')
)
/
I created the following procedure IMAGE_DISPLAY, which I have from a previous discussion forum.
create or replace PROCEDURE image_display (p_image_id number)
AS
l_mime VARCHAR2 (255);
l_length NUMBER;
l_file_name VARCHAR2 (2000);
l_content BLOB;
BEGIN
SELECT content, Mime_type DBMS_LOB.getlength (content)
IN l_mime, l_content, l_length
OF mag_images
WHERE mag_image_id = p_image_id;
OWA_UTIL.mime_header (NVL (l_mime, "application/octet"), FALSE);
HTP.p ("Content-length: ' |") l_length);
OWA_UTIL.http_header_close;
WPG_DOCLOAD.download_file (l_content);
EXCEPTION
WHEN OTHERS RAISE.
END image_display;
I then create a region of APEX report with the following source:
Select a.group_product_list,
' < img src = "image_display? p_image_id =' | NVL(a.image_id,0) | "" height ="" | 100. "" / > "photo
vendor_group a, mag_images b
where image_id = b.mag_image_id (+)
and mag_vendor_id = 2;
The Image does not appear, but it looks like this below. I put the column attribute 'Standard report Column '.
Can someone please tell me what I'm doing wrong?
Thanking you in advance
Dominic
Dominic Dovale wrote:
Hello
I tried to recreate the region from scratch, even in another page altogether but still no luck.
If I run the report without defining the column in a BLOB with its attributes (MIMETYPE column, Table etc.), he does not fail, but returned the following, which is of course the length of the BLOB. The problem only occurs if I set the attributes. Any other suggestions?
Include MAG_IMAGE_ID as a hidden column in the report.
-
How to remove the default line break when you export in XML format?
Hello
I'm using FDK 11 to convert a FrameMaker to XML file. Basic example as in the "guide structured Import/Export API Programmer" works very well. But all my files frame long paragraphs which, then the conversion is a line break after a length that appear to be the default. Hereby, the length of the XML and the readability becomes tedious. Here is the snapshot of the transformation and the piece of code used. Please let me know if there is a function that allows to eliminate this default behavior.
#include "futils.h".
extern VoidT Structured_ApiEmergency ((VoidT)) FARGS;
extern VoidT Structured_ApiInitialize ((init IntT)) FARGS;
extern VoidT Structured_ApiCommand ((command IntT)) FARGS;
extern VoidT Structured_ApiNotify FARGS ((IntT notification,
F_ObjHandleT docId, sparm StringT,
IntT iparm));
VoidT F_ApiEmergency() {}
Structured_ApiEmergency();
}
VoidT F_ApiInitialize (IntT init) {}
Structured_ApiInitialize (init);
}
VoidT F_ApiCommand (IntT command) {}
Structured_ApiCommand (Command);
}
VoidT F_ApiNotify (IntT notification,
F_ObjHandleT docId, StringT, IntT iparm sparm) {}
Structured_ApiNotify (notification, docId, sparm, iparm);
}
Thank you
Vincent
[Message moved from General Discussion by moderator]
Hi Vincent,.
You use a structured application? If so, you might try reading/writing as a rule:
writer
{
line break is 1000 characters;
}
.. .or whatever length you deem appropriate.
Russ
-
String after ' <; ' character is not in the reports of the Apex
Hello
I've created a report where a column has ' < ' and ' > ' symbol included in this one.
example of
1. abc < def girou
2 abc < def girou
3 abc > def girou
If assumes that the data for the column "xyz" in table 1 has 3 data into it above.
In a report, I show this column with a simple select statement "xyz select from table1.
the output like this
1. abc
2 abc < def girou
3 abc > def girou
The report ignores the string after ' < ' and works fine if I have space.
Can someone help me with this please
Published by: user12589255 on July 27, 2010 14:39
Published by: user12589255 on July 27, 2010 15:21Hi user12589255,
I think he just change report column display in the "Standard report column" type to "escaped...". "to overcome this problem.
Concerning
Patrick
-----------
My Blog: http://www.inside-oracle-apex.com
APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins -
Report on the APEX users and workspaces...
How are stored the apex users... is there a table that I can access...
I would like to create a report in my OBIEE that displays what users exist in what workspaces apex (apex security)...Hello
Users of the workspace are stored in table.
If you are on version 3.2, something likeSELECT user_id, user_name, first_name, last_name, security_group_id, apex_util.find_workspace (security_group_id) AS workspace FROM apex_030200.wwv_flow_fnd_user
Of course, you must have privilege to query this table
Check also check WWV_FLOW_USERS
BR, Jari
-
Call Javascript in the header of the report of the Apex
Hello
I have a javascript function in my html page header I would like to call from my report using a link. I tried to configure the URL of the link column in the report attributes box: javascript:send_sub_email('sharon'). It does not work. My other problem is to know how to pass the value of column of the report to the javascript function. Does anyone know how to do this? All the suggestions and help is greatly appreciated.
SharonSharon,
You should have your JS function in the header section of the HTML Page...
Lets say your a column named 'EMP_ID' report and now in your report, change the link column and the target set in the updated URL section form URL and after
javascript:send_sub_email('#EMP_ID#');
So when the user has clicked on the link, it'll pass respective EMP_ID to JS function
See you soon,.
Hari -
In my report, I'll run the application process, it is not display 34 rows in the data, but shows only 3 rows that too hardcode rownum < = 20
the query run perfect in backend
FOR rec IN (select distinct class_name, id r
from table_name
where country_id = (select distinct domicile_country_id of ()
Select domicile_country_id from table_name table where id = l_ser and domicile__id is not null
Union
Select domicile_country_id from table_name table where id = l_ser and domicile__id is not null)) and rownum < = 20 order by 1
)
Help, please
Thanks to all the problem showed lines but the symbol '&' in one line appeared the problem so
used REGEXP_REPLACE (column_name, ' [and] +', 'and' ') and its done
Maybe you are looking for
-
Result, the safety of this new feature of file system permissions, or are password encrypted notes?
-
Satellite A305-S6825: Volume control does not stop right or left
We recently bought the Toshiba: Satellite A305-S6825 and note that the Volume on the front panel control seems to turn left and right, but does not seem to stop. I thought that a few twists to the right/left, he'd stop, but no. Everyone is the same t
-
need to get the Service Pack 2 and 3 for XP home
Recently installed new h-drive. Re-installed XP Home with services Pack 1 a. I need to get the Service Pack 2 and 3, but none of Microsoft download sites will work for me. What should I do to fix this?
-
More of a problem of operating systems XP and how to bind the program files for the new version My system was not properly initialize (continulally reseting) to repair the fault that I had to make a form of repair of the windows installation CD. I no
-
Windows Vista Home premium all-in-one is downloadable windows 10
Windows Vista Home premium all-in-one can download windows 10 and run it because I have a windows vista Home premium service pack 2. Information system I've heard rumors that you can download windows 10 on windows vista and I don't know if its true o