Reset Sorting on Report List
Is there a way to reset the default sorting on a report page? I am able to reset pagination on the page with a process, but how would I go about resetting pagination and sorting columns on the report page with one button named "Reset " on the page.
Any help would be appreciated.
Have a look at
apex_util.remove_sort_preferences
But be aware that it does a reset for all report sorting preferences of a user. Currently there is no procedure to just reset the sort preference for a particular report.
But there is a workaround available. The preferences are stored in the non public table WWV_FLOW_PREFERENCES$ with a preferences name of
FSP100_P2_R342859614236079794_SORT
FSP100=application id
P2=page id
R342859614236079794=region id
So you can write a procedure which builds that preference name and remove it with the regular Apex_Util.remove_preference procedure.
The procedure could look like:
CREATE OR REPLACE PROCEDURE remove_report_sort_preferences
( pStaticId IN VARCHAR2
IS
vRegionId APEX_APPLICATION_PAGE_REGIONS.REGION_ID%TYPE;
BEGIN
SELECT REGION_ID
INTO vRegionId
FROM APEX_APPLICATION_PAGE_REGIONS
WHERE APPLICATION_ID = Apex_Application.g_flow_id
AND PAGE_ID = Apex_Application.g_flow_step_id
AND STATIC_ID = pStaticId
Apex_Util.remove_preference
( p_preference => 'FSP'||Apex_Application.g_flow_id ||
'_P' ||Apex_Application.g_flow_step_id||
'_R' ||vRegionId ||
'_SORT'
END remove_report_sort_preferences;Now you just have to use the new region property "Static Id" to assign the report region an "external" id which you can reference in your code.
Patrick
My APEX Blog: http://inside-apex.blogspot.com
The ApexLib Framework: http://apexlib.sourceforge.net
The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/
Similar Messages
-
Can we sort saved report list by name
Hi,
I have interactive reports and users can open this interactive report and according to their different requirements they can save this report(as a public) with different names.
Ex: interactive reports
Reports(lov) :1.Primary report
2.xxx test
3.yyyy
4.abcd test
5.zzzz test
Can we sort saved report list by name?
Could you please guide me to achieve this requirement.
Thanks in advance.
Regards
Narender BNarender wrote:
Hi,
I have interactive reports and users can open this interactive report and according to their different requirements they can save this report(as a public) with different names.
Ex: interactive reports
Reports(lov) :1.Primary report
2.xxx test
3.yyyy
4.abcd test
5.zzzz test
Can we sort saved report list by name?
Could you please guide me to achieve this requirement.It's a lot easier to do so if the following information is provided (as has been repeatedly pointed out to you):
<li>Full APEX version
<li>Full DB/version/edition/host OS
<li>Web server architecture (EPG, OHS or APEX listener/host OS)
<li>Browser(s) and version(s) used
Sorting of the saved report list by report name was introduced in APEX 4.1. -
Adding new row to the reports list page
How can I add a new report row in the reports list of the reports tab.
Ex: a new row to the report "users by Date of Join report" is to be added
How can we add Please help me out in thisI am facing the same problem!
camickr wrote:
Try adding an empty row containing a null value for the String instead of the empty String.camickr, it will not help, the DefaultRowSorter in the "*+compare(int model1, int model2)+*" method return -1 if the first value is null and 1 if the sacond value is null. and incase of DESCENDING it mult by -1.
// Treat nulls as < then non-null
if (v1 == null) {
if (v2 == null) {
result = 0;
} else {
result = -1;
} else if (v2 == null) {
result = 1;
} else {
result = sortComparators[counter].compare(v1, v2);
if (sortOrder == SortOrder.DESCENDING) {
result *= -1;
}And this is the real problem!
The empty line is sorted as the smallest value and incase of DESCENDING it will be the first line (because of the mult by -1).
We could have overide it and incase of the empty row(usualy the last row) do not mult by -1 in DESCENDING mode.
But the problem is that the "+*compare*+" method and it's caller "*+Row+*" inner class are private :-(
It is not wise to do it but we can do like kmp83 wrote:
kmp83 wrote:
copy/duplicate "private" code from DefaultRowSorter into my extended class.Anyone have another suggestion? -
TO SER FIELS BOX IN REPORT LIST SCREEN
i WANT TO SET 2 RADIO BUTTON AND 2 FIELD BOX IN THE REPORT LIST SCREEN WHERE I WANT TO ENTER DATA MANUALLY IN THE FIELD BOX. AND I WANT TO SET ONE PUSH BUTTON .I WANT TO SET ALL THERE IN LIST SCREEN NOT IN SELECTION SCREEN.
CAN ANYBODY SUGGEST ME.
THANKShi check this..
REPORT Z_TEST7 .
*Table declaration
tables: vbak,vbap.
*internal table
data: begin of i_sales occurs 0,
vbeln like vbak-vbeln,
erdat like vbak-erdat,
audat like vbak-audat,
kunnr like vbak-kunnr,
vkorg like vbak-vkorg,
matnr like vbap-matnr,
netpr like vbap-netpr,
check type c, "checkbox
end of i_sales.
type-pools: slis.
data: v_fieldcat type slis_fieldcat_alv,
gt_fieldcat type slis_t_fieldcat_alv,
gt_layout type slis_layout_alv,
gt_sort type slis_sortinfo_alv,
fieldcat like line of gt_fieldcat.
*Selection screen
parameters: p_vkorg like vbak-vkorg.
select-options: s_vbeln for vbak-vbeln.
*start of selection.
start-of-selection.
perform get_data.
perform fill_fieldcatalog.
perform write_data.
FORM get_data .
select avbeln aerdat aaudat akunnr avkorg bmatnr b~netpr into
corresponding fields of table i_sales from vbak
as a inner join vbap as b on avbeln = bvbeln
where a~vkorg = p_vkorg and
a~vbeln in s_vbeln.
ENDFORM. " get_data
FORM write_data .
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = sy-repid
IS_LAYOUT = gt_layout
IT_FIELDCAT = gt_fieldcat
TABLES
T_OUTTAB = i_sales .
ENDFORM. " write_data
FORM fill_fieldcatalog .
sort i_sales by vbeln.
clear v_fieldcat.
"for check box
v_fieldcat-col_pos = 1.
v_fieldcat-fieldname = 'CHECK'.
v_fieldcat-seltext_m = 'chek'.
v_fieldcat-checkbox = 'X'.
v_fieldcat-input = 'X'.
v_fieldcat-edit = 'X'.
append v_fieldcat to gt_fieldcat.
clear v_fieldcat.
v_fieldcat-col_pos = 2.
v_fieldcat-fieldname = 'VBELN'.
v_fieldcat-seltext_m = 'Sales Document'.
append v_fieldcat to gt_fieldcat.
clear v_fieldcat.
v_fieldcat-col_pos = 3.
v_fieldcat-fieldname = 'ERDAT'.
v_fieldcat-seltext_m = 'Creation Date'.
append v_fieldcat to gt_fieldcat.
clear v_fieldcat.
v_fieldcat-col_pos = 4.
v_fieldcat-fieldname = 'AUDAT'.
v_fieldcat-seltext_m = 'Document Date'.
append v_fieldcat to gt_fieldcat.
clear v_fieldcat.
v_fieldcat-col_pos = 5.
v_fieldcat-fieldname = 'KUNNR'.
v_fieldcat-seltext_m = 'Customer'.
append v_fieldcat to gt_fieldcat.
clear v_fieldcat.
v_fieldcat-col_pos = 6.
v_fieldcat-fieldname = 'VKORG'.
v_fieldcat-seltext_m = 'Sales Organization'.
append v_fieldcat to gt_fieldcat.
clear v_fieldcat.
v_fieldcat-col_pos = 7.
v_fieldcat-fieldname = 'MATNR'.
v_fieldcat-seltext_m = 'Material'.
append v_fieldcat to gt_fieldcat.
clear v_fieldcat.
v_fieldcat-col_pos = 8.
v_fieldcat-fieldname = 'NETPR'.
v_fieldcat-seltext_m = 'Net Value'.
append v_fieldcat to gt_fieldcat.
clear v_fieldcat.
endform. -
Manually Reset AddressBook Last Import list
I don't understand why Apple has not fixed this silly bug after so long, probably because there is not enough complaints about it, but here is a solution for those who needs to migrate multiple address books for users who are migrating to Mac.
This is for removing multiple addresses from the last import list, to remove a single address it has been reported that saving the address entry after any change will remove it from the Last Import list.
All address data in AddressBook 5 seems to be stored in a sqlite datafile in
~/Library/Application Support/AddressBook/AddressBook-v22.abcddb
The instructions provided here works for AddressBook 5.02, I don't know about other versions.
Remember to make a backup copy for the address book data file before proceeding with the following!!!
To remove addresses from the last import list, get a sqlite GUI for example SQLite Manager add on for firefox.
Open the AddressBook datafile and run this sql statement
update ZABCDRECORD set ZDISPLAYFLAGS = NULL where ZDISPLAYFLAGS = 128
the addresses will now be removed from the Last Import list.
Now you can reset the Last Import list after adding multiple last imported addresses into a group and move on to the next group of addresses to import.
If only the AddressBook Last Import can work as it should!Last Import of addressbook... mine is not clearing like many others I've seen and I'm migrating into addressbook and want to bring in groups from my nudc... here is what I did to get my groups in...
1. clean up addressbook- got rid of any ungrouped entries
2. import my vcf group... now in addressbook it's mixed with junk not clearing from "last import" so I can't just move them to the new group...
3. BUT all these last imported are in the smart "no group"... so I select all from that smart group and drag into the new group and voila.
4. I ignore the last import group... I don't want to mess w/sql file cleanups etc...
I never noticed a problem w/last import not clearing before... pain in the butt an needs fixing by apple. -
Monthly report listing out ALL open PO
Hi,
As our management requested, we need a monthly report listing out ALL open PO for CDG, APR Someone tell me to input cost centre but it is time consuming to input it as we have over 100 cost centers. Do you know if I can input SPG/profit center or other data to run this report instead ? Please advise the transaction code and how to perform it, such as need to know the profit center #, organization code etc
Thanks
Rajahi
go to ME2N
then select Scope of list ALV
Selection parameters as WE101 Open goods receipt (select as per ur need )
then execute u will get the list for open po
now if u want it to specify the profit center then go to ME2N and select dynamic selecion (shift +F4)
now u will get a smaal scrren , in purchaseing doc item selct profit center
now u can see the profit center selection field ,give a proper profit center and follow the process as given above
hope it help
regards
kunal -
Which table keeps the Discoverer Report list?
Hi,
I'm new to Discoverer, actually I haven't started to use yet.
I would like to know is it possible to retrieve a list of reports created in Discoverer so that I can add them to the standard reports that I developed using Oracle Report builder in my application. If possible, which table can I get the report list?
My second question, is it possible to run a Discoverer report directly if I have the report link? Or everytime I run I must enter the schema username and password?
Please advise.
Thank you.Hi
With regards to question 1, I don't believe this is possible any more. The older versions were rather flexible in that approach but sadly, no more.
With regards to question 2, using a VPD you can authenticate to your heart's content using any custom defined table you wish. This is just an out of the box idea, and I don't know whether it will work, but here goes.
The table that stores public connections is this one: orasso.wwsso_psex_user_info$
I am wondering what would happen if we put a restriction on SELECT from that table to not allow selection if the SSO user was not of a certain class or did not have a certain privilege.
Would anyone else care to comment here?
By the way, inside SQL, this code SYS_CONTEXT('USERENV', 'CLIENT_IDENTIFIER') will return the SSO user.
For more info on public connections, look here: http://download-west.oracle.com/docs/html/B13918_03/conns.htm#i1016752
Best wishes
Michael -
Hello Experts,
Could you please help me? Is there a way to sort Oracle report by formula column? We selecting some columns in the report and one of the columns is a complicated select from different tables returning value. We want to sort the report by this column. How to do that?
Thanks for your help.
YashHello,
You can move the formula column at the top of the query and the select its Break Order property(more on this in Reports Builder Help Contents).
Regards,
Alex
If someone's answer is helpful or correct please mark it accordingly. -
Unable to open reports listed in Workspace
Hi All,
I am using EPM 11.1.1.1.0 .
I have created a few reports from the Financial Reporting Studio.
And i have a user who has the "Administrator" provision for "Reporting and Analysis".
When i log into workspace with this user id i get the "Explore" option and i can see the reports listed there but when i try to open it the following error pops up.
Required application context reporting is not available. Please contact your administrator.
I have checked my Financial Reporting Services and they are running fine.
Regards.
AliciaHi Alicia,
1. OK, then restart of services might help you .
2. Try to restart FR services , and then do the restart of workspace application.
Hope it works
Sandeep Reddy Enti
HCC
http://hyperionconsultancy.com/ -
How many lines we can print using Non-alv report list ?
Hi Experts,
How many lines we can print using Non-alv report list ?
regards
vishnuHi,
It depends on the page size according to the page size we can set the no. of lines as follows,
REPORT program_name NO STANDARD PAGE HEADING
LINE-SIZE 290
LINE-COUNT 65.
Hope it helps you,
Regards,
Abhijit G. Borkar -
Sorting the report by clicking the column header
Hello,
Currently working on a requirement where i need to sort the report by clicking the column header. Can anyone please help me on this.
Suppose i have 3 colums deptno,dname,sal fields in my report. if i click deptno column header, report has to sort by deptno.Like that i need for other columns also.
Any help is really appreciated
Thanks
RamHello,
You can sort the fields using method suggested by Cauvery. However if you would like to have Ascending/ Descending sort order control at column header, then would require to implement few additional steps.
First do the sorting of field using the way suggested by Cauvery. Once sorting is done, right click on the column name and select the option ' Bind Sort Control'. You will see the sorted field in the window. select the field and click ok.
Now you would get 2 arrows on column. If you click upper arrow, fields would be sorted in Ascending Order and if you click on down arrow, it would be in Descending order.
Regards,
Chinmay Athavale -
Designed Reports are not showing in the Analysis Report List
Hello Master's,
I have designed one report as per our client requirement, and assigned also, but its not showing in the analysis reports list.May i know what setting needs be done to appear in the reports list?.
How to create and add the characteristics(New Fields) in the reports, here we can able to create and add the key figures.
Kindly update the solutions with steps.
For you reference please find the below screen shot.
Thanks in Advance......!
Kind Regards
Shankarappa H LHi Shankarappa,
The Analysis -> Reports shows a list of views. Hence, once you create a report you need to complete two mandatory steps.
1. Create a View
2. Assign Report
For more information, please refer to the following link: In conversation with Sebastine Augustine, product manager redefining Business Analysis that forms an integral part of th…
Thanks,
Sebastine -
Sorting singly linked list with minimum time complexity
Hi ...
anyone could tell me how can i sort singly linked list with minimum time complexity .... ????
Regards...By MergeSort or QuickSort O(n log n). But then you
have to first extract the objects in the list,sort
them, then rebuild the list. But it will still bealot
faster than by keeping the list linked.Technically, I believe insertion sort is marginally
faster for small n ( <20 or so).Woohoo! So for 20 out of the possible 2147483648 array
sizes Insetion is faster!
Unfortunately, checking for that case probably wastes
all the time you get from using the faster sort...
That would depend on the actual distribution off array sizes. So it's an engineering decision.
Sylvia. -
Hot links to report listing journal entries for an account
Hi Experts,
We are going live soon with BPC-NW and have some questions regarding BPC-Excel reports, all done with EVDRE() function. Our BPC service pack level is 05, we are using Excel 2007 SP2 for the client and BW 7.01 ABAP Stack (Enh Pack 1) on the server side.
We want to produce an Excel standad report with hot links to a report listing journals entries, passing it a parameter (account) so the report would list all journals and their entries for that account, and, so far, we haven't been able to find out how to do it.
We tried using buttons and associate them with macro MNU_eJOURNAL_REPORT but it doesn't open the report journal by account directly and doesn't seem to accept any parameters.
Has anyone found a way to do this?
Best regards,
JoaoHi Peter
Thanks for the quick reply.
Yes, we do manage our stock by warehouse. I went to admin->setup-> stock-> and then 'item groups' and 'warehouses' and checked the accounting tab. In both cases the 'Sales return Account' is marked as our stock account. Are there more hidden places I can look? Thanks
Andreas -
PO release codes in report/list
Hello,
Is there any Purchse order report/list, where we can see the release status's. For eg if there are two level release codes applicable to a purchase order (L1 & L2) , can we see the release code and whether released or not ?
I know there is a way to restrict PO's based on dynamic selections of ME2N, but we require the actual relase code and status.
Regards,
DevendraHi,
You can the desired report through t/code: ME2L / ME2M , after executing the report go the change layout & select the Release code / release status field. Release staus field will be appear like , if first release is done , the status will come as X or if second release done, the it will come XX. And from release indicator field , you can get the code release code .
Regards,
Raghunath
Maybe you are looking for
-
Different results for the same query and same data ! (oracle 9i)
Hi, This is a mystery for me. I've got on my database exactly the same data that my customer (exported schema). We both launch the same query (generated by the software that we sold him). This query has a criteria IN (SELECT MAX()...) to get only dat
-
Including 4:3 material in a 16:9 environment
Hi, I'm a relative Premiere Elements 9 newbie and I need to combine 4:3 material with content shot in 16:9. The 4:3 content is historical public domain footage downloaded in MPEG-2 format. My 16:9 material is in MPEG-4 format, 720x480. I've decided t
-
Package javax.servlet.jsp does not exist.
dear all! I've one program which import javax.servlet.jsp.* as one of the package to be used in the program, and I am using j2sdk 1.4.0_01 to compiled it. However I got this error message : package javax.servlet.jsp does not exist. Where does it wron
-
Can I export more than one project from IMovie to a single DVD? Also, can a chapter be identified on the DVD other than just a skip to the next chapter as a yellow diamond in iMovie?
-
Hello, when you visit my site http://trulyamped.com/home.html you can see that the top GRAY/Black bar on top where my navigation bar is extends to fit your screen. When you view the website on a mobile device or on a computer but not in the MAXIMIZED