Wierd sorting behavior in report

I have a report with many fields, a region to show/hide columns, and a region for searching (scalar search fields and multi-select fields). Sorting by toggling a column header doesn't sort the field, it does something, but it doesn't sort. Something really strange is I have a column named CPU Count and when I click on the column header for CPU Arch, it sorts the CPU Count column.
I recently did the following to change NLS_SORT to BINARY_CI and
1. In the application attributes, I set the 'Application Language Derived From'
globalization attribute to "No NLS (Application not translated)", and
left the 'Application Primary Language' setting alone (English...).
2. Created a BEFORE HEADER and ON SUBMIT BEFORE COMPUTATIONS application level process as a PL/SQL Anonymous Block to force the NLS settings using ALTER SESSION commands. Set the Sequence to 0 for both.
execute immediate 'ALTER SESSION SET NLS_DATE_FORMAT="DD-MON-YYYY"';
execute immediate 'ALTER SESSION SET NLS_SORT="BINARY_CI"';
Could this have had any impact? I don't know if column sorting worked before I made those changes or not. Looking for ideas before I take this out.
Karen

Karen,
The good news is that we can see the problem you are having.
The bad news is that we're going to have to ask you to do a bit more work so we can get to the bottom of it. If you don't mind, here is the request from Marc (our reports engine expert):
"I tried to figure out what's going on with this report, but I don't know. My guess would be some combination of changed column sequence, conditional
display of columns and show/no show columns. I tried a number of different scenarios locally, but they always worked. And in the example that user sent
us, the first couple of columns seem to be working fine. I tried purging preferences, etc., but I'm still getting strange results for e.g. the usage
column. I would need to get a reproducible case set up on my local PC, so that I can add some more debug output to reports3.plb. So if this person
could provide us with a simplified example, incl. DDL script and data load scripts that we can install locally, I can a try to investigate this further. It would also help if the user could either step by step re-create this report, with perhaps fewer columns, without changing the column sequence at first, and only later hooking up column conditions, so that we can get some more information on when the sorting gets messed up."
Thanks,
Scott

