Need help to sort a column in the classic report
Hi I'm creating and classic report and I need to sort on the columns. I also use a selection list to filter the records in the column. When I do not use the list selection sorting works but when I'm on the selcet list and select the sort option, then it is showing error. If anyone can help...Thnaks,
Rik
Hello
Is it possible see the source code?
If you create the developer user to your workspace and post login information.
Or you can send information to connect to me by e-mail. My email is in my profile
Kind regards
Jari
Tags: Database
Similar Questions
-
Sort a hyperlink column in the classic report
4.2.1
THM2:
Hi I have a classic report with a hyperlink column. And I need enable sorting on this. What I did is
Select '< a href = "somelink" >' | party_name | "< /a > ' party_name party_name table.
However, I just need to show the hyperlink column in the report. Couple of questions
1. How can I create party_name-based sorting logic using the updated classic sorting standard? Given that all a hyperlink names begin with < - sorting is random. I added the second party_name column an active by default sort on it, but given that the column can not be shown, is not a good way.
2. I was wondering if there is another way to sort this classic report hyperlink column as shown in the hyperlink and sorting is enabled on the report?
Thank you!
ryansun wrote:
Hi Fac586 - Yes, the requirements are not of the same report. We have several pages with the same type of aspect, however, some of them have a different feature. In this case, Yes, I too simplified it so that easier to understand. I use the hyperlinks on query sql rather that the link of the column is because we have about 5 unions in this query from different sources and each of those interviewing him, having a hypertext link and additional formatting like "BOLD", color etc, under certain conditions. Query1 will return only the party_name, the second query United would have hypertext links, the third would fat etc. The union of the request is not made to take into account this feature, but because of the nature of the data. While the apex feature works very well, the only question I hit is the hyperlink column sorting in a classic report. Where the simplified question. Individual responses, I've had have been very useful and have been applied successfully.
In this case, the request for a classic report that has column link, how to sort would work it would be on a regular character column.
Option 1 (deeply inelegant): Generate an HTML comment containing the sort at the beginning of the column value. The value must be sortable using the character comparison semantics, so dates must follow the format YYYYMMDD, numbers padded to the same length with zeros etc: Re: problem with the Date command
Option 2A: Expand the Expression HTML technique described in your previous thread (marking dynamically of columns in a "BOLD" for the highest value report) to include the tags.
Option 2b: Use the HTML Expression technique described in the previous thread to include custom data attributes and use these to add links to dynamic actions.
If this is done on several pages, and then create a view all the necessary logic and the columns which you can keep it in one place.
-
onMouseOver displays the ToolTip of hidden column of the classic report
What: The goal:
Access more information that fits on a single line of the screen without using multiple fixed lines.
Background:
Classic report with 18 data elements (columns) visible. At the search box, and the user can choose the number of rows displayed.
Some data elements can be long (20 to 30 characters) compared to the width of the screen. The element more right data risk of 100 characters.
Proposed strategy:
(1) display the n first characters of the item (s) long in the report.
(2) display the entire item onMouseOver.
Proposed approach:
(1) for each column with the data of type long, contain the integer value in a hidden item.
(2) value of (hidden) long display in tooltips (bubble? / ball?) on this value onMouseOver.
Note: It is not framed to help/Help for a column but the display of the value of long type for a particular element in the line of a column.
Search feature:
(1) to reduce maintenance, wants to set up for several columns using a single common block of code.
Question:
In view of the other approaches, you know, it's a good approach to achieve the goal? Alternative approaches?
HowardWell it took some time, and you really made me work for it. :)
For flight hover end result on the job column Ln Nm.
http://Apex.Oracle.com/pls/Apex/f?p=991202:1I added some old code, I had laying around. It adds a bubble that will stay for 5 seconds or until you click Next or move to another record.
What I would do at this point, it is simply truncate the length of the Nm long to something short (with a substr). Use any indicator wished to hover. Like for example these glasses it's really up to you.
You will see there is a PLSQL AJAX callback where you can retrieve and format the content of the pop-up window to everything you want. You can make it real.
Here's what I did:
1. the new procedure of ShowJob javascript.function ShowJob(pThis,pId){ this.dTimeout; clearTimeout(this.dTimeout); this.dGet = dGet; this.dShow = dShow; this.dCancel = dCancel; var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=FULL_LONG_NAME',$v('pFlowStepId')); this.dGet(); return; function dGet(){ this.dTimeout = setTimeout("this.dCancel()",6500); get.addParam('x01',pId); get.GetAsync(dShow); } function dShow(){ $x_Hide('rollover'); if(p.readyState == 1){ }else if(p.readyState == 2){ }else if(p.readyState == 3){ }else if(p.readyState == 4){ $x('rollover_content').innerHTML = p.responseText; $x_Show('rollover'); var l = findPosX(pThis)+pThis.offsetWidth+5; var t = findPosY(pThis); $x_Style('rollover','left',l + 'px'); $x_Style('rollover','top',t + 'px'); // This math would center on the vertical // $x_Style('rollover','left',findPosX(pThis)+pThis.offsetWidth+5); // $x_Style('rollover','top',findPosY(pThis)-($x('rollover').offsetHeight/2)+($x(pThis).offsetHeight/2)); document.onclick = function(e){ dCheckClick(e); } }else{return false;} } function dCheckClick(e){ var elem = html_GetTarget(e); try{ var lTable = $x_UpTill(elem,"DIV"); if(lTable.id!='rollover_content'){dCancel();} else{} }catch(err){dCancel();} } function dCancel(){ $x_Hide('rollover'); document.onclick = null; get = null; } }
2 rollover div on the page footer (div id = "reversal"...). Of course, this could also be a region.
< div id = "reversal" style = "display: none;" color: black; background: #FFF; border: 2px solid #369; width: 290px; position: absolute; padding: 4px; » >
< div id = "rollover_content" > < / div >
< / div >3 PLSQL AJAX callback. : FULL_LONG_NAME
-- select your value with apex_application.g_x01 htp.p('You hover over ' || apex_application.g_x01 || '
'); htp.p('Here is the Full Long Name: XXXXXXX XXXXXXX XXXXXXX 1234565');4 changed the Nm of Long column to have a link with the onmouseover call that calls the new procedure ShowJob. I made the assumption that with the NUM parameter, you could go the full record of what you need.
onmouseover = "ShowJob(This,#num#) '"This should be it.
Let me know what you think.
-JorgePublished by: jrimblas on April 22, 2013 13:05: added code to validate for the completion
-
How to create dynamic action of the link column in the classic report
I have an apex page to display a modal window using jquery. In the modal window, I have a classic report with a column of link I want to capture its click event.
I thought I could create a dynamic action with selection of type = jquery selector. Not sure if I need to do anything on the link column and do not know the syntax
jquery selector. Would appreciate help or direction?Always zip code using .
...\
tags as described in the FAQ.
I created a region of report with the following query:
Select empno, ename, 'SELECT' from emp where (ename like '%'||ltrim(rtrim(:P2_SEARCHPU))||'%' or :P2_SEARCHPU is null)
There is no alias specified for the "SELECT" column, Oracle uses so the content of the column as a default alias. It comes
'SELECT'
Instead of
SELECT
The necessary jQuery selector would be:
td[headers="\'SELECT\'"] a
However the need to release the single quote everywhere is a ticking time bug. SELECT an Oracle reserved word means use it as any type of identifier is either too smart.
You should always use a valid Oracle identifier as an alias explicit when a column contains a literal value or a complex expression:
select empno , ename , 'SELECT' link_text from emp where ( ename like '%'||ltrim(rtrim(:P2_SEARCHPU))||'%' or :P2_SEARCHPU is null)
APEX will use the column alias LINK_TEXT as the ID attribute of the column header and the cells in the column will reference it in their headersattributes. The jQuery selector is:
td[headers="LINK_TEXT"] a
-
Wrap the text in a column of the classic report
In a classic report, I want to wrap the text in a column, and I need to control where to wrap. For example:
That's what I need:
Performance test
-Classic report
That's what I have now:
Performance
test - Classic
report
The length of the text is dynamic and where wrap them should also be dynamic.
Can I wrap ColumnHeadings too?
Thank you
YivonA solution would be to fix the width the column by wrapping and then in a span such as:
#COl_VAL #.
If you want to encapsulate the data then put a
in it! ;) -
change the color of line based on the value of column 5 Apex in the classic report
Version of the apex 5.0.0.00.31
Standard universal theme
Page theme default template
Classic report
Foldable report template
Hello
I know this question has been asked several times here, but I'm working on 5 Apex and need to know the correct way to do it in this version.
I need to change the color of the text of the entire line (no background color) based on the value in one of the columns of the classic report. I have just two conditions, if the value of column = Yes, color should be red, otherwise it must be green.
I am new to jscript and css, so appreciate if someone can tell me the solution with steps.
I have already checked this link that changes the value of the column, need to do something similar to the whole line.
https://tylermuth.WordPress.com/2007/12/01/conditional-column-formatting-in-apex/
Hi coolmaddy007-Oracle,.
Here's an example set up on the apex.oracle.com according to the specifications you gave: https://apex.oracle.com/pls/apex/f?p=35467:1
Version of the apex 5.0.0.00.31
Standard universal theme
Page theme default template
Classic report
Foldable report template
Here is how it is done:
Create a dynamic action with the following specifications:
Name: Give the appropriate name
Event: After refresh
Selection type: region
Region: select your region classic report
Condition: No strings attached
Action: Run the JavaScript Code
Fire on loading the Page: Yes
Code:
$('td[headers="JOB"]').each(function() { if ( $(this).text() === 'MANAGER' ) { $(this).closest('tr').find('td').css({"color":"red"}); } if ( $(this).text() === 'SALESMAN' ) { $(this).closest('tr').find('td').css({"color":"green"}); } if ( $(this).text() === 'CLERK' ) { $(this).closest('tr').find('td').css({"color":"blue"}); } });
NOTE: Download the selector appropriate for your knowledge $('td[headers="JOB"]') case using firebug/browser development tools.
Items concerned: leave blank.
PS: Changed the example to change the color of text instead of the background color.
I hope this helps!
Kind regards
Kiran
-
can a column of 'link' (classic) report trigger a dynamic action?
In order to avoid a complete package and following flicker,
can the link associated with a column of the classic report
somehow trigger a dynamic action?
Something along the lines of
- run few PL/SQL (some parameter passing along)
- refresh a page region to reflect the changes brought about by the (1)
In practice, I have a page that emerges already, master/detail
with the need to manage another set of detail records.
I can collect a bunch of fields that are not related to the db.
and generate an insert + update via a button 'Add '.
Then the report containing the details is updated
provide visual feedback that a new record has been added
Indeed, with a column 'delete '. The integrated link is
currently a javascript that saves the underlying m and
Removes the secondary details, but it involves a shipment
and refresh the entire page. It can be avoided?
(running apex 4.2.1)
You can use the onchage event to create your dynamic action. Make sure that there is a hidden page element (value not protected). From your link to classic report column, set the value of the page element hidden by using the JavaScript API $s () that will trigger the dynamic action of the onchange event.
javascript:$s('P1_HIDDEN_PKEY_ID',#ROW_PKEY#);
Thank you!
JMcG
-
Bug report? WITH the statement contained in the classic report LOV
I've defined a "list of selection with query based lov' in a column of the classic report, and if I try a clause
I get this errorwith data as (Select 4 qty from dual) select round(100/qty*(level-1)) perc, round(100/qty*(level-1)) c from data connect by level <= qty +1
WWV_FLOW_UTILITIES. ERR_LOV
ORA-06550: line 1, column 45: PLS-00428: an INTO clause in this SELECT statement
ORA-06512: at "SYS." DBMS_SYS_SQL", line 1249
ORA-06512: at "SYS." WWV_DBMS_SQL', line 930
ORA-06512: at "SYS." WWV_DBMS_SQL', line 999
ORA-06512: at "APEX_040200.WWV_FLOW_DYNAMIC_EXEC", line 695
ORA-06512: at "APEX_040200.WWV_FLOW_UTILITIES", line 927 >
It is fine when I remove the WITH and put my value inside the rest of the query.
Wait?
Request Express 4.2.1.00.08I think you just need to make it clearer to the 'engine '. :)
Try this:
select perc d, c r from ( with data as (Select 4 qty from dual) select round(100/qty*(level-1)) perc, round(100/qty*(level-1)) c from data connect by level <= qty +1 )
I found that LOV analysis can be picky sometimes.
Thank you
-Jorge -
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.
-
Need help to open two images with the same file with different exposures on the screen at the same time in the Photoshop creative cloud (in previous versions we could open two images of the same nef (raw) file and then combine them on the screen with the move tool. They have become a composite of two layers which could be developed further with the mask tool.
Hello
Please go to the preferences > workspace and uncheck the option 'open the document in the tabs '.
Now you can click on file and choose file > open and open the two images in two different windows which can be arranged side by side.
Thank you
-
I need help to unite 2 users on the same CC account, can someone help me?
Since this is an open forum, not Adobe support... you must contact Adobe personnel to help
Chat/phone: Mon - Fri 05:00-19:00 (US Pacific time) <==>==> NOTE DAYS AND TIMECreative cloud support (all creative cloud customer service problems)
http://helpx.Adobe.com/x-productkb/global/service-CCM.html -
I need help about illustrator. I have the portable version of CS6, install and won't let me open the program. I get the error: 1 I have windows 7
Error code 1 is often associated with permission issues. Have you tried to install Illustrator in a new user account with admin rights? If you want to download CS6, here's how to get it through creative cloud: html http://helpx.adobe.com/creative-cloud/kb/download-previous-versions-creative-applications.
Let us know how it goes.
Concerning
Stéphane
-
All my photos are displayed such as BW because somehow I saved a preset to quickly develop and it records in BW. This is for all of my photos. Individually, I can cancel their but need help how to get rid of the preset then all photos of goes to Default or in the shot. Thank you
Go to the develop module and highlight all the images in the film at the bottom of the screen. Enable automatic synchronization, and then click the reset button. To reset all the images in your camera default settings.
-
Need help with setting up in checkbox in interactive reports
I need help with setting up in checkbox in interactive reports, I use this statement a query
SELECT apex_item.checkbox
(
1, ROLEID,
'onchange = "spCheckChange (this);". ',
: F_ROLEID_LIST,.
':'
), del.
ROLEID, ROLEDESCRIPTION
OF EBA_ROLES
When I run it I get the following
< input type = "checkbox" name = "f01" value = "1" onchange = "spCheckChange (this); ' / > instead of the checkbox
Do I need to configure anything else
Aditya Gupta wrote:
I need help with setting up in checkbox in interactive reports, I use this statement a query
SELECT apex_item.checkbox
(
1, ROLEID,
'onchange = "spCheckChange (this);". ',
: F_ROLEID_LIST,.
':'
), del.
ROLEID, ROLEDESCRIPTION
OF EBA_ROLES
When I run it I get the following
instead of the checkbox
Do I need to configure anything else
This is one of the most frequently asked questions in this forum. Set the column attribute the text to display as Standard report column and not display text (special escape characters).
Always include the information referred to in these guidelines when you ask a question and if you use APEX 5.0, State, if you develop using the pages or the view of the component designer.
-
How to avoid the total general of the classic report when the column break is installed in the Apex
Hi all
I develop application using Oracle Apex 4.2.0.
I created the classic report Page.
That I have summarized a column by selecting the check box check sum for the column.
His shows the Grand Total.
Then I chose the columns to break to the first column.
His show the total groupwise and total as well as great as image below.
My requirement is
Need to hide total(Total:)) GroupWise or total general. I need to show any a total, not both.
How to do this?
Thank you
Su.GI
Su.GI wrote:
Hi, thanks for your response.
I use theme - productivity Application - issue 26
-Standard model
Report - report of Standart for classic report model.
The above CSS code where I want to use in the page or report or model region.
Specify a static region ID for the report area and put the following CSS rule in the CSS Inline property page:
#static-region-id .uReportStandard tr:last-child td { display: none; }
where
static-region-id
is the ID specified for the region.
Maybe you are looking for
-
Mail.app rules prevent any actions after you have moved the message
If the rule in the Mail.app contains action Message go to any folder, then all the other measures of the rule does not apply automatically. Only if I hit the rules manually. If I remove this action, then other actions of the rule will be applied auto
-
Problem with my keyboard on P25
I have experience problens with my satellite P25 keyboard... it is not allways, but sometimes when I press the S key, it displays SX... the same thing happens with other keys also, like; outputs; [d outputs dc... When this happens, if I move the note
-
My computer is defragged all files that it can. You, please, will address the following questions: Fragments of files in file size that cannot be defragmented5 46 MB \WINDOWS\Installer\2b0c16e.msp6 73 MB \WINDOWS\SoftwareDistribution\DataStore\DataS
-
Windows XP will not accept my printer
Pack three Windows don't let my printer works
-
flashing, what should I know?
So I've already created my own backups FTF, following these discussions, http://Forum.xda-developers.com/Xperia-z/development/noobs-guide-create-stock-firmware-FTF-t2188129 http://xperiafirmware.com/8-firmware/65-Sony-Xperia-Z3-compact-d5803 with loa