Enable Dynamic Sorting in Tabular Report

Hi All,
I have 100's of reports and i need to enable dynamic sorting for the columns in tabular report.
Just wanted to know which tag i need to put in advanced tab of the report where i can set the XML.
Please guide

Thanks Krishna..
I have done that for one report and i want to do it for the remaining 99 reports.As i have to run each and every report and then enable dyamic sorting which is pain...so i was just thinking if there is any property in advanced tab of the tabular report where i can do it and then set the XML for the reports

Similar Messages

  • Dynamic Sorting on Multiple filed in Crystal report 2008

    Hi
      I am using Crystal report 2008 sp3 full build with hotfix 3.3 along with ASP.NET 2.0
      I have implimented the multi filed sorting using the record sort export and setting the sort order in the report designer.
    Now my requirement is such that i would like to have dynamic sorting on multiple fileds while report is displayed in the UI.
    Means suppose i have a report with Customer region,name,city,rating,status etc.
    Now by using the sort control  i would like to have the functionality in such a way that if user
    a)  first sorts on the region then the records should be first sorted by region
    b)  then sorts on the city then the records should be sorted first by region then by city
    c) now sorts on the  rating then the records should be sorted first by region ,second by city and then by rating
    Now other user may do
    a) first sorts on the rating then the records should be first sorted by rating
    b)  then sorts on the status then the records should be sorted first by rating then by status
    c) now user sorts on the  region then the records should be sorted first by rating,second by status and then by region
    and so on the sorting criteria changes from user to user through the UI.
    Is there any way to achieve the dynamic kind of sorting with Crytsal report 2008 where we can set the order of the fileds at sorting in UI dynamically .The sorting order of the fields are not known at the time of design of the report and its completely depends on the user's need.
    Please let me know if you require any information on the same.
    Regards,
    smitha

    Hello,
       Good Day!
       Thanks for your answer.
       Could you please explain me in detail how to achieve this functionality?
       Do i need to create a static parameter?
       I  get my data set through the command option in crystal report.So i think i need to go by formula in the report.
       i am just putting down the steps to follow.Please correct me if i am wrong.
      step1 :Create s static parameter with the name SORT.
    step2: create the formula as you have mentioned like     
        (IF {?Sort}='Vendor Number' THEN {Pr_Voucher_Status;1.Vendor_Key}& " "& {Pr_Voucher_Status;1.ap_remt_key}
        & " " & {@date}
       else
        IF {?Sort}='Invoice Number' THEN {Pr_Voucher_Status;1.ap_vchr_invno}& " " & {Pr_Voucher_Status;1.Vendor_Key}&
        " " &{@date}
       else
       IF {?Sort}='Invoice Amount' THEN {Pr_Voucher_Status;1.ap_vchr_amtc}& " " & {Pr_Voucher_Status;1.Vendor_Key}&
         " " &{@date})
        I could not  understand what this formula is really doing .
        Could you please tell me what the following names indicates? :
                  Pr_Voucher_Status :- Table/Command name ??
                  Vendor Number,Invoice Number etc.. :-  ??
                 Vendor_Key,ap_vchr_invno,ap_vchr_amtc .. :-  Filed names ??
                 use of 1.{} :- ??                              
    step3: place the below formula in the page header  to display the sort order
        (if {?SORT}='Vendor Number' then "Vendor Number, Remit To, Invoice Date"
              else if {?SORT}='Invoice Number' then "Invoice Number, Vendor Number, Invoice Date"
              else if {?SORT}='Invoice Amount' then "Invoice Amount, Vendor Number, Invoice Date") .
    Note:-My report does not have grouping.Do i need to have grouping?
    in this case how the sort control will work  ?
    As i have mentioned in the first post the order of sorting is completely depends on the user's perspective .
    The report is used by the whole organization ..
    i mean the people with different roles like Manger,Team leads,modul leads,developers ,testers etc..
    the usage of report varies according to the roles so the sort order also.
    Regards,
    smitha.
    Edited by: smitha thomas on Mar 16, 2011 5:01 AM

  • How to implement Dynamic Sort to an SQL classic report?

    Hi,
    I'm trying to implement dynamic sort to my working sql classic report, when user selects order by column from select item(action as submit page), the report should be refreshed and display with the selected column sort order.
    But not able to do so.
    Report Query:
    Select a, b, c from sample order by :P1_ORDER_BY
    P1_ORDER_BY - Select Item:
    STATIC2: Column 1;a, Column 2;b, Column 3;c
    Running page, report doesnt sorts in any of the column priority.
    Kindly guide.
    Regards,
    Krishna

    Of course the select item is in use.
    It should submit the the page on select so you can retrieve the current value in you report select statement.
    look here:
    http://apex.oracle.com/pls/apex/f?p=21296:2:
    table:
    create table sample
      a varchar2(30)
    , b varchar2(30)
    , c varchar2(30)
    insert into sample values('a','z','k');
    insert into sample values('b','y','d');
    insert into sample values('c','x','a');
    insert into sample values('d','w','b');
    commit;
    Select List:
    P2_ORDER_BY
    STATIC:Order by A;A,Order by B;B,Order by C;C
    Report select:
    select
    a,b,c
    from sample
    order by
      decode(:P2_ORDER_BY,'A',a,null)
    , decode(:P2_ORDER_BY,'B',b,null)
    , decode(:P2_ORDER_BY,'C',c,null)Marc
    Edited by: telemat on Aug 24, 2012 1:50 PM

  • Dynamic List Populate in Tabular Report

    Hi All,
         Could anybody help / advise me out in getting done the following requirement in Oracle APEX 4.1. I tried using AJAX / visited DENES KUBICEK application but its getting complicated with AJAX. Any quick inputs will be highly appreciated
    I would like to implement dynamic list in Tabular Column. Here is a typical example; If there are two list Deptno LOV, Employee Name LOV. Based on the department number selected, Employees pertaining to that department should be populated.
    Thanks,
    Ahmed

    Thanks a ton your kind advise Scott. I tried following up the same somehow not getting through. I have created the sample application in the following workspace under cascade lov tab following the same steps. Any correction will be of great help. Many Thanks again.
    Workspace Name: apex_app_tst
    username/passwd: test/test
    http://apex.oracle.com/pls/apex/f?p=1847:2:100801961610213:::::

  • How to acheive Pagination and Dynamic sorting in Web layout.

    Hi All,
    I'm new to Oracle Reports. I use Report Builder 10.1.2.0.2.
    I tried creating a template for simple tabular report. I modified the tempalte for Paper layout, Web layout ie modified .tdf, html, css files.
    When the data is dispalyed in the web browser, i need to do Pagination and dynamic sorting (ie when the column heading is clicked, it needs to do sorting by that column).
    In the jsp page of the report, it is possible but i want to incorporate this functionality in the Template. So that a single template can be used across multiple reprots with out any modification.
    Can any one please tell me how to do this.
    Please reply me at the earliest. Its very urgent.
    Thanks & Regards,
    P. Gayathri Devi

    Igor,
    You'll need to switch from using Partial Page Rendering to full page submits on that report. In version 4.0 we should be getting more control over event handling in PPRs but to what extent is still unknown.
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen
    http://sourceforge.net/projects/plrecur

  • Problems using Dynamic parameters with Crystal Reports and SBO 8.8

    Has anyone been able to successfully use a dynamic parameter in Crystal Reports with 8.8 using the Business One connector? When we try we get an additional logon to the database that pops up and the logon fails.
    We need this because we want to return live lists of PO documents from the server for selection. We are also trying to use nested dynamic parameters, because we want to first return the PO document based on the PO number, and then chose specific rows based on a field value in POR1.
    It works if we don't use the Business One connector, but then the report doesn't function properly inside of SAP.
    Any ideas would be appreciated.

    I have tried using tokens but they are too simple. I need something like a subselect where you first select one value and then another that is a subset of those values. Apparently the tokens can't even use a "where" clause.
    SAP dances around Dynamic parameters, but won't come out and say that they can't be used with the B1 connector. If that is the case then they should just say so and stop wasting our time. Apparently Crystal is not truely interfaced with B1, just sort of hanging out with it.
    I don't really care other than I have to do this select, subselect. If someone has a way to do that with tokens I would love to hear it.
    Thanks,
    Roy

  • 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 drill down report

    Mr. Kubicek's "Report on Report" is excellent if anyone is looking for a drill down report, but if Denes or someone could help me with one last piece, I would be indebted.
    I have aggregated values for the columns I wanted to total for each employee in Report 1: "Total # of Sales" and "Total $ Sales". These totals become links for the drill down in Report 2. Clicking on the aggregate total of "Total $ Sales" in Report 1 will show all related individual sales records for that employee in Report 2.
    My problem is in sorting Report 1 by the aggregate columns, "Total # of Employees" and "Total $ Sales". The columns do not sort correctly from high to low etc. I have copied Denes report code exactly. What do I add or change to sort these two aggregate columns from high to low? Thank you all.
    Mike

    Thanks so much, Dimitri. I don't have the link, but here is my query (does this give you enough to diagnose?). The columns etc differ from my original post (I was trying to keep it simple in my example...).
    SELECT "l_t_num","l_truck_name",
    '<span style="font-weight:bold;">'
    || '<a href="f?p=&APP_ID.:113:&SESSION.::NO::'
             || 'P113_TRUCKNO,P113_TRUCKNO_COUNT,P113_TRUCKNO_PAID:'
             || l_t_num"
    || ','
    || "l_t_num"
    || ','
    || NULL
    || '">'
    || COUNT (*)
    || '</a></span>' "l_file_number",
    '<span style="font-weight:bold;">'
    || '<a href="f?p=&APP_ID.:113:&SESSION.::NO::'
    || 'P113_TRUCKNO,P113_TRUCKNO_COUNT,P113_TRUCKNO_PAID:'
    || "l_t_num"
    || ','
    || NULL
    || ','
    || "l_t_num"
    || '">'
    || TO_CHAR (SUM ("l_due_to_truck"), 'FML999G999G999G999G990')
    || '</a></span>' sum_truck_cost
    FROM "LOADS_HISTORY_NC"
    where instr(':' || :P113_YEAR || ':',SUBSTR("l_file_number",3,2)) > 0
    AND instr(':' || :P113_MONTH || ':', SUBSTR("l_file_number",5,2)) > 0
    GROUP BY "l_t_num", "l_truck_name"
    The two results columns are 'sum_truck_cost' and a count of "l_file_number" for each carrier ("l_truck_name"). These two columns in my report are aggregate values and are links. Clicking on either the 'sum_truck_cost' value or count value opens a second report with the individual records. I have enabled the sorting option for these columns in Report Attributes, but manually sorting the columns does not put the records in correct asc or desc order based on either total.
    This is almost exactly as Denes has on his site, so he has a working example. I have only inserted my own columns into his code etc. Thank you so much Dimitri!!
    Mike

  • Dynamic sort

    Good afternoon Everyone,
    Expert Ammad Ahmed guided to dynamic sort in running time.
    if you want to make the dynamic order...then
    SELECT COLUMN1, COLUMN2...
    FROM TABLE
    WHERE ...
    &P_ORDER_BY -- It will create parameter in report called "P_ORDER_BY"
    So at the time of running report you will have to pass value in this parameter like this...
    ORDER BY FIELD_NAME -- Here field name is any field you want to order from your query.
    Moreover, nothing is simple for us.
    We have ORA - 00920 message and we wish more hands.
    Thanks in advance,
    NY

    Parameter with & Sign:
    Creating parameter like this called. Lexical Parameters. So lexical mean you can pass the statements in the parameters which can take place in main query. As i showed you for order by. So suppose if you use the query which you posed then query will create parameter as i mentioned before. Then you will have to pass the complete order by statement like this...
    ORDER BY column_name -- any one which used in select queryParameter with colon *:*
    It create normal data parameter. So. while running report user will pass single value for the parameter as you will use in query with = sign.
    -Ammad

  • Dynamic sort ascending / descending

    Hi all,
    I am trying to sort an internal table dynamically.
    In this table I have a number of field to use for an ascending sort and other used to sort descending.
    I have writen the code to create two fields (character field) in which I concatenate the sort field names.
    The result is :
    sort_field_up = ' field1 field2 field 3'
    sort_field_dn = ' field4 field5 field 6'
    and then i coded :
    sort itab by (sort_field_up) ascending (sort_field_dn) descending.
    But I get a dump ...
    has anyone ever done this ?
    regards,
    Nicolas

    Hi,
    only single fields can be mentioned in dynamic sort.
    REPORT  Z_DYNAMIC_SORT                          .
    data: sort1 type string,
          sort2 type string.
    data: begin of itab occurs 0,
           vbeln like vbak-vbeln,
           posnr like vbap-posnr,
          end of itab.
    "not possible to group the fileds.
    "sort_field_up = ' field1 field2 field 3'
    sort1 = 'VBELN'.
    sort2 = 'POSNR'.
    sort itab by (sort1) ascending (SORT2) descending.
    "or
    sort itab by (sort1) (SORT2) ascending .
    write sy-subrc.
    regards
    vijay

  • Can we use Dynamic SQL in Oracle Reports ?

    Hi ,
    Can we use Dynamic SQL in Oracle Reports ?
    If yes please give some examples .
    Thanx
    srini

    I believe the built-in package SRW.Do_Sql is what you are looking for
    Example from the document:
    /* Suppose you want to create a "table of contents" by getting the
    ** first character of a columns value, and page number on which its
    ** field fires to print. Assume that you want to put the "table of
    contents"
    ** into a table named SHIP. You could write the following construct:
    DECLARE
    PAGE_NO NUMBER;
    PAGE_FOR INDEX NUMBER;
    SORT_CHAR CHAR(1);
    CMD_LINE CHAR(200);
    BEGIN
    SORT_CHAR := :SORT_NAME ;
    IF :CALLED = Y THEN
         SRW.GET_PAGE_NUM(PAGE_FOR_INDEX);
         SRW.USER_EXIT(RWECOP PAGE_FOR_INDEX
         P_START_PAGENO);
         SRW.MESSAGE(2,TO_CHAR(:P_START_PAGENO));
    END IF;
    SRW.GET_PAGE_NUM(PAGE_NO);
    CMD_LINE := INSERT INTO SHIP VALUES
                          (||SORT_CHAR||,||TO_CHAR(PAGE_NO)||);
    SRW.MESSAGE(2,CMD_LINE);
    SRW.DO_SQL(CMD_LINE);
    COMMIT;
    EXCEPTION
      WHEN DUP_VAL_ON_INDEX THEN
            NULL;
      WHEN SRW.DO_SQL_FAILURE THEN
            SRW.MESSAGE(1,FAILED TO INSERT ROW INTO SHIP TABLE);
      WHEN OTHERS THEN
           COMMIT;
    END;

  • Dynamic Images in PDF Report

    Hi,
    I want to create Badges from employee table (ID, NAME, JOB_TITLE, PHOTO). I downloaded and installed a demo application "USING DYNAMIC IMAGES IN PDF REPORT". It works fine with smale images < 20K. I'm getting the following error for images > 20K :
    "ORA-06502: PL/SQL: numeric or value error: raw variable length too long"
    it seems like a buffer problem.
    could you pls help to solve this problem
    Thanks,
    Ribhi

    Hi Carsten
    That was exactly* I was looking for. Maybe I should Google more in German ;-)
    The main problem was that I defined my image outside the first repeating group (that doesn't repeat, it's always just one object) - the first group is followed by 7 more.
    Just like the "Name" (that's positioned outside the group in the document header), I positioned the image above the table representing the group.
    Doing that, the "Name" is filled correctly, the Image only when the Output Format is Excel or HTML - not Word or PDF ... makes no sense but that's tje way it is.
    After moving the image inside the group....it works great!
    (One more thing...the image size is fixed to the image you use as "dummy". Is there any way to make that more flexible, because now some scaling happens...)???
    @Trent: That was the way we initially did it, but when the size of the row exceeds 32K...you know what happens.. And even with a small image the 32K limit is hit easily
    The way I use it now (very similar to Carsten's description) there is no limit....
    Thank you all!
    Roel

  • Creating a tabular report comparing two measures based on accounts

    Hi,
    I'm trying to create a simple GL report but i'm getting stuck. Using BIP with OBIEE 10.1.3.4.
    What i have is some GL data: debit amount (De), credit amount (Cr) and account number (acc). I would like to create a simple tabular report, comparing debit and credit transactions based on accounts, like this:
    ___________LabelA____________LabelB______________ LabelC_______________ Difference(LabelA - LabelB - LabelC)
    Label1___Cr if acc=760___De if acc=400 and 401___De if acc like 30_____________________Calculated value (A-B-C)
    Label2___Cr if acc=750___De if acc=410,411,412___De if acc between 31 and 35__________Calculated value (A-B-C)
    Total (SUM) for A, B, C and Diff
    Sample XML file:
    <ROWSET>
    <ROW>
    <Acc>760</Acc>
    <Debit>7.8248741841E8</Debit>
    <Credit>8.9404379158E8</Credit>
    </ROW>
    <ROW>
    <Acc>750</Acc>
    <Debit>133217.03</Debit>
    <Credit>133217.03</Credit>
    </ROW>
    <ROW>
    <Acc>400</Acc>
    <Debit>4.096061012E7</Debit>
    <Credit>4.094870039E7</Credit>
    </ROW>
    <ROW>
    <Acc>401</Acc>
    <Debit>9018837.64</Debit>
    <Credit>9018837.64</Credit>
    </ROW>
    <ROW>
    <Acc>410</Acc>
    <Debit>1.472907204E7</Debit>
    <Credit>2.945814408E7</Credit>
    </ROW>
    <ROW>
    <Acc>411</Acc>
    <Debit>1.022005997E7</Debit>
    <Credit>1.022005997E7</Credit>
    </ROW>
    <ROW>
    <Acc>412</Acc>
    <Debit>4.908581602E7</Debit>
    <Credit>6.1676647725E8</Credit>
    </ROW>
    <ROW>
    <Acc>30</Acc>
    <Debit>241861.14</Debit>
    <Credit>240128.14</Credit>
    </ROW>
    <ROW>
    <Acc>301</Acc>
    <Debit>6344057.99</Debit>
    <Credit>6344057.99</Credit>
    </ROW>
    <ROW>
    <Acc>310</Acc>
    <Debit>1.4462687928E8</Debit>
    <Credit>1.4462687928E8</Credit>
    </ROW>
    <ROW>
    <Acc>312</Acc>
    <Debit>2.512200946E7</Debit>
    <Credit>2.511277993E7</Credit>
    </ROW>
    <ROW>
    <Acc>350</Acc>
    <Debit>1.4682048826E8</Debit>
    <Credit>1.4682048826E8</Credit>
    </ROW>
    </ROWSET>
    Is that possible? I would appreciate any tips.
    Thank you,
    Jandi

    Hi Luis,
    According to your description, you create a Reporting Services report using Analysis Service Tabular Model as the datasource, now what you want is sum the months value on year level, right?
    In your scenario, you can add the Month field to column group, add a parent group using Year Field and then add a Total on Month group. In this case, Reporting Services will sum the months value on Year level. I have tested it on my local environment, the
    screenshot below is for you reference.
    Reference:Lesson 6: Adding Grouping and Totals (Reporting Services)
    If this is not what you want, please describe your dataset structure, so that we can make further analysis.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Tabular Report for Update a single column

    Hello Everyone,
    I have a tabular report which will display 1 column (apart from primary key),
    1. I will display a edit icon (on primary key)
    2. when the user selects this icon, this only row must become updatable (only one column must become text item, so that user can modify the value).
    3. Next this text item, i would like to display save button and cancel button so that user can click one of these buttons next to that particular row.
    Any help would be appreciated.
    Regards
    Anil

    There is no easy way to do this without some incredibly lengthy javascript. Tabular forms still do not give much declarative control to the developer.
    If you are looking to click a button and update one column on one row, it's easiest to change your design to two pages using report and form. Make the first page the report with an Edit button, click the button (nothing more than a link) and it goes to a basic form with only one updateable field. After submit, branch back to the first page. Easy.
    For the end user, there are no more mouse clicks involved in this than what you described originally so it's likely it'll be an acceptable application design change.

  • How to decrease the column size in a tabular report

    Hi ,
    How can i reduce the column size in a tabular report in oracle apex.
    my report is having 90 coulmns and i want that should come in once sceen so i want to decrease the size of columns as well as the font size of values + column_name..
    any suggestion ?
    Thanks
    Nitin

    Hello,
    Oracle APEX OTN Forum is here : Oracle Application Express (APEX)
    Regards

Maybe you are looking for

  • Adobe not allowing import of XML file captured from Media Express through Black Magic capture card

    I have been going crazy trying to find a way to import the XML files to fix the digitized look Adobe capture gave my footage. Someone help me These are not XML from Final Cut. They are files saved from Media Express, a Black magic design program used

  • Need help on these faq's

    Hi, Need some info on these questns...pls help 1.What is the advantages of using ABAP objects in reports? 2. What does an EXEC SQL statement do in ABAP. What is the disadvantage of using it? 3. The format of hierarchical sequential ALV? 4. Explain HO

  • Payment Terms (is it possible in SAP)

    Hi Every one Is it possible to create this type of Payment Term in SAP Business Requirement is to create a New Payment Term for a customer ABCD (payment Terms) 1ST – 10TH of month 15TH of following month (For example if Document Date is within 1st to

  • Portal: Use of SQL code

    Hi I have tried to put some SQL code in some Forms, in the part where it is suppoused to be put (where it says after display page, after display form, etc) but it doesn4t work. I don4t know how the syntaxis must be so I wonder if someone could help m

  • Customers RFC TO PI

    Hi!   I have a ABAP to send the Custumers Data to External System by PI.   CALL FUNCTION 'YMC1_RFC_CARGA_CLIENTES_DUMMY'     DESTINATION 'ECC_TO_PI'     TABLES       in_t_clientes           = p_in_t_clientes       in_t_clientecomplemento = p_in_t_cli