OIC Earnings report, Sort Available Columns list
Hello,
Has anyone been able to sort the list of available columns for this report alphabetically?
Thanks Andy, that's exactly what I was looking for! I followed the example and it worked. The weird thing, it is no different than what I tried to do yesterday when I was following the steps you outlined. Oh well, it works now.
Once I got it working, and now that I understand the concept, I decided to modified it so that I can use a URL instead of a branch. This simplified it down a little (no need for the page items, button, branch) and I can customize the URL how I like.
So here is what I have now:
Page Header:
<SCRIPT Language="JavaScript">
<!-- hide from old browsers
function loadPage(pageURL){
location.href = pageURL.options[pageURL.selectedIndex].value
//-->
</SCRIPT>
Report Region:
SELECT Task_ID, Task_Name
FROM Tasks
ORDER BY Task_ID
Derived Column:
<SELECT NAME="selectMenu1" onChange="loadPage(this)">
<OPTION VALUE="f?p=&APP_ID.:2:&SESSION.::&DEBUG.:::">-Select Action-</OPTION>
<OPTION VALUE="javascript:popUp2('f?p=&APP_ID.:3:&SESSION.::&DEBUG.:::',475,125)">Page 3</OPTION>
<OPTION VALUE="f?p=&APP_ID.:4:&SESSION.::&DEBUG.:::">Page 4</OPTION>
<OPTION VALUE="f?p=&APP_ID.:5:&SESSION.::&DEBUG.::P5_ID,P5_NAME:#TASK_ID#,#TASK_NAME#">Page 5</OPTION>
</SELECT>
Now my next challenge is to pretty it up a bit and try to make it into a nice dhtml dropdown menu instead of a select list.
Thanks again for your help!
- Brian
Similar Messages
-
Report sort by column header question
the column sort in a standard report (RP or Q) does sort the lower case values at the end of the alphabet; how can I integrate the lower case values in to the regular sequence of the alpha letters ?
Example of desc order: it starts with lower case :
ülog Company
swa Company
mobiler AG
freezer.net
dpa Company (*)
ZKL Company
Warner Music
Victors
United Internet
Echo
Dora Co.
Charly
Berta Co.
ABC company
- as I cannot influence the Sorting of the inbuilt sort mechanism - how can I manage to integrate e.g. dpa (*) between Echo and Dora Co. ?
TIA
BernhardBernhard,
use the INITCAP() function for that column (a). Fetch the same column once again without
using the INITCAP function and hide it (b). In the properties of the column a ==> HTML
Expression enter #b# in order to display column b. This way the column will display the text
as is (b) but sort on capital initial letters (a).
However, using a standard report doesn't allow any modification of the columns within the
query. There, you would need a view to query upon. Or you just use a "normal" report.
Denes Kubicek -
Hi Team,
I Have one requirement,In SSRS Reporsitory 3000 reports are available.
My end user requirement All 3000 reports are used Table names & columns list of each wise to display single table or single result set.
I find out all 3000 reports details are diplayed single results set like
Report Id,Path,Dataset,Source Query Text,Datasource
In Source Query Text column level All reports Queries are available but I want Each Report wise Table name & columns List.If any solution Please share me.
Regards
RamaHi Ramakoteswara,
According your description, you want to show used tables and columns of each report, and display is into a single result set. Right?
In this scenario, we don't know where to find a column contains the Source Query Text. With my understanding, in Reporting Services, we have Catalog table in ReportServer DataBase, it has a column called Content stores the report code (.xml). In the
code we can find the Query and Fields. Then you need to use VB/C# code to parse each .xml code of each report and fetch out the table name and columns. We do not support writing any queries against SSRS DataBase or parsing data records in any
table.
If you have any question, please feel free to ask.
Best Regards,
Simon Hou -
hi all,
I've seen in a dashboard (OBIEE 10.1.3) on linux os that is possible to sort the columns of the measures in a table (an arrow appears next to the name of the column), but I haven't noticed in the settings how get this result.
is a feature of linux or you can apply this in windows? if so, how?
thank you for the replyyou have to enable the sorting for table view in Answers report. refer below article.
http://gerardnico.com/wiki/dat/obiee/dashboard_column_sorting
- Madan -
Reports serialising when column sort attributes used
If an Apex user has two sessions and runs the same report page in both, then if the report uses column sort attributes (rather than an ORDER BY in the SQL), the second is blocked by the first; once the first completes the second then runs and completes. This appears to be because the user preferences for column sorting are being updated each time, even if they have not been changed.
This application demonstrates the problem:
http://htmldb.oracle.com/pls/otn/f?p=15827:2
Create 2 sessions using that URL. The page has a report based on ALL_OBJECTS with an item "Owner" to filter on. Enter "%" in the first session and press Enter and the report will run, taking about 1 minute. Meanwhile in the second session enter a specific owner (or just XXX) and press Enter. The second report will finish just after the first finishes, even though when run alone it only takes half a second or so.
Is this a bug?Hi Tony,
If you're using this on unauthenticated pages, then the sort preferences are stored per user for the APEX_PUBLIC_USER (or HTMLDB_PUBLIC_USER), which is potentially why you're seeing the serialisation/dead-locking.
Could you perhaps use the suggestion by Scott in this thread -
Re: Report sorting affected by other users
To use the session ID as the APEX user (or anything else you prefer), to mitigate the potential for the deadlock? (It's worth trying and should take just a few seconds to test in your sample app?).
John. -
How to get last column used in report sorting?
hi,
how to get last column used in report sorting?
simonHow to identifiy which column was sorted having different reports on page?
just use:
'YOUR_STATIC_REGION_NAME' instead of p_static_id,
:APP_ID for p_app_id,
:APP_PAGE_ID for p_page_id
:APP_USER_ID for p_app_user.
and dont forget to grant SELECT on #OWNER# to APEX_030200.WWV_FLOW_PREFERENCES$
good luck and thank you Juergen.Schuster
Simon -
Sorting the column of VARCHAR in report
Hi,
I want to sort the column in report with the following scenario,
I have a column name with PERIOD as VarChar with values APR-11,FEB-11,JAN-11,JUN-11,MAR-11,MAY-11 in a report
As you can see, It is sorting in Alphabetic order but I need to arrange in JAN-11,FEB-11,MAR-11,APR-11,MAY-11,JUN-11
So can anyone has a good work around solution?
regards
VjHere is your challenge. How do you get Jan-12 to come after Dec-11? Adil's solution is partial. It works only for the current year. Once you cross over to the next year, it stops working because you are only sorting the month. You must include the year to make the solution complete. So here is a solution that always works. It involves some math so I'll explain the math first.
Let's look at your values:
Jan-11
Feb-11
Dec-11
Jan-12
If you convert each month to a number (i.e., Jan = 1, Feb =2... etc.) and then multiply the year by 1000 and finally add them together, we get this:
Jan-11 1 --> 11001
Feb-11 2 --> 11002
Dec-11 12 --> 11012
Jan-12 1 --> 12001
You get the picture. The last column will be in the order you seek because the integer will always be greater than the previous month-year even at the transition from December to January. BTW, I multiplied the two digit year by 1000 to ensure that there would be no overlap.
Now you can sort by this third column. Here is the code that does this:
CAST(CASE WHEN LEFT(Table.PERIOD, 3) = 'Jan' THEN '1' WHEN LEFT(Table.PERIOD, 3) = 'Feb' THEN '2' WHEN LEFT(Table.PERIOD, 3) = 'Mar' THEN '3' WHEN LEFT(Table.PERIOD, 3) = 'Apr' THEN '4' WHEN LEFT(Table.PERIOD, 3) = 'May' THEN '5' WHEN LEFT(Table.PERIOD, 3) = 'Jun' THEN '6' WHEN LEFT(Table.PERIOD, 3) = 'Jul' THEN '7' WHEN LEFT(Table.PERIOD, 3) = 'Aug' THEN '8' WHEN LEFT(Table.PERIOD, 3) = 'Sep' THEN '9' WHEN LEFT(Table.PERIOD, 3) = 'Oct' THEN '10' WHEN LEFT(Table.PERIOD, 3) = 'Nov' THEN '11' WHEN LEFT(Table.PERIOD, 3) = 'Dec' THEN '12' END AS INTEGER)+CAST(RIGHT(Table.PERIOD, 2) AS INTEGER)*1000
This solves your problem now even when the month-year crosses to the next year. There you go! -
Sorting on columns with templated Report -- Named Column (row template)
Hi forum,
I'm trying to duplicate a regular report's column sorting functionality in a "Named Column" report.
The column headers are in the "Before first and after last row text" "Before Rows" area of the template :
<th onClick="sortByColumn('#REGION_ID#',5)">Frequency</th>invoking this javascript:
function sortByColumn(regionId,colNo) {
var u = "f?p=124:401:&SESSION.:fsp_sort_" + colNo + "::RP&fsp_region_id="+regionId.substring(1);
document.location.href=u;
}I'd like to sort descending when a user clicks the column again, and to display the column sort arrows (up/down).
However, since sorting is persisted per user, even when the page's cache is cleared, it would be necessary to pick up the sort column and order (ascending,descending) on page load or query it later using ajax, so that the sort display (the arrows) stays in synch with the actual sort.
Has anyone got an idea how to do this?
Cheers
Edited by: YT on Apr 1, 2009 4:19 PM
Edited by: YT on Apr 1, 2009 4:24 PM
Edited by: YT on Apr 1, 2009 4:26 PMHi,
Sort ordering on reports are stored as user preferences - see Need to do column SORTING only when I click the column heading for Denes' example on how to use this
Andy -
How to sort a column of type CHAR
Hi,
I have a report for which the o/p is displayed in ALV grid format.There is one column in the O/p strcuture which is "No of days".Based on certain conditions,i need to display the value for some of the days as Negative e.g. " - 45".Becasuse of this,I have declared the field for the "No of days" of the type "CHAR".
Now when i sort(using ALV grid SORT function) the list on basis of this column,it doesnt give me the correct o/p.
CAN anyone tell me how do i handle this?I want the list to be sorted correctly on basis of the "No of days" column.
\[removed by moderator\]
Edited by: Jan Stallkamp on Dec 17, 2008 6:32 PMHi,
Amit,
Apologies for violation of rule.
All,
For getting the negative sign in the front of the no,i.e. "-45",i had declared as CHAR.
Is there any way we can get the o/p in the form "-45" and not "45-" as well as use the SORT functionality?
BR,
SRM Tech -
When looking in "Contacts" at a list it is only possible to sort this list by one column at a time. We need to be able to sort by multiple columns in order to manage the data efficiently.
Exporting to excel and sorting is not what we want to do - we would like to be able to do this within CRM to save time.
Can this be done?
Please provide the any comments.
Regards,
Syed AsifI suggest that you recreate the list as a report and then, in the Create Layout step, edit the Table view. Click Edit Table View Properties and check the Enable column sorting in Dashboards option.
If you preview the report, you should notice that the column headers are clickable and will sort the column values when clicked. Clicking another header will remove the previous sorting done.
Here's the trick: Press CTRL while clicking the next header and it will re-sort the columns, but this time, it will observe the previous sort preference! Pressing CTRL is like using a "then by" statement: "Sort by column X, then by column Y, then by column Z, in that heirarchy."
You can also put the report in a dashboard for easy access. :D -
Apex 3.2
I have a report and it has 1 column and 22 rows.
At the moment, I show the first 15 rows and then you must paginate.
The report will not grow much, may be to 30 rows.
Is there a way to display the first 15 rows in 1 column and the second in another column, side by side etc
GusGusC wrote:
Apex 3.2
I have a report and it has 1 column and 22 rows.
At the moment, I show the first 15 rows and then you must paginate.
The report will not grow much, may be to 30 rows.
Is there a way to display the first 15 rows in 1 column and the second in another column, side by side etc
This is a presentation problem so the correct place to solve it is in the presentation layer using CSS. CSS3 introduces multiple column layouts, but this feature is only supported in recent browser versions—in particular requiring IE10+ in standards mode, which I suspect will be a problem as (a) you're not likely to be using IE10, and (b) APEX 3.2 themes aren't HTML5 and won't trigger standards mode (and aren't likely to be fully compatible even if forced to).
Nonetheless, I think it's a technique that's worth demonstrating (if only for me to get some experience of using it), before considering an alternative option using interleaved row ordering and CSS floats that might be of more immediate use to you.
Start with a standard report using a basic query on the [OE]HR EMPLOYEES table:
select
first_name
, last_name
, phone_number
from
oehr_employees
order by
last_name
, first_name
The appropriate structure for a single column report with a predefined sort order is an ordered list, so we create a custom generic row report template, as a copy of the Standard report template with the following modifications:
Before Rows
<table cellpadding="0" border="0" cellspacing="0" id="report_#REGION_STATIC_ID#" class="pagination-container">
#TOP_PAGINATION#
</table>
<ol class="single-value-list" #REPORT_ATTRIBUTES#>
Before Each Row
<li>
Column Template 1
#COLUMN_VALUE#
After Each Row
</li>
After Rows
</ul>
<div class="t17CVS">#EXTERNAL_LINK##CSV_LINK#</div>
<table cellpadding="0" border="0" cellspacing="0" class="pagination-container">
#PAGINATION#
</table>
This report template is generic enough to be used in both solutions, and although it appears you don't need pagination in the solution, I've retained it to provide more flexibility and because it involves an interesting problem in creating balanced columns on the last page in the interleaved row order option.
As the template only displays one column per row, and to exercise the column layout break properties, all of the table columns are hidden and we create a derived column that uses an HTML Expression containing some hCard microformat markup to make the list item content span 2 lines:
<div class="vcard">
<span class="fn n"><span class="given-name">#FIRST_NAME# <span class="family-name">#LAST_NAME#</span></span>
<div class="tel">#PHONE_NUMBER#</div>
</div>
We can then implement some basic list/hCard formatting using CSS:
Basic list/hCard formatting common to both CSS3 multi-column and interleaved rows/CSS float solutions
ol {
margin-left: 0;
padding-left: 0;
width: 44em;
white-space: nowrap;
list-style-type: square;
ol li {
margin: 0 0 0.5em 2em;
.vcard .family-name {
font-weight: 600;
text-transform: uppercase;
The CSS3 multi-column rules used in the first report region are pretty straightforward, although they have to take account of the current level of browser support by using vendor-specific properties where appropriate:
CSS3 multi-column formatting
.multi-col ol {
/* Safari/Chrome/Opera */
-webkit-column-count: 2;
-webkit-column-gap: 0;
/* Firefox */
-moz-column-count: 2;
-moz-column-gap: 0;
/* IE10+ */
column-count: 2;
column-gap: 0;
.multi-col ol li {
-webkit-column-break-inside: avoid;
-moz-column-break-inside: avoid;
break-inside: avoid;
/* Workaround for FF as break-inside doesn't work. */
page-break-inside: avoid;
For the interleaved row ordering workaround used in the second report, the query has to be modified to calculate the page each row will appear on, and the position in each column on the page it will occupy:
with emps_ordered_unique as (
select
-- If you need distinct rows then just restrict them at the start
distinct
first_name
, last_name
, phone_number
, row_number()
over (
order by last_name, first_name) row#
from
oehr_employees
order by
last_name
, first_name)
, emps_interleaved as (
select
first_name
, last_name
, phone_number
, row#
-- 30 is overall number of rows per page
, ceil(row# / 30) page#
-- 30 is overall number of rows per page; 15 maximum number of rows per column
, mod(row# - 1, least(ceil(count(*) over (partition by ceil(row# / 30)) / 2), 15)) col_row#
from
emps_ordered_unique)
select
first_name
, last_name
, phone_number
from
emps_interleaved
order by
page#
, col_row#
, row#
The trick here is to interleave the rows, with those that have the same position in each column appearing in pairs so that they can be laid out side-by-side using element widths and CSS floats.
The CSS for this report is:
Interleaved rows/CSS float formatting
#interleaved .pagination-container {
clear: both;
#interleaved ol {
#interleaved ol li {
float: left;
width: 20em;
The drawback with the latter option is that although the list entries are visually ordered down and across the columns, they are not semantically ordered thus in the HTML markup, so any user perceiving the list without this CSS (for example via a screenreader, or a mobile device with an alternative style sheet) gets the list in a weird order. For that reason I probably wouldn't use this approach. At present I'd implement the CSS3 multi-column approach as a progressive enhancement for users with up-to-date browsers, and allow it to gracefully degrade to a basic 1-column list in legacy versions. -
ALV sort any column in fieldcatalog by default
hi all
i have developed report in ALV format. i have total 8 columns
normally we sort any column in the output only.
i have requirement that instead of sorting manually any column say Material no
it should be sorted by default when user execute the report. he should not do manually by pressing Sort button in
alv list
give code for refrencehi u can use the IT_SORT parameter of the FM REUSE_ALV_GRID_DISPLAY for this purpose.
specify the fields for which u need to sort ur table and the sorting order
( I have jst given da example for one field but this it_sort table can hav more than one fields.)
gs_alv_sort-spos = 1.
gs_alv_sort-fieldname = 'VKORG'. " Sales Org
gs_alv_sort-up = 'X'. " Ascending
APPEND gs_alv_sort TO gt_alv_sort.
then pass this internal table to teh alv fm
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = wf_repid
I_CALLBACK_HTML_TOP_OF_PAGE = 'HTML_TOP_OF_PAGE'
I_BACKGROUND_ID = 'WEAVE_BACKGROUND'
IS_LAYOUT = gs_alv_layout
IT_FIELDCAT = gt_alv_fieldcat
IT_SORT = gt_alv_sort
TABLES
T_OUTTAB = it_output
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2 -
Split report with different column headers
Hey everyone, I've done quite a bit of googling and searching on this forum, and I'm wondering if anyone has tried to do the same thing as me, and found a solution. I'm looking to make a report like this:
REPORT
GROUP-1
SUB-GROUP1
HEADING 1 HEADING 2
value1 value1
value2 value2
value3 value3
GROUP-2
SUB-GROUP2
SUB-GROUP3
HEADING 1 HEADING 2
value1 value1
value2 value2
value3 value3I can write a query that gets output like that, but I'm trying to find the best way to display in at Apex.
It can be looked at in two ways, I guess. One way is a tree where the leaves have multiple columns in them, and the other is a report broken up by different headers. I would like to be able to use the features of an interactive report, but haven't been able to find a way to format it this way. I've also looked for tree plug-ins but haven't found one that's well designed for reporting, more for navigation or searching. (I've looked at DTreeTable and TreePanel ) If I can't find something that exists, then I'll look into just writing a procedure that spits out HTML.
If anyone knows of a plugin that would let me group reports this way (either free or commercial) or has run into the same requirement and found a solution, I'd be interested to know what it was.
If you need any more information, please let me know and I'll elaborate the best I can.
Thanks!Thanks for the reponse Tyson.
I'm looking more for a flat reporting plugin. It doesn't have to be able to collapse and it doesn't really need navigation - it just needs the hierachrial structure. I wanted to keep the built in features of an interactive report if possible (like searching, sorting, selecting columns etc.) but if that's not available, then anything that can format output similar to my sample would be perfect. -
Custom report sorting
I need to display the report column header in vertical format, hence I’ve to use to use some css code along with column name for that. Also, I want this column to be sorted by clicking the column name. So, I’m embedding the following url along with css and column name to enable sorting on this column when user clicks the column header. I got the following url by looking at the standard report with sorting enabled on a column.
http://test.com:7777/pls/htmldb/f?p=100:22:&APP_SESSION:fsp_sort_1::RP&fsp_region_id=1870116795285540
My questions are …
How can I toggle the url to append “_desc” to the fsp_sort_1 parameter dynamically when the user clicks the column name, as it is done when standard column sorting is selected.?
How can pass region id dynamically in the above url (last number in the url)?
Any ideas are appreciated
Thanks,
Suryahi pavan
i can just tell you that i had no issues with custom column sorting in webi with Enterprise XI 3.0 and Xcelsius 2008.
Best Regards
Ulrich -
In iTunes, is there any way to do a mass copy and paste of song titles from the "name" column to the "sort name" column? I know it can be done with individual titles but I have over 6,000 titles in my library.
Thank you. I have heard of Logic Pro 7, but I have never personally used it. I'm still growing in the world of Composition, and I know that it is something I will be studying in one of my Computer Music classes coming up for my degree. I think it is something I will look into getting once I can justify the price of it. I guess for the time being, I will continue to play and grow in my ability to use and take advantage of GB, and then see what I can do about or with Logic Pro when I'm ready. The thought of spending $1000 for a program is hard to bite, because I've already spent a lot to produce my music, not only electronic music, but also chamber music and so on. I had no idea it would be so expensive to dive deep into the world of composition! lol.
Finale 2007: $500
Sibelius 4: $500
Jam Packs: $400
Midi Keyboard Interface: $100
PowerBook: $1700
Printer for printing scores and analysis: $150
Logic Pro 7: Oy!
As you can see it adds up very quickly...that doesn't even include my personal instruments and study materials.
Thank you for your input, as I haven't really worked much with LP, and therefore didn't know which features are available. I will talk with some of my Composition buddies, and professors and see what they have to say as well, and who knows, I may be able to get the express version through one of them.
Maybe you are looking for
-
After updating to ios 8 on my iphone 4s, all my music from iphone disappered. I tried all the suggestions, but I cant see music folder in the settings-general at all. I signed out of icloud as well, but still cannot sync with itune on my macbookpro.
-
Reports based on Linked Universes in BOXI 3.0 do not work
We have noticed that reports based on linked Universes do not work. We have imported our (BO) documents/Universes into the BOXI R2 environment, upgraded to BOXI 3.0 and now found this issue in InfoView which affects a lot of our reports, details as f
-
Conditions cannot be created in distribution channel
hi all while uploading condition record through VK11, i am getting this error "Conditions cannot be created in distribution channel 12" where is the setting where i can restrict uploading records at distribution level..??
-
Alt+d shortcut for location bar not working
Its not alt+d but alt+s
-
/ the only supposedly "mounted" partition, fs segfaults / 3.1.0-4
[Update: Rebooting fixed the fs segfaults (were they segfaults?) although the "mounting filesystems... [FAIL]" message is still present.] I should probably have paid closer attention to the fact that ever since I went from 2.6 to 3.0 Arch has been sa