Number in report column
How can i add % sign in the report number column? like 12%,15%
Thanks
KP
Change your report select query..
select to_char(num_col)||'%' percentage from tblCheers,
Hari
Similar Messages
-
Unable to setup fixed number of report columns based on a dynamic query
Hi guys, I need to find a way to replicate below output. Unfortunately it cannot be done using the column group feature due the fact it will create not so many rows as I need. In the below case it would create
only four columns. I need 10 columns. Basically for 100 m 6 columns would remain blank . 8 for 200 m .I'm using SRSS 2008R2
Query results:
Race Name Ranking
100m Andrew 1
100m Rachel 2
100m Chris 3
100m Drew 4
200m John 1
200m Billy 2
Report output should look like:
Race 1 2 3 4 5 6 7 8 9 10
100m Andrew Rachel Chris Drew
200m John Billy
Any suggestions?As I understand, you want a fixed number (10) of columns and you want them whether or not there are 10 rows returned by your dataset for a given race.
What is your dataset?
What if your dataset returns 15 races of a given type? Do you want 15 columns then?
Assuming your dataset is TSQL, you can use a matrix in your report if you tweak your dataset query. First, you need to add a "default" set of data that guarantees your 10 columns. This can be done with a set of UNION statements:
UNION
SELECT '100m' AS Race, '' AS Name, 1 AS Ranking
UNION
SELECT '100m' AS Race, '' AS Name, 2 AS Ranking
UNION
SELECT '100m' AS Race, '' AS Name, 3 AS Ranking
UNION
SELECT '100m' AS Race, '' AS Name, 4 AS Ranking
UNION
SELECT '100m' AS Race, '' AS Name, 5 AS Ranking
UNION
SELECT '100m' AS Race, '' AS Name, 6 AS Ranking
UNION
SELECT '100m' AS Race, '' AS Name, 7 AS Ranking
UNION
SELECT '100m' AS Race, '' AS Name, 8 AS Ranking
UNION
SELECT '100m' AS Race, '' AS Name, 9 AS Ranking
UNION
SELECT '100m' AS Race, '' AS Name, 10 AS Ranking
This gives you the 10 columns. In the matrix, set row group to Race and column group to Ranking. Set the intersecting detail cell to:
=Max(Fields!Name.Value)
This will give you 10 columns unless you have more than 10 rows returned for a given race.
"You will find a fortune, though it will not be the one you seek." -
Blind Seer, O Brother Where Art Thou
Please Mark posts as answers or helpful so that others may find the fortune they seek. -
The number of display columns in the report reached the limit. Help!!!
Hello Everyone,
This might be dumb question. But why do get this error with a IR report? and what is the solution for this. Please help me with this.
Error
The number of display columns in the report reached the limit. Please click Select Columns under Actions menu to minimize the report display column list.
Oh.. And also i have a blob column.. if the format is not given, then the table is fine.. but happen to get this error only when the blob download format is given.
Thanks and regards
John
Edited by: JB on Mar 30, 2012 11:08 AMHi,
i have set up a small test case on apex.oracle.com and I receive the same error if I use download format.
I have a table
test_blob (id number, name varchar2(10), blobcont blob)
If I create IR like
select
id,
name,
blobcont
from test_bloband then I define download format I hit the error.
If you want this to work you have to change your query to
select
id,
name,
dbms_lob.getlength(blobcont) blobcont
from test_blobAnd then again define download format for blob on blobcont column.
Regards,
Aljaz -
The number of display columns in the report reached the limit" Interactive Report
I get the error message of "The number of display columns in the report reached the limit" when trying to display less than 100 (100 is limit) columns when an aggregate has been created. This does not happen when an aggregate has not been added to the IR report. It seems to happen because I have a control break on as well. When I turn off the control break it works but is not the result that we want. Interesting enough, if I filter the results down to 500 rows it works just fine. Does oracle treat aggregates as columns!? This is a really odd issue that I really need to clear up.
Oracle 11g
apex 4.1.0.33
Thanks in advance,
Shawn.Hi,
i have set up a small test case on apex.oracle.com and I receive the same error if I use download format.
I have a table
test_blob (id number, name varchar2(10), blobcont blob)
If I create IR like
select
id,
name,
blobcont
from test_bloband then I define download format I hit the error.
If you want this to work you have to change your query to
select
id,
name,
dbms_lob.getlength(blobcont) blobcont
from test_blobAnd then again define download format for blob on blobcont column.
Regards,
Aljaz -
Maximum number of generic report columns
Clicking the "Use Generic Column Names (parse query at runtime only)" radiobutton makes the "Maximum number of generic report columns" a editable field with a default of 60.
This seems to be a new feature in 2.0, right?
So, is 60 columns not the hard maximum number of columns in a report anymore? What is the new limit? What if I type 200 in that text box?
Thanksand then use the column names as headings. We will
improve the usability of the report attributes page
in the next version of HTML DB and let users edit all
column attributes.While we are on the subject...
Re-ordering columns on the report attributes page is a huge pain. Doing them one at a time and page refreshing after each up/down arrow is very very slow.
Why dont you guys use some of the nifty drag-n-drop features from the Query Builder to do this re-ordering? That would be spiffy.
Another option is to just add a editable text field on each row to represent the column sequence #. I could just re-order a bunch of columns by changing this sequence number and click Save and the page refreshes and re-orders the list by this sequence number. Of course, there would need to be some Javascript to ensure that I dont give the same sequence number to more than 1 row.
[Netflix uses both the techniques above to let customers reorder movies in their queue]
Thanks,
Vikas -
To restrict the number of data columns displayed in BW Web report
Hi,
In the corresponding Bex query i am using 'Start Time' characteristic in the row. In the BW Web template i don't want the 'Start Time' to be displayed when i execute.
I tried to restrict the number of data columns displayed in the web item table properties but that did not help
Can i get some help
Thanks,
MalaHi Mala,
You can try out the following: Create a view on your query and in that view remove the Start Time char from the drilldown. Use this view as a data provider in the web template.
Hope this helps... -
Display an alert message through javascript when report column item is null
Hello,
I have a report column item which is an select list item and now i want to display an alert message when value is null, I mean no value is selected, this alert message should be fired when update button is clicked.
Can anyone please help me with this issue.
Thanks,
OrtonYou could try something like this:
declare
x INTEGER;
err_ct INTEGER := 0;
begin
x := 5; -- number of rows displayed
for i in 1 ... x (
IF wwv_flow.g_f08(i)) IS NULL THEN err_ct := err_ct + 1;
END IF;
end loop;
IF err_ct = 0 THEN
RETURN NULL;
ELSE
RETURN 'Nice error message: you must supply a value.';
END IF;This would be used with a PL/SQL validation: Function Returning Error Text. -
How to accessing current row report column value in Lov Query?
Hi,
which access methods (eg. bind variables, substitutions, ...) for getting the current row report column value can be used in the "Lov Query" property of a report column?
As what I know of and what I have read on the forum there are no bind variables for the report columns. For the "Link Text" property it seems that the column values exist as substitution strings (#COLUMN_NAME#). But they don't work in the Lov Query. => And would be good because of a hard parse each time the Lov query is executed.
The following post (Re: Simulating a correlated sub query in lov
is showing a solution to use package variables for temporary storage of the referenced value, but the only problem with that solution is that if a new record is added with the "Add rows to tabular form" process the package variable still contains the value from the last queried row! Is there a way (variable, APEX package, ...) to determine if the lov query is executed for a new record so that the package can return null?
I know that I could write the package in a way that the value is immediately cleared when lov_pkg.keyval is called (one time read), but then I would have to create several variables if I'm accessing the value multiple times in the query or in another query => I think an one time read solution would be very obscurely.
Thanks for your help
Patrick
http://inside-apex.blogspot.comHi Patrick,
I agree that it's a waste to continually use Ajax to go back to the server to get the contents of a dynamic select list.
There are no bind variables for any row item - but what you do have, as per my previous post, is the value of the data entered by the user in the first row. You can pass this into your application process (using get.add("VARIABLENAME", value)), which can use it to retrieve the correct LOV in your Ajax code - this will give you a "bind variable" that your process can use.
What you could do, however, is generate hidden select lists on your page - one for each possible LOV list and replace the contents of the new row's select list with the contents of the appropriate hidden select list. This is easy to do with javascript (using innerHTML functions). Obviously, though, the usefulness of this depends on the number and size of the select lists.
Even if you don't generate them to start with, you can keep a copy of any select lists returned by Ajax in the DOM for use on new rows. So, if you have retrieved a select list, you will have a copy of it in DOM which you can then copy into the new row. If you don't have the list in DOM, use Ajax to get it, store a copy of it and copy it into the new row.
Which method you use will depend on the number/size of select lists needed. If they are few in number and/or size, I would suggest generating hidden lists. If they are large, use Ajax to get them once, store them and then retrieve them from the DOM when needed.
There is another thread here where Arie recommends going to the server every time to make sure you get the most up-to-date data for the lists. If you want to follow this advice, for this reason, use get.add("VARIABLENAME", value) to pass the value to your process. If this is not an issue, you can use one of the other methods I outlined above.
Regards
Andy -
Interactive Report Column Headings and Row Height
I am using the div style="width:350px;" method to control the width of columns in various interactive reports. That works fine except for the following:
1. When creating filters, the <div...> stuff shows up along with the actual column heading, thus confusing some end users
2. Even when I uncheck the "Use same text for single row view" checkbox and then provide a simple single row view label, the <div> stuff still shows up on the single row view
Does anyone have a better solution?
Also, does anyone know of a way to limit the row height within an interactive report row? I have some columns of data that contain a large amount of HTML data and I'd like to be able to limit the number of rows that show on the report.
Is Oracle planning to provide some better control over the Interactive Report columns in another version? The Interactive Report is such a huge improvement in usability in APEX - it would be great to take it to another level by providing some better control over column width and row height.
Edited by: DaleB on Jun 18, 2009 8:54 AM
Edited by: DaleB on Jun 18, 2009 8:54 AMDale,
Unfortunately we don't have much we can use to do what you would like. I would have said it's impossible until version 4 but you could actually do something similar to what Roel has done. His trick is in the edit button. He changed the edit button to use an "onload" call to a JavaScript process. You could do the same but call a process that goes across the rows and styles each column. Now because you don't have a way to identify the column (can't use the order because the end user could change it) you'll have to write the code to look at the top row first and then style the appropriate column. As far as I can tell, this would be quite difficult and inefficient. Having said that if you need it that bad and would like some help with it, put up an example application on apex.oracle.com and provide the workspace/username/password and I'll take a look.
Regards,
Dan
http://danielmcghan.us
http://sourceforge.net/projects/tapigen
You can reward this reply by marking it as either Helpful or Correct ;-) -
Interactive Report Column Width adjustable?
I am using the interactive reports in 3.1.2 and love them. That said, I have a question/problem. I have a column in my report that is essentially comments. It often contains hundreds of bytes of text per row of data. When I use the interactive report I find no where that I can define a default column width or number of report rows to display. So, when I run the report, the column with the comments defaults to a column width of about 25 characters and this causes it to display many html rows for this report row and makes the report very ugly.
Does anyone know if there is a way to redefine a column in an interactive report to prevent this?Scott,
Using FOP.
Standard reports PDF can resize columns.
Interactive report does not. Additionally, the page size does not work the same as the regular reports. Moving between landscape and portrait changes the size of the height and width.
I assume there are several problems.
1. The report does not resize horizontally. I will have to create a second report to see if I can duplicate the issue.
2. The Print page of the report region does not have the same fields as the regular reports. I am not sure why or how to overcome the lack of being able to resize columns, etc.
3. The functionality on the page does not seem to all work. At least not the same way as the regular reports. Changing paper size and orientation are two examples I have verified.
4. Can't select a template. How can a different XSL-FO template be used?
I am going to try and push it to Word.
Sam
Edited by: slavanaway on Mar 26, 2009 1:13 PM -
Interactive Report Column Formating '%' symbol
Hi,
I have an intercative report that shows a column displaying a number and and the sysmbol %. The source query is similar to:
SELECT my_number||'%' as display_percentile
FROM dual;
Because of this the interactive report will only show this column as a string type and not number type, therefore my math filtering options are not available. Is there a way that I can display the column as a number type and still have it display as 50%
I am using Application Express 4.1.0.00.32
Thanks in advance.
Edited by: 968358 on 05-Dec-2012 02:09
Edited by: 968358 on 05-Dec-2012 02:10968358 wrote:
Thank you fac586,
Forgive me, I am a newbie at this and I am still at a loss. Where can I change the report column attributes to reflect css and alike. Do I need to do this on the report template or in the column attributes. When I have looked in the column attributes I cant see anywhere other than on the column link.Add a style sheet using the page HTML Header property attribute:
<style>
/* Replace COLUMN_ALIAS with the alias of the % column in your report */
td[headers="COLUMN_ALIAS"]:after {
content: "%";
</style> -
Batch Number Transaction Report
Dear Experts,
Is it possible to modify the form settings of Batches table in Batch Number Transaction Report as I need to add in some user-defined fields into it?
Below is the layout of my Batches table in the report:
Batches
# Item No Item Description Batch WhsCode Qty Status Manufacturing Date
and I would like to add in Width, Length & Height columns in the table.
I can't preset the value of length, width & height of the item in Item Master Data because different batches of same item will have different length, width & height. So I created these fields (Width, Length, Height) in Goods Issue & Goods Receipt and assigned different values there. After that, I need to do some references at Batch Number Transaction Report to find out which batches got the specified measurement of that item.
Thanks in advance.Hi Sachin. I think you have misunderstood what I mentioned before.
I want the report to show like this
Item No. Item Description Batch WhsCode Qty Direction Status T W L
A893S Pine 14 x 125 x 1030mm A123 WH01 100 In Released 14 125 1030
A893S Pine 14 x 125 x 1030mm A123 WH01 -10 Out Released 14 125 1030
A126B Ash 14 x 125 x 1090mm J123 WH01 50 In Released 14 125 1090
In fact, below is the result table that I get
Item No. Item Description Batch WhsCode Qty Direction Status T W L
A893S Pine 14 x 125 x 1030mm A123 WH01 100 In Released 14 125 1030
A126B Ash 14 x 125 x 1090mm J123 WH01 50 In Released 14 125 1090
using this query
SELECT T0.[ItemCode], T0.[ItemName], T0.[BatchNum], T0.[WhsCode], T0.[Quantity],
case when T0.[Direction]=0 then 'In' when T0.[Direction]=1 then 'Out' end Direction,
Case when T1.[Status]=0 then 'Released' end Status, T2.[U_Height], T2.[U_Width], T2.[U_Length]
FROM IBT1 T0
INNER JOIN OIBT T1 ON T0.BatchNum = T1.Batchnum and T0.Itemcode=T1.ItemCode
INNER JOIN IGN1 T2 ON T1.ItemCode = T2.ItemCode and T0.Quantity = T2.Quantity
WHERE T1.[ItemCode] =[%0]
Thanks,
Xavier -
How to update the null values to some number on the NUMBER type of column
Hello All,
I have one NUMBER type of column in DB table. It has some (null) values. I want to update with value 1. I tried to run the Update statement , It gives 0 rows updated.
SELECT objectid,attr20 FROM table;
object id attr20
====== ====
fff70b67-8d54-4ad7-bc57-7b40a0d8b219 (null)
cac5264a-b363-487b-bfe6-6b84d60064e9 (null)
2fc2a626-51d8-401c-9495-18aacd4c35c8 (null)
1b60bfa4-ff68-4488-adf6-2a83528c0e20 (null)
1c662829-24c1-4b3c-9289-0128e170c043 5
74f11331-545b-435f-bf4b-f57c7a6b4500 2
c941c1ac-a18e-47ec-843c-dbe2a5b51001 0
d7eba203-93c0-48ea-a109-9b06015ef387 0
eba72fa3-21d8-4489-bb93-917ebbd67de2 0
I ran following query but no success.
UPDATE eb_tcsservfnadoc SET attr20 = 1 WHERE attr20 = NULL
0 rows updated
UPDATE eb_tcsservfnadoc SET attr20 = 1 WHERE attr20 = null
0 rows updated
UPDATE eb_tcsservfnadoc SET attr20 = 1 WHERE attr20 = ''
0 rows updated
UPDATE eb_tcsservfnadoc SET attr20 = 1 WHERE attr20 =' '
Error starting at line 1 in command:
UPDATE eb_tcsservfnadoc SET attr20 = 1 WHERE attr20 =' '
Error report:
SQL Error: ORA-01722: invalid number
01722. 00000 - "invalid number"
*Cause:
*Action:
can some one help me out to update such values ????Hi,
"=" will not work for NULL values. Please remeber two NULL values are NOT same. Try IS operator.
UPDATE eb_tcsservfnadoc SET attr20 = 1 WHERE attr20 IS NULLRegards,
Avinash -
Need help with Javascript to get value of standard report column
Hello All,
Apex version 3.1
I have a SQL Query (Updateable report) region where I need to do some validations using an OnDemand Applicaiton Process and javascript. For this validation I need to use the serial number and the item id from the same report row. The function is called when the serial number is changed. I can get the serial number easily because it is a Text field, however the item id is a standard report column (making it a text field or hidden gives me a checksum error, long story). How do I get the value for the standard report column in order to set the value for an Application item to be used in my Application Process along with the serial number? Here is my code below.
<script>
function f_ValidateSerial(pThis)
// The row in the table
var vRow = pThis.id.substr(pThis.id.indexOf('_')+1);
//alert('Row is '+vRow);
// Display the serial number
//alert('The Serial Number is '+html_GetElement('f21_'+vRow).value);
var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=ValidateSerial',0);
get.add('F101_SERIAL_NUMBER',html_GetElement('f21_'+vRow).value);
get.add('F101_INVENTORY_ITEM_ID',+html_GetElement(?????+vRow).value); // Here's where I need to get the item id to set application item!!
gReturn = get.get();
if (gReturn)
alert(gReturn);
if(gReturn)
html_GetElement('f21_'+vRow).value = '';
</script>jarola wrote:
Hi,
Ok, No standard report column do not have name attribute-
You can add one extra column to report that is your Item Id with different alias.
Then change that column Display as to "Hidden".
Now you have hidden input where is your Item Id. Than input have name and id.
Regards,
JariBut this puts me back to my initial problem. When making the column hidden I get the checksum error...
Error in mru internal routine: ORA-20001: Error in MRU: row= 0, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process...
The item id is NOT in the table which I am updating (I use a subquery to get the data) so I think it has to be a standard report column. Hidden and Text Item (which have an item id) all generate the checksum error.
So I think I'm back to my original question. Given a standard report column on a row in a sql query (updateable report) region how do I get the value using Javascript?
Edited by: blue72TA on Aug 2, 2011 12:07 PM -
How to generate a second csv file with different report columns selected?
Hi. Everybody:
How to generate a second csv file with different report columns selected?
The first csv file is easy (report attributes -> report export -> enable CSV output Yes). However, our users demand 2 csv files with different report columns selected to meet their different needs.
(The users don't want to have one csv file with all report columns included. They just want to get whatever they need directly, no extra columns)
Thank you for any help!
MZHello,
I'm doing it usually. Typically example would be in the report only the column "FIRST_NAME" and "LAST_NAME" displayed whereas
in the csv exported with the UTL_FILE the complete address (street, housenumber, additions, zip, town, state ... ) is written, these things are needed e.g. the form letters.
You do not need another page, just an additional button named e.g. "export_to_csv" on your report page.
The csv export itself is handled from a plsql procedure "stored procedure" ( I like to have business logic outside of apex) which is invoked by pressing the button "export_to_csv". Of course the stored procedure can handle also parameters
An example code would be something like
PROCEDURE srn_brief_mitglieder (
p_start_mg_nr IN NUMBER,
p_ende_mg_nr IN NUMBER
AS
export_file UTL_FILE.FILE_TYPE;
l_line VARCHAR2(20000);
l_lfd NUMBER;
l_dateiname VARCHAR2(100);
l_datum VARCHAR2(20);
l_hilfe VARCHAR2(20);
CURSOR c1 IS
SELECT
MG_NR
,TO_CHAR(MG_BEITRITT,'dd.mm.yyyy') AS MG_BEITRITT ,TO_CHAR(MG_AUFNAHME,'dd.mm.yyyy') AS MG_AUFNAHME
,MG_ANREDE ,MG_TITEL ,MG_NACHNAME ,MG_VORNAME
,MG_STRASSE ,MG_HNR ,MG_ZUSATZ ,MG_PLZ ,MG_ORT
FROM MITGLIEDER
WHERE MG_NR >= p_start_mg_nr
AND MG_NR <= p_ende_mg_nr
--WHERE ROWNUM < 10
ORDER BY MG_NR;
BEGIN
SELECT TO_CHAR(SYSDATE, 'yyyy_mm_dd' ) INTO l_datum FROM DUAL;
SELECT TO_CHAR(SYSDATE, 'hh24miss' ) INTO l_hilfe FROM DUAL;
l_datum := l_datum||'_'||l_hilfe;
--DBMS_OUTPUT.PUT_LINE ( l_datum);
l_dateiname := 'SRNBRIEF_MITGLIEDER_'||l_datum||'.CSV';
--DBMS_OUTPUT.PUT_LINE ( l_dateiname);
export_file := UTL_FILE.FOPEN('EXPORTDIR', l_dateiname, 'W');
l_line := '';
--HEADER
l_line := '"NR"|"BEITRITT"|"AUFNAHME"|"ANREDE"|"TITEL"|"NACHNAME"|"VORNAME"';
l_line := l_line||'|"STRASSE"|"HNR"|"ZUSATZ"|"PLZ"|"ORT"';
UTL_FILE.PUT_LINE(export_file, l_line);
FOR rec IN c1
LOOP
l_line := '"'||rec.MG_NR||'"';
l_line := l_line||'|"'||rec.MG_BEITRITT||'"|"' ||rec.MG_AUFNAHME||'"';
l_line := l_line||'|"'||rec.MG_ANREDE||'"|"'||rec.MG_TITEL||'"|"'||rec.MG_NACHNAME||'"|"'||rec.MG_VORNAME||'"';
l_line := l_line||'|"'||rec.MG_STRASSE||'"|"'||rec.MG_HNR||'"|"'||rec.MG_ZUSATZ||'"|"'||rec.MG_PLZ||'"|"'||rec.MG_ORT||'"';
-- DBMS_OUTPUT.PUT_LINE (l_line);
-- in datei schreiben
UTL_FILE.PUT_LINE(export_file, l_line);
END LOOP;
UTL_FILE.FCLOSE(export_file);
END srn_brief_mitglieder;Edited by: wucis on Nov 6, 2011 9:09 AM
Maybe you are looking for
-
ITunes won't open, but there are no error messages
Hi, I just downloaded iTunes 6.04 and now it won't open when I click on the icon on the desktop or try to open it through programs. No error messages were given. It simply won't open. Thank you for your help. Martin Pittman
-
My built in webcam keeps going fuzzy and blurry in a matter of five seconds. I reinstalled it i don't know how many times and it continues to do this. At first when i open up toshiba my webcam application the display is clear and i can see myself jus
-
Lines between every other record in show report
I've noticed that when I display the results of an Application-Report in Portal with Internet Explorer there is always a faint gray line between the second and third record, the forth and fith record, etc... When viewed with Netscape 6.1 this same re
-
ATI 1900 XT Card Settings for Dual 30" Displays?
Just installed the 1900 card with dual 30" monitors, and a window giving me 4 options appeared. I'm not sure what the differences are... which setting will give me the maximum speed for Aperture?
-
Real Application Clusters 11g Release 2 (11.2.0.2) Oracle VM Template
Hello, I am triying to build an Oracle Rac with 2 nodes under: Oracle VM Server 2.2.1 (All in one server). I downloaded the templates: Oracle RAC 11gR2 (11.2.0.2.0) VM template Linux X86 64bit I followed the instructions in the document: rac11202-ovm