Column sorting in the report as number
I have a column of the report, which is actually a number, but when I click on the header of column it sorts as test. It is possible to sort by number? any ideas are appreciated.Thank you
Surya
Hello
A numeric column will sort numerically. You apply a format to the number in your SQL (using TO_CHAR()) statement?
Andy
Tags: Database
Similar Questions
-
Set the column width in the report
Hello
I have a standard classic report in one of my applications.
I want to set the width of the column of the report and but not in pixels, it should be in percentages (%)
In the attributes report in each column, there is a column width text field, but it accepts only the pixels and percentages.
Last Version 4.1, database 11g
Thank you
RameshP, OracleAPEXDeveloper wrote:
I have a standard classic report in one of my applications.
I want to set the width of the column of the report and but not in pixels, it should be in percentages (%)
In the attributes report in each column, there is a column width text field, but it accepts only the pixels and percentages.
Use CSS. Add a style sheet in the header HTML property page:
th#ALIAS, td[headers="ALIAS"] { width: 40%; }
where the
ALIAS
value in the attribute selector matches the required column alias.Please note that the specified percentages compared to the width of the report table. Therefore, it may be necessary to also specify widths (100%) for the table of report and its components. Exactly how is based on the report, the region and the page templates and theme used, information that was not provided.
-
limit the size on the column heading in the report SQL auery
Hello
I returned a SQL query in the report where my column labels are also dynamically. Apparently, the size of this label is limited? Why?
We tried to get the maximum and it seems that it is limited to 32 characters?
Y at - it a solution because the meaning of the column in my app is really more important and must be displayed entirely
Thank you
ErwinErwin,
APEX does not limit the size of the headers of column (at least not at only 32 characters). AFAIK a limitation exists only if you use a Type of "Column names" or "column names (InitCap)." Then you click on the limitation of the Oracle DB as an identifier of Oracle, for example name or alias of the column referenced in your SQL query, may not exceed 30 characters long. To work around use a Type of "Custom" or "PL/SQL". "PL/SQL", you can dynamically set the report headings with a function that returns the headers as a string of delimited colon. You call the function like this:
return get_my_report_headers(<input parameters>)
HTH
Frank -
Problem of sorting for the report public pages
Hello
Recently, I ve met a strange behavior with a standard sql, in a page (unauthenticated) report "public":
When a sorted user report on one of the columns, all other users got their report sorted on this column even.
I have reproduced this situation several times (including the http://apex.oracle.com):
1 to the sample application to create a new blank page without tab.
2. edit this page and add a sql report region, using the "standard" model
For this purpose, a query that returns the columns 3 or 4 of the customer table will be enough.
Make sure that the sorting is available on several columns.
3. edit the properties page and in the section security value "Authentication" "Page is Public" and run the page.
4. on another browser go directly to the page.
5. back on the browser where you were 'edition' click on one of the columns to sort.
6 refresh the second browser and the sorting is now the same as in the first.
You can verify this behavior in http://apex.oracle.com/pls/apex/f?p=19369:10
I'm doing something wrong on the construction of the application/page/report?
Thanks in advance,
José Miguel CarvalhoIf you have access to my workspace, you can check out this application:
http://Apex.Oracle.com/pls/OTN/f?p=22010:1
It acts as a consumer application (no login required), and you can sort your report using different browsers without losing the settings for the session.
The only important thing is the 101 page.
If you do not have access to the workspace, see this page for more information:
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
Denes Kubicek
-------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
------------------------------------------------------------------- -
editing columns when executing the report
Hello
My requirement is when I display a report with some documents I have change with each record option but when I click icon change for this record, then 2 columns of this record will change in editable format and icon to save save with these new values? is it possible in the apex?Hello
You need javascript to allow columns
See if this sample of help getting started
https://Apex.Oracle.com/pls/OTN/f?p=40323:2Kind regards
Jari -
Change a column value in the reports
Hi all
I have a column that contains values such as 12345678, 78945612, etc... Now, I wanted to change the values like 123-45678, 789-45612 etc...
Baiscally this field is an 8-digit integer, and I would like to insert the dashboard after three digits. Is it possible to do in OBIEE. If so how this requirement can be achieved.
Thank you
Hello
Please check the screenshot with the insert function and conform the same results you expect
Kind regards
Drupada
-
column width for the report of inetractive works is not in IE 8
Hi all
I have an international registration for which I don't want the columns to the rap and the last column (DESCR) should have a fixed width, so that's what I added in the header of the region:
This works fine on chrome and FF, but IE seems to completely ignore this, even by adding! important did not help<style type="text/css"> table.apexir_WORKSHEET_DATA td { white-space:nowrap; } </style> <style type="text/css"> td[headers="DESCR"] {width:300px !important;max-width:300px; !important} #apexir_DESCR {width:10px;max-width:300px !important;max-width:300px; !important} </style>
I found on the internet for IE 8 to obey this width of the must have style table: table-layout: fixed;
for example:
However, I'm a little lost on how to do<table style=´width: 100%; table-layout: fixed;`>
KR
MartinHello
Did you try adding following to the inline style?
table.apexir_WORKSHEET_DATA { width: 100% !important; table-layout: fixed !important; }
BTW, you need to add this style inline in the HTML page header. Not to the regions.
Kind regards
Jari
-----
My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
Twitter: http://www.twitter.com/jariolai -
Problems with sorting of columns and the number of lines in the report
Hello
I'm having a problem with sorting of columns and the number of lines displayed in a report.
This report displays the data correct, but if I try to sort on a column when I click on the column heading in the report returns no line... I need to click on the "go" button to refresh the report (with the column sorted now) in to display the data.
Similarly, I display only 15 lines per page. If I try to view the lines 16-30, 31-45, etc., that it returns no line until I click on the 'go' button to refresh again.
Has anyone else had (and overcome) the same problem?
Thank you
JosephJoseph,
2 questions:
1) are you using the elements referenced by the report page to filter etc.. ? If so, you're failing values of these when the loading of the page?
(2) are you using PPR page through the results?If so, it could be a problem with the different types of session state, as Anton Nielsen blogged about here:
http://c2anton.blogspot.com/2008/12/Oracle-Application-Express-Apex-three.htmlIf so, you can use calculations or processes to set element values in session state persistent during page rendering, as Anton mentions. In this way, when you use PPR page values will be available in session state and your report should work fine.
Anthony.
-
Default sort of the classic report does not seem to work
4.2.1
THM 2
I have a classic report consisting of an underlying sql with 3 unions. The columns include a party_name (varchar) and two numeric fields.
for example only select total_cost, cost_to_company, party_name, apex_item.checkbox2(1,party_id)
(
Select a.party_id, a.party_name party_name, a.cost_to_company, table a.total_cost when certain conditions
Union
Select a.party_id, a.party_name party_name, a.cost_to_company, table a.total_cost when certain conditions
Union
Select a.party_id, a.party_name party_name, a.cost_to_company, table a.total_cost when certain conditions
)
In our real-world scenario, these three applications are on different tables and different even if some elements are all the same (including the type of data, etc.), where the union
Because I need activate sorting using the report attributes. I put the tri reporting attributes such as 1 - total_cost desc, 2 - Party_name growing.
However, when we run the report, if the total_cost for different parts is 0, the sorting should be based on party_name. That does not seem to happen. It still sorts out randomly. I'm wonderingm if it's because there are trade unions and no order of in the query.
No idea how to solve this problem?
Nothing to do with unions.
It looks like it is connected to your thread previous marking dynamically of columns in a "BOLD" for the highest value report. Is it? If so, where are the links generated to conditionally and other HTML elements? They are more likely to cause sorting problems. Instead of posting question after question about one aspect of the problem after another, you get a solution much faster together by creating an example on apex.oracle.com and specifying the complete requirements.
-
Column header in the interactive report with special characters
Interactive column heading in the report sorting and filtering is broken when I used special characters in it.
Column sorting options appear in the wrong place and the page becomes unresponsive.
Cause: I use a slash "/" in my query and who broke it. I tried ampersand and the same problem exists.
Query: Select project name, status ' Open/closed' projects;
This problem does not exist in the classical report, but only in interactive report
Version: Apex 4.2.4
Here's a demo app with the problem I'm talking about. Trying to sort the column entitled ' open/closed '.
http://Apex.Oracle.com/pls/Apex/f?p=12289
U:testuser
P:test
The issue is identical to an another forumn.
However, I have just created this new discussion with the hope that this minor bug might be fixed in the next version of the apex.
During this time, no workaround or suggestions are welcome.
I tried to make the column "Remove HTML and special characters", but that did not help. I think I have a header of column with some special characters is a pretty basic requirement apex should support.
Hello
I guess simple fix is that not not to use the query column aliases where is /.
But you can use ' Open/closed' as an attribute of the column header.
Kind regards
Jari
-
Dynamically show/hide columns in the reports of the IR
Env
RDBMS: Oracle XE 11.2
Request Express 4.2.4.00.08
Hi all
I am bulding an open source oracle apex app to track aircraft using ADS - B technology.
I have somes types of units. for example (kilometers, miles, knots, feet and metres).
So, in the report of the IR, I want pick capable of showing a unit in time.
For example
Radio Group.
Ground speed: (*) km/h () Mhp (Knt)
Vertical speed: (*) ft/s (m/s)
Can anyone help to build a code or point a direction to get above result?
I tried already a thread, but did not work.
Apex: Display/hide report column with Radio button. 2 cents to Oracle by Christoph
Display / hide column IR dynamically
I have a limited knowledge of Oracle APEX.
Levi Pereira says:
I am bulding an open source oracle apex app to track aircraft using ADS - B technology.
I have somes types of units. for example (kilometers, miles, knots, feet and metres).
So, in the report of the IR, I want pick capable of showing a unit in time.
For example
Group of radio buttons.
Ground speed: (*) km/h () Mhp (Knt)
Vertical speed: (*) ft/s (m/s)
There are different ways to do this. Probably the easiest would be:
- Create lists of values (LOVs) for units.
- Add the elements of the Group of radio -based unity LOVs report interactive region (IR), by specifying one of the units as a default value.
- Present the radio group via the Items property of the Page to send IR region.
- Create multi-column report for each metric combination / unit.
- Control the display of the report columns (applies to IR, but also classic report columns) conditionally using value of element in the Expression 1 = Expression 2 conditions Expression 1 is the group element of relevant radio and Expression 2 unit LOV value corresponding to that used in the column of the report.
- Add a dynamic action on the evolution of the components of the radio to refresh the IR region.
A less obvious approach would also use LOVs, group radio elements and dynamic action of change/update as above, but only have one column for each measure in the report. The column value is calculated using an expression based on the value of the radio group, for example:
. . . /* Assuming base speed unit is km/h */ ground_speed * case :p1_ground_speed_unit when 'mph' then 0.621371 when 'kn' then 0.539957 else 1 end ground_speed . . .
The unit could be indicated in the column heading in the report referring to the element of the device by using a substitution of static text string:
Ground Speed (&P1_GROUND_SPEED_UNIT.)
-
Marking of columns in a "BOLD" report for the highest value dynamically
4.2.1
THM:2
Hello world
I have a sql report that has two values as production_cost, sales_cost. Depending on which is higher, I need to mark is as "BOLD" for each line. Is that what this is doable?
for example
If I have
production_cost sales_cost
1000 100 - this row 1000 Row1 must be in bold
20 50 - in this row 50 row2 must be indicated in bold.
Is it possible to dynamically?
Thank you
ryansun wrote:
Hi Fac586 - for most
"Draw attention to the value for utility purposes without any importance further and with no involvement of any other voice or mood?"
It is, essentially, that the person could see immediately which is the higher of the two and make a decision on what to do with this file.
So I have the query that is something like
"Select apex_item.checkbox2(1,row1), production_cost, sales_cost from table".
And then based on the values that it can move the lines or perform an operation. But this question related to the derivative of production_cost of sales_cost (or higher) of the two by making them "BOLD" ()
Add 2 columns hidden in the report query:
select apex_item.checkbox2(1,row1) checkbox , production_cost , sales_cost , case when production_cost > sales_cost then 'b' else 'span' end prod_tag , case when sales_cost > production_cost then 'b' else 'span' end sales_tag from table
Use the properties of The HTML Expression columns PRODUCTION_COST and SALES_COST report to build the rendered element:
<#PROD_TAG#>#PRODUCTION_COST##PROD_TAG#>
and
<#SALES_TAG#>#SALES_COST##SALES_TAG#>
-
How to display the text in the cell for CDA on the report
Hi all
I use en-Studio of reporting. Now my requirement is I want to show the text in the cell that I added under CDA - column Variance in the report. So for this I used the text of the cells and within this function function, I gave the line, column and page number. But it does not show the text in the cell that I added for hyperion planning on the report. But if I am referring to another cell text that I added to the variance of Yeartotal I'm able to see on the report.
Can someone tell me why I'm not able to see the text from the cell that I added to the variance of the CDA?
Pls tell the way by which I can return.
My formula looks like this-
< < TxtCase ("Grid1", 78 H, 1, $CurrentMonth = "October") > > I am very confused about the last parameter. No error or the kind of argument not valid message, but it still all just empty.
Thank youI think you're out of luck on this one.
Cell notes are stored in the planning of the HSP_CELL_NOTE and HSP_CELL_NOTE_ITEM tables. Done HSP_CELL_NOTE refers to a member for each dimension that is pointing to the intersection where the note should be linked. YearTotal is an intersection, even though it is dynamically calc would be in essbase. Each HSP_CELL_NOTE NOTE_ID points to one or more notes that are stored in HSP_CELL_NOTE_ITEM. This means that although you can save a note in YearTotal, it does not display when you report on the Y-T-D (Oct) which is purely dynamic. It does state that when you reference specifically an intersection that is stored in HSP_CELL_NOTE.
It would be nice if you could see all the notes stored in Jan: Oct when your report contains a Y-T-D (Oct), but it doesn't.
You can always write a stored procedure to go against the tables and the report in excel.
Dave
-
Download the file from the link in the report
I built a custom file upload/download capability that works very well. The UPLOADED_FILES table has 2 columns that are used to access the contents of the file - a sequence number of a related table entry and a varchar2 file type. I have a built procedure that downloads the contents of my table UPLOADED_FILES. Now, I would like to be able to display a link in my report which allows the user to download the appropriate file. I can't get the right format. I need to pass 2 variables to the procedure - a (p_file) is a column name in the report, while the other (v_type) is a static string value "SUMMARY."
My procedure is:
I triedcreate or replace PROCEDURE download_my_file (p_file in number, v_type in varchar2) AS v_mime VARCHAR2(48); v_length NUMBER; v_file_name VARCHAR2(2000); Lob_loc BLOB; BEGIN SELECT UPLOAD_MIME_TYPE, upload_CONTENT, UPLOAD_NAME, DBMS_LOB.GETLENGTH(upload_content) INTO v_mime,lob_loc,v_file_name,v_length FROM uploaded_files WHERE NOTIFICATION_SEQ_ID = p_file and upload_type = v_type; owa_util.mime_header( nvl(v_mime,'application/octet'), FALSE ); htp.p('Content-length: ' || v_length); htp.p('Content-Disposition: attachment; filename="'||replace(replace(substr(v_file_name,instr(v_file_name,'/')+1),chr(10),null),chr(13),null)|| '"'); owa_util.http_header_close; wpg_docload.download_file( Lob_loc ); end download_my_file;
and I triedjavascript:popupURL("DOWNLOAD_MY_FILE?p_file=#NOTIFICATION_SEQ_ID#&v_type='SUMMARY'");
in the URL of the link in the column to the report item. Neither work. Can someone help me fix this please?<a href="#OWNER#.DOWNLOAD_MY_FILE?p_file=#NOTIFICATION_SEQ_ID#, v_type='SUMMARY' ">Download Summary</a>
Hello
Sorry, it is just spotted 'in the URL field. You should put in the Expression of HTML and remove all the settings link. The & works ok in there.
Andy
-
How do I edit/change data type on the report which has been selected by mistake
HelloI've created a report in the APEX and a column is in error because the data type of a supposed to be a varchar2 column, but somehow the report was created with a data type Date. I want to change the data type without re-creating the whole report. Can anyone help? I tried to edit the report but could not be able to understand.
Help...
I found a solution for this, I thank you.
Maybe you are looking for
-
clear cookies while keeping the usernames and passwords
Firefox 21, if I clear cookies will be all my usernames and passwords are deleted? If so is there a way to prevent it? Terry
-
Original title: help Pleasee! Updates. ERROR CODES: 80246002 / 80242016 / 80004004. Important. __ Here's the problem: Internet explorer 8 for windows Vista error code: 80246002 / updates of security for windows (KB938464) (KB952709) (KB951376) error
-
windowsupdate30x86.exepackagenow
How can I get this package can't get updates
-
Computer laptop Wifi Hostspot does not not to other devices
Laptop MODEL: HP Pavilion DV6 OS: Windows 8 (even if default OS is Windows 7) WiFi adapt: adapter WiFi b/g/n Ralink RT5390 Hello I use software such as Connectify and MyPublicWifi for some time now in the hotspots, but all of a sudden since yesterday
-
What IS difference between ch562wn and cr259fn ink cartridges
For ink was looking for a HP Envy 5530 and saw a lot of combo in the Amazon for HP61 (CR259FN) but he said that it wouldn't work for a 5530. An another HP61 (CH561WN) was valid for a 5530. Looked on Google but could not find anything