Similar Messages

  • Strange behavior in report Output

    Hi,
    Strange behavior in report output , please some one help me out of this problem.
    I am using Oracle order capture rdf file ASOPQTEL.rdf.
    My working environment:
    Windows,apps instance .Now this rdf file is working fine in my work Environment.
    when this same file is deployed in client environment (UNIX and different apps instance from my working environment apps instance)
    for some cases it is giving output.
    for some cases it's throughing error.
    Thanks,
    Mithun

    Please specify what kind of error you are getting and what is command you are firing on Unix.

  • Group and sort in webi report

    I have a requirement to group and sort in a report. Group should be based on id, sort based on time. Time sort should be the priority. Meaning, first criteria to sort is time, but if the id is repeated, time should be sorted for that id.
    e.g, If I have ids A,B,C and values are such that A - 9:15 AM, B - 9:00 AM, A - 10:00 AM, C - 9:30 AM.
    Requirement is as below
    B - 9:00 AM
    A - 9:15 AM
    A - 10:00 AM
    C - 9:30 AM
    If I apply sort on time without group on id, I am getting data in the below manner which is not correct.
    B - 9:00 AM
    A - 9:15 AM
    C - 9:30 AM
    A - 10:00 AM
    If I apply group first, I am not able to apply sort. Since the requirement is to show the least time first.
    Please advice.

    use the variable
    =Min([Time]) In ([ID])
    to sort. Then hide the column by reducing the width and making the font and background color as white.

  • Sort remuneration statement (report RPCEDTP0)

    Dear gurus,
    I need to find an exit for report RPCEDTP0, because a need to sort the remuneration statement by name and last name.
    The standard button SORT ORDER from report RPCEDTP0 is not giving me what I need...
    Does anyone know something that may help me?
    Thank you in advance,
    PC

    Hi Ted Dinh!
    Your advice seemed to be such a good one... but I'm not having success
    I created an enhancement in form 'FILL_SORT_CONDITION_TABS' ( include: 'LRPPNTOC') and inserted this code inside it:
      SORTORDERS-FIELDNAME = 'ENAME'.
      SORTORDERS-POSITION = '26'.
      APPEND SORTORDERS.
    But when I click on button 'SORT ORDER'... I don't see any difference..
    Do you have some idea of what can be happening?
    Regards,
    Priscila

  • Sorting in dataset vs sorting in the report

    Are the some guidelines on when to use sorting in dataset vs sorting in the report?

    Hi JoeSchmoe115,
    In Reporting Services, we can add ORDER BY clause to presort data that is retrieved for a report in the dataset queries. Or we can sorting groups or sorting by aggregate values in the report. When we add ORDER BY clause to sort the data in the order we want
    it sorted in the report. Presorted data improves report processing time because of the way it is stored in memory. And there are many report processing tasks do not require sorting data before processing it. For example, SUM is not order-dependent and Data
    within group instances is not automatically sorted.
    So sorting groups or sorting by aggregate values is much simpler in the report than in the query and is frequently more efficient also. If we do not need sorted data in the report, do not set sort expressions on the dataset. For more details, please see:
    Troubleshooting Reports: Report Performance
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Can values returned by a lookupset be used for interactive sorting or a report filter?

    I have a report that uses multiple stored procedures. I am using the lookupset function to return the values, then I sum the values with custom code, and have them display all into one tablix. However I can not figure out how to use interactive
    sorting or a report filter with values returned by the lookupset function.
    My question is:
    Can you use values returned by a lookupset for interactive sorting or a report filter?
    Thanks!

    Hi WGiff,
    Based on my understanding, you want to perform interactive sorting or filter for the values which come from multiple datasets.
    In Reporting Services, LookupSet()function is used to retrieve a set of values from the specified dataset. So in your scenario, we should use Lookup() function to retrieve values from specified dataset, then perform interactive sorting or filter.
    As we tested in our environment, we retrieve values using Lookup() function form datasets, then sum these values with custom code. After enable interactive sorting or filter for these values, we can get expected results.
    1. Add custom code below in Report Properties.
    Public Shared Value as Integer=0
    Public Shared Function GetValue(Item as Integer) as Integer
    value= value + Item
    return Item
    End Function
    Public Shared Function GetTotal()
    Dim a as integer
    a=value
    value=0
    return a
    End Function
    2. Enable Interactive Sorting.
    3. Add filter within the group.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Sorting makes the report slow

    Hi,
    I need to sort the SQL (APEX_ITEM) report. I created a hidden item and used the hidden item to sort the report. Its working fine but making the report very slow.
    If I remove the sorting, then the report runs fast.
    Please let me know what should do to make it faster.
    Thanks.

    Hi Denes,
    Here is my query:
    SELECT apex_item.hidden (21, R.pk) || apex_item.hidden (22, R.imo) || apex_item.hidden (23, wwv_flow_item.md5 ( R.PK ,R.RQMT )) ||
    apex_item.hidden (24,R.imso)|| apex_item.hidden (25, R.installation_number )|| apex_item.hidden (26, R.base_code) ||
    apex_item.text (27, R.year, 80,100,
    'style="width:40px;text-align:right;'
    || 'color:solid darkgreen;background-color:#FFF4BF;font-weight:bold" readonly="readonly" title="Year"', 'f27_' || LPAD (ROWNUM, 4, '0')) year ,
    apex_item.text (28, R.fcg, 80, 100,
    'style="width:64px;text-align:right;'
    || 'color:solid darkgreen;background-color:#FFF4BF;font-weight:bold" readonly="readonly" title="Fcg"', 'f28_' || LPAD (ROWNUM, 4, '0')) fcg,
    apex_item.text (29, R.IMO_NAME, 80, 100,
    'style="width:90px;text-align:right;'
    || 'color:solid darkgreen;background-color:#FFF4BF;font-weight:bold" readonly="readonly"title="Imo"', 'f29_' || LPAD (ROWNUM, 4, '0')) IMO_NAME,
    apex_item.text (30, R.IMSO_NAME, 80, 100,
    'style="width:96px;text-align:right;'
    || 'color:solid darkgreen;background-color:#FFF4BF;font-weight:bold" readonly="readonly" title="Imso"', 'f30_' || LPAD (ROWNUM, 4, '0')) IMSO_NAME,
    apex_item.text (31, R.installation_NAME, 80, 100,
    'style="width:140px;text-align:right;'
    || 'color:solid darkgreen;background-color:#FFF4BF;font-weight:bold" readonly="readonly" title="Installation"', 'f31_' || LPAD (ROWNUM, 4, '0')) INSTALLATION_NAME,
    apex_item.text (32, R.BASE_NAME, 80, 100,
    'style="width:160px;text-align:right;'
    || 'color:solid darkgreen;background-color:#FFF4BF;font-weight:bold" readonly="readonly"title="Base"','f32_' || LPAD (ROWNUM, 4, '0'))BASE_NAME,
    apex_item.hidden (33, R.FCG_DESC) ||
    apex_item.text (34,R.FAC, 80, 100,
    'style="width:75px;text-align:right;'
    || 'color:solid darkgreen;background-color:#FFF4BF;font-weight:bold" readonly="readonly"title="Fac"','f34_' || LPAD (ROWNUM, 4, '0')) FAC,
    apex_item.hidden (35, R.FAC_DESC)||
    apex_item.text (36, R.EFR, 80, 100,
    'style="width:75px;text-align:right;'
    || 'color:solid darkgreen;background-color:#FFF4BF;font-weight:bold" readonly="readonly"title="Efr"', 'f36_' || LPAD (ROWNUM, 4, '0')) EFR,
    apex_item.hidden (37,R.EFR_DESC) ||
    case when
    get_PK_status(R.PK) IN ('Edited','Reviewed','Approved') and
    :P2_Role = 'EDITOR' then
    apex_item.text (38, R.rqmt,80,100,
    'style="width:75px;text-align:right;'
    || 'color:solid darkgreen;background-color:#FFF4BF;font-weight:bold" readonly="readonly"title="Requirement"', 'f38_' || LPAD (ROWNUM, 4, '0'))
    when
    nvl(get_PK_status(R.PK),'X') not in ('Edited','Reviewed','Approved') and
    :P2_Role = 'EDITOR' then
    apex_item.text (38,R.RQMT,
    80, 100,
    'style="border:1.3px solid black;width:75px;text-align:right;'
    || 'color:darkblue;font-weight:bold title="Requirement"',
    'f38_' || LPAD (ROWNUM, 4,'0'))
    when
    get_PK_status(R.PK) IN ('Edited','Reviewed','Approved','Disapproved') and
    :P2_Role = 'REVIEWER' then
    apex_item.text (38,R.rqmt,80,100,
    'style="width:75px;text-align:right;'
    || 'color:solid darkgreen;background-color:#FFF4BF;font-weight:bold" readonly="readonly"title="Requirement"', 'f38_' || LPAD (ROWNUM, 4, '0'))
    when
    nvl(get_PK_status(R.PK),'X') NOT IN ('Edited') and
    :P2_Role = 'REVIEWER' then
    apex_item.text (38, R.rqmt,80,100,
    'style="width:75px;text-align:right;'
    || 'color:solid darkgreen;background-color:#FFF4BF;font-weight:bold" readonly="readonly"title="Requirement"', 'f38_' || LPAD (ROWNUM, 4, '0'))
    when get_PK_status(R.PK) = 'Edited' and
    :P2_Role = 'REVIEWER' then
    apex_item.text (38, R.RQMT,80,100,
    'style="width:75px;text-align:right;'
    || 'color:darkblue;font-weight:bold title="Requirement"',
    'f38_' || LPAD (ROWNUM, 4, '0'))
    when get_PK_status(R.PK) IN ('Edited','Reviewed','Approved','Disapproved') and
    :P2_Role = 'APPROVER' then
    apex_item.text (38, R.rqmt,80,100,
    'style="width:75px;text-align:right;'
    || 'color:solid darkgreen;background-color:#FFF4BF;font-weight:bold" readonly="readonly"title="Requirement"', 'f38_' || LPAD (ROWNUM, 4, '0'))
    when nvl(get_PK_status(R.PK),'X') NOT IN ('Reviewed') and
    :P2_Role = 'APPROVER' then
    apex_item.text (38, R.rqmt,80,100,
    'style="width:75px;text-align:right;'
    || 'color:solid darkgreen;background-color:#FFF4BF;font-weight:bold" readonly="readonly"title="Requirement"', 'f38_' || LPAD (ROWNUM, 4, '0'))
    when get_PK_status(R.PK) = 'Reviewed' and
    :P2_Role = 'APPROVER' then
    apex_item.text (38,R.RQMT,80, 100,
    'style="width:75px;text-align:right;'
    || 'color:darkblue;font-weight:bold title="Requirement"',
    'f38_' || LPAD (ROWNUM, 4, '0'))
    end RQMT,
    case when get_PK_status(R.PK) = 'Edited' and
    :P2_Role in('EDITOR','REVIEWER','APPROVER') then
    apex_item.text (39, RU.RQMT, 80, 100,
    'style="width:75px;text-align:right;'
    || 'color:solid darkred;background-color:yellow;font-weight:bold " readonly="readonly"title="Edited"' , 'f39_' || LPAD (ROWNUM, 4, '0'))
    when nvl(get_PK_status(R.PK),'X') NOT IN ('Edited','Reviewed','Approved','NotReviewed','Disapproved') and
    :P2_Role in('EDITOR','REVIEWER','APPROVER') then
    apex_item.text (39, RU.RQMT, 80, 100,
    'style="width:75px;text-align:right;'
    || 'color:solid darkred;background-color:#FFF4BF;font-weight:bold " readonly="readonly"title="New Requirement"' , 'f39_' || LPAD (ROWNUM, 4, '0'))
    when get_PK_status(R.PK) IN ('Reviewed') and
    :P2_Role in('EDITOR','REVIEWER','APPROVER') then
    apex_item.text (39, RU.RQMT, 80, 100,
    'style="width:75px;text-align:right;'
    || 'color:solid darkred;background-color:lime;font-weight:bold " readonly="readonly"title="Reviewed"' , 'f39_' || LPAD (ROWNUM, 4, '0'))
    when get_PK_status(R.PK) IN ('Approved') and
    :P2_Role in('EDITOR','REVIEWER','APPROVER') then
    apex_item.text (39, RU.RQMT, 80, 100,
    'style="width:75px;text-align:right;'
    || 'color:solid black;background-color:#DAFFBF;font-weight:bold " readonly="readonly"title="Approved"' , 'f39_' || LPAD (ROWNUM, 4, '0'))
    when get_PK_status(R.PK) IN ('Disapproved') and
    :P2_Role in('EDITOR','REVIEWER','APPROVER') then
    apex_item.text (39, RU.RQMT, 80, 100,
    'style="width:75px;text-align:right;'
    || 'color:SOLID black;background-color:RED;font-weight:bold " readonly="readonly"title="Not Approved"' , 'f39_' || LPAD (ROWNUM, 4, '0'))
    when get_PK_status(R.PK) IN ('NotReviewed') and
    :P2_Role in('EDITOR','REVIEWER','APPROVER') then
    apex_item.text (39, RU.RQMT, 80, 100,
    'style="width:75px;text-align:right;'
    || 'color:SOLID black;background-color:orange;font-weight:bold " readonly="readonly"title="Not Reviewed"' , 'f39_' || LPAD (ROWNUM, 4, '0'))
    end NEW_RQMT,
    apex_item.text (40, RU.Status, 80,100,
    'style="width:75px;text-align:right;'
    || 'color:solid darkgreen;background-color:#FFF4BF;font-weight:bold " readonly="readonly"title="Status"', 'f40_' || LPAD (ROWNUM, 4, '0')) STATUS ,
    CASE WHEN (get_PK_status(R.PK) IN('Edited','Reviewed','NotReviewed') and :P2_Role = 'APPROVER') THEN APEX_ITEM.SELECT_LIST(41,'Approved','Approved;Approved,Disapproved;Disapproved','','title="This field is only for Reviewers and Approvers"')
    WHEN (get_PK_status(R.PK) = 'Edited' and :P2_Role = 'REVIEWER') THEN
    APEX_ITEM.SELECT_LIST(41,'Reviewed','Reviewed;Reviewed,NotReviewed;NotReviewed','','title="This field is only for Reviewers and Approvers"')
    ELSE
    APEX_ITEM.SELECT_LIST(41,'','','title="This field is only for Reviewers and Approvers"')
    END ACTION ,
    '<a href="javascript:popUp2('''
    || 'f?p=&APP_ID.:3:&SESSION.::NO::P2_PK:'
    || R.PK
    || ''', 1200, 500);">'
    || '<img src="#APP_IMAGES#blue_book_open.gif" title="View Row History" >'
    || '</a>' History
    from rplans_sumtab R,
    (SELECT PK, RQMT, STATUS, DATE_CREATED FROM RPLANS_USER_SUMTAB R1
    WHERE DATE_CREATED = (SELECT MAX(DATE_CREATED) FROM RPLANS_USER_SUMTAB R2
    WHERE R2.PK = R1.PK)) RU
    WHERE R.PK = RU.PK(+)
    2.) The pagination I am using is:
    Row Ranges 1-15 16-30 (with set pagination)
    3)The table has only 1000 records.
    The report runs very fast when I don't use sorting, but when I use sorting, it becomes very slow.
    Thanks.

  • Does the Airport extreme provide any sort of usage reporting? Either per user or aggregate usage of the broadband port

    Does the Airport extreme provide any sort of usage reporting?  Either per user or aggregate usage of the broadband port

    No. You may be able to retrieve that information from your ISP.

  • Sort order on reports

    I've encountered a number of report views where the sorting is obviously flawed. For example if I run the Modification Date Age Report, choose the Age Criteria of Month and Year, and try and sort on the Date - it sorts that field in a string sort, not numeric sort, so I get 1/2001, 1/2002, 1/2003, etc. instead of 1/2001, 2/2001, 3/2001.
    Any way to cure or change the sort order behavior?

    jffgrnfld,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://forums.novell.com/

  • Sort on interactive Report fails

    Hello all,
    the sorting on a column is not working.
    I have an interactive Report, but Sorting by click on an column Header doesn't work. The "waiting image" appears but nothing else.
    Has anybody the same issue and may help me with a solution ?
    thanks
    Heinz

    Hello Heinz,
    I had the same issue and today I spent a while hiding all other regions on the page, removing all the conditions on the report display and I noticed that the Sort works just fine as soon as I removed the Request=Expression1 Condition.
    So, maybe this helps.
    Regards,
    Andrea

  • Sorting on two reports based on same table

    Hi,
    I have two reports on the same page, that show rows from a table.
    Each table has a different condition, so that there is no overlapping rows.
    The problem i have run into, is that i have enabled sort on the columns in both reports - there are instances when there are no rows shown in one of the reports.
    when i click on a column name to sort on that column, i get the error
    failed to parse SQL query:
    ORA-06502: PL/SQL: numeric or value error: NULL index table key value
    in the report that shows no values. i understand what the error means, but am having some trouble finding a way of solving it.
    any help would be much appreciated!

    Look here:
    Column sort gives "failed to parse SQL query"
    Denes Kubicek

  • Is it possible to sort an interactive report with a default column ?

    Hi,
    I have a nice request used with an interactive report.
    select "ID",
    "DATE_CREATION",
    "SERVICE",
    "RESPONSABLE",
    "NATURE_CONTRAT",
    "SOCIETE",
    "DATE_DEBUT",
    "DATE_FIN",
    "DELAI_RENOUVELLEMENT"
    from "#OWNER#"."CONTRATS_MAINTENANCE"
    order by DATE_FIN descUnfortunately, the interactive report does not displays using the order into the SLQ query.
    I tried to de select the "sort" option of each other columns into the Column attributes Section, but without any improvement. If I remove the order statement from the SQL query, nothing changes in the order.
    Do you have an idea on how to display the lines in the order of the sql query ?
    Thank you for your knid answers !
    Chrstian

    Christian,
    This can be a little tricky at first. Try this:
    1. Remove the order by clause from the query.
    2. Log out of the application, not the builder, just the application.
    3. Log back in and try using the options in the interactive report to sort the information.
    Does it work? If so:
    4. Get the order the way you would like it as the default. Note: you get more sort options if you use the Action Menu (grind wheel) and selecting Sort over just clicking the column headers.
    5. Save the report by selecting the Save Report option from the Action Menu. If you see a drop down, save the report as the "default".
    6. Log out of the application again and back in.
    Does it work?
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • Htmldb_item.date_popup and sort options in reports

    I use the htmldb_item.date_popup in a report (PLSQL returning SQL). Everything works fine unless I provide the option to sort columns. If I allow a column to be sorted, the date_popup does not return the date to the corresponding field but to another field of the same column. However, the users want to be able to sort the report due to several columns. Can anyone provide a work-around?
    The query is as follows:
    DECLARE
    statement VARCHAR2(32767);
    BEGIN
    statement := '
    select
    htmldb_item.checkbox(47, ID, ''onClick="javascript:doSubmit()"'', :P3_FREISTELLUNG_SELECTED, '':'') as CHECKBOX,
    htmldb_item.hidden(11,ID)||
    htmldb_item.hidden(12,ID_VERTRAG)||
    htmldb_item.date_popup(13,null,VON,''DD.MM.YYYY'',13,10) as BEGINN,
    htmldb_item.date_popup(14,null,BIS,''DD.MM.YYYY'',13,10) as ENDE,
    htmldb_item.date_popup(15,null,ERTEILT,''DD.MM.YYYY'',13,10) as ERTEILT,
    htmldb_item.select_list_from_lov(16,decode(FLAG_CANCELED,null,0,FLAG_CANCELED),''LOV_FREISTELLUNG_NULL'',null,''NO'') as FLAG_CANCELED,
    decode(FLAG_DELETED,1,''direkt gelöscht'',2,''indirekt gelöscht'',''aktiv'') as WERT_DELETED,
    htmldb_item.text(17,BEMERKUNG,20,4000) as BEMERKUNG
    from VERTRAG_FREISTELLUNG where ID_VERTRAG = :P3_KOPF_ID';
    if :P3_FREISTELLUNG_NEU = 2 then
    statement := statement||'
    union all
    select
    null as CHECKBOX,
    htmldb_item.hidden(11,null)||
    htmldb_item.hidden(12,null)||
    htmldb_item.date_popup(13,null,null,''DD.MM.YYYY'',13,10) as BEGINN,
    htmldb_item.date_popup(14,null,null,''DD.MM.YYYY'',13,10) as ENDE,
    htmldb_item.date_popup(15,null,null,''DD.MM.YYYY'',13,10) as ERTEILT,
    null as FLAG_CANCELED,
    null as WERT_DELETED,
    htmldb_item.text(17,null,20,4000) as BEMERKUNG
    from dual';
    end if;
    RETURN statement;
    END;
    PS: I know that the problem already has been discussed in the forum, but I did not find a solution for the problem.

    I have this issue as well with popup_from_query compunded with sorting.
    Wondering if there is any workaround from anyone ?

  • Use drag and drop to sort data in report

    Hello!
    I found a good description to sort data in a Tabular Form per drag and drop.

    Here is the url: Read Article - Drag &amp;amp; Drop tabular form rows
    It works fine if one follow the hint from Baki (For apex 4.2 one have to adapt a css class).
    Afterwards I tried the same with an Interactive Report. It nearly works.
    I once again had to adapt a css class.
    I used the
    apexir_WORKSHEET_DATA
    class instead of the
    uReportStandard
    in the JavaScript for the Interactive Report.
    Everything went fine. Except the "Save the Thing to the DB" issiu did not work.
    The following code do not work (the "APEX_APPLICATION.G_FROWID.COUNT" is allways 0):
    FOR i IN 1 .. APEX_APPLICATION.G_FROWID.COUNT 
    LOOP
    UPDATE emp SET sort_order = i WHERE rowid = APEX_APPLICATION.G_FROWID(i);
    END LOOP;
    Does anybody know why?
    Best thanks,
    Ilb

  • Alternate sort in interactive report

    Hi,
    I have several interactive reports where I need to enable sort on a column where the sort order is "custom" (I mean, not alphabetical nor numeric).
    In other words, I want to display one column, but sort using another one when I select a sort icon (asc or desc) on displayed column header.
    I'm pretty much sure there is no out-of-the-box solution to this, but any idea would be appreciated.
    I created a trigger on WWV_FLOW_WORKSHEET_RPTS to replace any sort on my display column with my sort column. It worked but I had lots of side effects as sort icon not displayed at the end of the column header for example.
    Thanks to share any idea you could have!

    Not the same as you imagine, but without any APEX-Tricks you could simply name your values a little different. THis could also be done in the query.
    e.g.
    select t.t_name, p.p_sort||'-'||p.p_display priority
    from task t, priority p
    where t.t_priority = p.p_sortI would always avoid doing stuff in the background, where the users might not understand directly, why it is the case.
    So you could also help the users to understand the correct sorting by choosing appropriate report column names
    select t.t_name, t.t_priority as priority, p.p_display priority_name
    from task t, priority p
    where t.t_priority = p.p_sortMost users will understand the difference when they sort by one or by the other column. And of cause the "better" sort order could be stored as default report settings.

Maybe you are looking for

  • 11.1.0 OEM On Windows

    In oracle note 412431.1 it says that it can be run on: Platform Windows x86 OS versions      Windows Server 2008, Windows Server 2003 R2; Windows 2003 (32 bit) with SP2/R2+, Windows7 But when I look at oracle.com (http://www.oracle.com/technetwork/oe

  • Flash builder 4.7

    Buenas, resulta que mi empresa ha intentado comprar Flash Builder 4.6 y Adobe nos ha obligado a comprar la versión 4.7 porque la 4.6 decían que no la vendían. Estoy teniendo un problema con la 4.7 de que la memoria utilizada por el  ejecutable empiez

  • How the queries gets processed in data model of report

    In a report for e.g there are four queries in data model. In the first query there is a group there we are calculating the value of a formula column c_currency. In c_currency for set of values we are calculating :p_curr. :p_curr is a global variable

  • Using Java media framework

    I am look at this source code and it imports java.media when i compile it it says there is no such package. So i installed the JMF and it still doesn't work. Srry i am new to this and thanx fot the help.

  • Adobe Photoshop install

    Why am I blocked from using my Adobe Photoshop? The other computer got a virus and is trashed!