Supressing the detail rows in a query

Hi All,
I need to display only result rows for the queries and supress as all the details.
I need to start the query with details suppressed and then if user wants he can drill down on details.
Can I do it ?
For some reasons using   free characteristics and then bring them to drill down is not feasible.
I think I had seen option of supressing detailed rown and displaying result somewhere. but neither I am 100% sure not I can locate it.
Help would be appreciated and point would be awarded.
Thanks
Kirk

Murali,
Thanks again.
Now I am quite sure you havent understood the problem correctly. In fact I was not able to put my problem across. Apologies for the same.
In a query I have 2 KFs one derived from the other.
Char1     Char2 KF1 KF2(KF1 > 5)
A           B   6     1
A           C   3     0
A           D   7     1
I want it to be displayed as
Char1  KF1  KF2
A       16   2
Intead it derives KF2 from result of KF1
and displays it as
Char1 KF1 Kf2(KF1 > 5)
A     16  1

Similar Messages

  • Master detail forms..increase the detail rows by clicking a button

    hi all,
    i have a problem, in my master detail form i have set the details rows as 8. can i give an option to the user such as a button, on clicking which he can increase the number of detail rows by say 2 or 3.
    can any one help me out on this???
    Thanks in Advance
    Rajesh

    Hi Rajesh,
    This is not posible in the current model of the portal forms , the no of detail rows can be set only at the design time.
    rahul

  • Master Detail Form - How 2 update a field in the Detail form using a query?

    Hello,
    I have a master detail form with, each master record having a fixed(6) number of detail records. One of the fields in the detail record is the PART_DESCRIPTION field. I am trying to update this field by querying Table_X. TABLE_X is in the format of (desciption id, description). Description id runs from 1 to 6.
    When the form displays, the PART_DESCRIPTION field for the 6 detail records needs to be automatically populated with the six values of description stored in Table_X. How can this be done?
    Tried using session storage objects, but made no headway.
    Would greatly appreciate pointers on how to go about doing this.
    Thanks.
    Dev

    If you are on a Portal Version lesser than 3.0.9.8.3, then please try the following to populate
    the PART_DESCRIPTION field.
    Steps:-
    1> Edit the form and go to the Additional PL/SQl section and put the following code in the
    "...after displaying the page area" :-
    declare
    type t_vc_arr is table of varchar2(4000) index by binary_integer;
    l_arr_desc t_vc_arr;
    l_form_name varchar2(200);
    l_form_state varchar2(500);
    begin
    l_form_name := p_session.get_module().get_name();
    l_form_state := p_session.get_value_as_varchar2(
    p_block_name => 'MASTER_BLOCK',
    p_attribute_name => '_FORM_STATE'
    if l_form_state = 'QUERY_AND_SAVE' then
    select description
    bulk collect into l_arr_desc
    from <schema>.table_x;
    htp.p('
    <script>
    var descArr = new Array();
    var Fidx = 1;
    var formObj = document.WWVM'||p_session.get_id()||';
    var fieldName = "'||l_form_name||'.DETAIL_BLOCK.PART_DESCRIPTION.0";
    for i in 1..l_arr_desc.count loop
    htp.p('descArr['||to_char(i-1)||']="'||l_arr_desc(i)||'";');
    end loop;
    htp.p('
    for (var i=0; i < formObj.length; i++){
    if (formObj.elements.name == fieldName+Fidx){
    formObj.elements[i].value = descArr[Fidx-1];
    ++Fidx;
    htp.p('</script>');
    end if;
    end;

  • Presenting/Selecting the "result rows" in a query

    Hi,
    Here is a description of my problem:
    I have a query which returns values for materials grouped by purchasing groups:
    Group 1 Material A KyeFigure
    Group 1 Material B KyeFigure
    Result:  KyeFigure       
    Group 2 Material C KyeFigure
    Group 2 Material D KyeFigure
    Result: KyeFigure
    I'm using a Web application designer chart to present the values graphically. I would like only to present the result rows in the chart, not item values. But since the chart picks all KFs presented in the table (items as well) this is not the case. I've tried to find a way in the chart-settings without any luck - it seems not possible. The documentation states that you're supposed to design your table the way you want it to show in the chart. However, I'm not allowed to redesign the cube or the report. It is not possible to drill up characteristics either (this affects the calculation).
    My question is: Is there a way to extract the result rows into a new table and then base my chart on that one or simply somehow present only the result rows in a chart?
    Best Regards
    /Daniel

    Hi Daniel,
    You can create the query view in BEx Analyzer. After you execute the query, use filters, drill downs etc to get to the exact "view" of data that you would like you chart to present. Save this query view. Then in your web template assign this query view as the data provider.
    Hope this helps...

  • Formula Field in a Suppression x+2 to supress the whole row?

    I want to suppress the whole row based on the  result of the my field formula of empty string "".
    Can the suppress formula hold an @field formula to suppress row where the "" string is report field content?

    Never, MIND... I am a newbie, and I just figured this one out on my own.
    Works great.

  • Pick the last row returned from query

    hii...
    i have a query thats returns...
    SQL> WITH tbl_zone AS (
      2       SELECT to_date('02/03/2010', 'DD/MM/YYYY') close_date FROM dual UNION ALL
      3       SELECT to_date('03/03/2010', 'DD/MM/YYYY') FROM dual UNION ALL
      4       SELECT to_date('04/03/2010', 'DD/MM/YYYY') FROM dual UNION ALL
      5       SELECT to_date('09/03/2010', 'DD/MM/YYYY') FROM dual UNION ALL
      6       SELECT to_date('11/03/2010', 'DD/MM/YYYY') FROM dual)
      7    SELECT  TRUNC(close_date, 'IW') close_date
      8   from tbl_zone t
      9   ORDER BY 1 DESC;
    CLOSE_DATE
    08/03/2010
    08/03/2010
    01/03/2010
    01/03/2010
    01/03/2010i want the query to return just i row and that should be the greatest date
    in the above example
    the query should return single row out of the 2 greatest dates, 08/03/2010.
    CLOSE_DATE
    08/03/2010Please any one suggest...

    How about row_number()
    SQL> with tbl_zone as (
      2       select to_date('02/03/2010', 'dd/mm/yyyy') close_date from dual union all
      3       select to_date('03/03/2010', 'dd/mm/yyyy') from dual union all
      4       select to_date('04/03/2010', 'dd/mm/yyyy') from dual union all
      5       select to_date('09/03/2010', 'dd/mm/yyyy') from dual union all
      6       select to_date('11/03/2010', 'dd/mm/yyyy') from dual
      7       )
      8  --
      9  --
    10  --
    11  select close_date
    12  from ( select trunc(close_date, 'iw') close_date
    13         ,      row_number() over ( order by close_date desc)  rn
    14         from   tbl_zone t
    15       )      
    16  where rn=1;
    CLOSE_DATE
    08-03-2010 00:00:00

  • Get always the same rows in a query.

    I have a characteristic with three values as a master records, the values are:
    T1 – Incoming payments
    T2 – Outgoing payments
    T3 – Not yet assigned payments
    I have an InfoProvider (InfoCube) that has this characteristic assigned (and many others), if the InfoCube does not contain any value with the data “T2” for that characteristic the row for “T2” is not shown in the query.
    I would like all the values of the characteristic to be shown in the query no matter if the InfoCube contains values or not. It means that the query should always have the same number of rows, in the e.g. it should show three rows, one for each master record.

    O.K.
    What I want to avoid is the message “No Applicable Data Found”, I would like to see all the selections define on the structure even if the InfoCube does not contain data for the selection defined.
    The query would be shown this way if there is any data in the InfoCube concerning to the filters applied (filter year=2006):
    Year     2006     
    Planning Level          January     February
    Incoming payments     T1     220,00     250,00
    Outgoing payments     T2     -160,00     -210,00
    Not assigned payments     T3     0,00     0,00
    Total          60,00     40,00     
    The query would be shown this way if there is no data in the InfoCube concerning to the filters applied  (filter year=2007):
    Year     2007
    No Applicable Data Found
    I would like the query to be shown this way even if there is no data in the InfoCube concerning to the filters applied (filter year = 2007):
    Year     2006
    Planning Level          January     February
    Incoming payments     T1     0,00     0,00
    Outgoing payments     T2     0,00     0,00
    Not assigned payments     T3     0,00     0,00
    Total          0,00     0,00
    I hope is more understandable now, thank you,
    Manuel Grundell

  • The detail part of table doesn't refresh after deleting a row

    Hello!
    I'm developing a Master-Detail table with some a functionality. Particularly, I want to invoke a DELETE function in the Detail part of the table.
    For this purpose, I placed a Command button to the tableSelectOne component of the Detail part of the table, which stores current row key and calls another page. On this (<another>) page I created a ReadOnly form with data related to the row of Detail table, which key is stored. In addition, I added there two Command buttons. First of them is a CancelButton, which does nothing except returning to master-detail page. The second is a DeleteButton, which executes a RemoveEntity method and returns to master-detail page, too.
    When I'm tried to delete in this way a row from detail part of table, I discovered, that this row is really deleted from the database, but it doesn't affect on the content of the Detail part of the table. Any kinds of refreshing couldn't aid me, only restart of the application.
    Could anybody help me to solve this problem?
    Thank in advance.

    Hi,
    I'm facing the same problem but Frank's solution doesn't fix it.
    you need to define an invoke action in the binding
    for your m/d page and set it into the page binding's
    execute section. Then set the condition for invoking
    the action to !postback. This will re-execute the
    iteratorThis efectively re-executes the iterator, so the master table data is refreshed. You can see the TopLink log showing the query to the db (I'm using TopLink instead of BC). The problem is that the detail rows are queried only once and only the inserts and updates are displayed, not the deletes.
    I think the problem may be related to PPR or some cache issue.
    See the BC tutorial
    http://www.oracle.com/technology/obe/ADFBC_tutorial_10
    13/ADFBC_tutorial.pdf
    See page 86 "Adding the ServiceHistories Data". This
    defines a invoke action for this kinf of task. More
    example code is contained in the SRDemo sampleThe tutorial doesn't contain a scenario with master-detail deleting detail records (neither the BC tutorial, nor the TopLink one) so it can't help me :(
    The only solution I can think of is using a different model method (a method in the SessionFacade for TopLink) for the detail table (one that takes the master PK as parameter and retrieves the corresponding detail records) and have a selectionListener in the selection component of the master re-execute the method (passing the PK from the master table current row).
    Is there a solution that doesn't require the use of a separate method for the detail?
    Thanks,
    Miguel

  • Detail rows not fetched in af:iterator for the first time

    Hi,
    I have a table with 3 columns. Column 3 is a detail record with column 1 being the parent.
    Column 3 is displayed in the table using af:iterator #{row.detailRows}.
    The detail records are created in a different page.
    When I add the detail records to the master in this page and navigate to the page where the table is rendered, sometimes I do not see the column 3(detail rows) displayed immediately. The iterator #{row.detailRows} returns no rows.
    When I go back to the previous page wait for sometime and navigate to the page with table, I see the detail rows.
    This is happening intermittently and not always.
    Why is the iterator returning no rows sometimes(even though it returns values after a while)?
    When this happens, I checked the back end data and all the data is inserted into the db tables immediately.
    Jdev version: 11.1.1.4.0
    Any help is appreciated.
    Thanks!

    Srini,
    Should I set the 'Target Data Source' to the detail iterator?
    I want detail rows displayed in column 3 for all rows in the table on page load, not on row selection.
    The page on load should display the table in below manner, irrespective of row selection all rows' detail values should be rendered.
    S No.
    Master key
    Detail values
    1
    master1
    detail1-1
    detail1-2
    detail1-3
    2
    master2
    detail2-1
    detail2-2
    detail2-3
    detail2-4
    3
    master3
    detail3-1
    detail3-2
    detail3-3
    Thanks!

  • Need to show total of condition result only not the detail

    Hi,
    I've created a query to report the number of shopping carts with a value over $1000 for a given period of time.  I included the shopping cart and its value in the query but do not display them.  Then I created a condition to keep only those > $1000.  I get the correct result but too many rows, basically one for each shopping cart that meets the condition - I want to report only the result line (total) only per period.
    Any ideas?
    Thanks
    Suzanne

    Often when using Conditions, you need to change the Results properties to Summation, so that it sums and displays just the rows that have satisfied the condition(s).  Without the Summation option, the Result row totals are for all the detail rows, including the rows that are not displayed because they meet the conditions(s).
    Sounds like in this case you would need to add VB code to the workbook to suppress the detail rows and just display the Result rows.  Don't have an alternative if you are trying to do this on the web.

  • New detail rows not showing

    Hi,
    Here's a little background on my problem. We have a simple master-detail hierarchy. Both have a ViewObject. The problem lies in the fact that our detail VO has a filter using a bind variable. The bind variable value is determined (most of the time) at the VO execution time: bindParametersForCollection is overriden and passes a value for the bind variable if it is null. In our specific case the variable represents the username of the authenticated user.
    The main complexity lies in the UI. We present all the masters and their children in a single table in edit mode. We are using a tree binding with an accessor from the master node to the child node.
    Example
    Row 1: Master 1 Column 1 | Master 1 Column 2 | Master 1 Detail 1 Column 1 | Master 1 Detail 1 Column 2
                                                 | Master 1 Detail 2 Column 1 | Master 1 Detail 2 Column 2
                                                 | Master 1 Detail 3 Column 1 | Master 1 Detail 3 Column 2
    Row 2: Master 2 Column 1 | Master 2 Column 2 | Master 2 Detail 1 Column 1 | Master 2 Detail 1 Column 2
                                                 | Master 2 Detail 2 Column 1 | Master 2 Detail 2 Column 2
                                                 | Master 2 Detail 3 Column 1 | Master 2 Detail 3 Column 2
    Row 3: Master 3 Column 1 | Master 3 Column 2 | Master 3 Detail 1 Column 1 | Master 3 Detail 1 Column 2
                                                 | Master 3 Detail 2 Column 1 | Master 3 Detail 2 Column 2
                                                 | Master 3 Detail 3 Column 1 | Master 3 Detail 3 Column 2Everything works until we try to create new rows. In our use case, whenever we create a new master row, we also create a fixed number of detail rows. The number of detail rows depends on the context. Whenever we do this, the details rows do not show up in the UI.
    In my experimentations, I found that the problem was caused by the bind variable on the detail VO. Tracing the detail VO query execution I came to the conclusion that unposted rows where rejected from the QueryCollection when there’s a bind variable. The debugger shows that in VO#executeQueryForCollection the QueryCollection#mUnpostedRows list is empty when there’s a bind variable while it is not when there’re no bind variable.
    This is a major issue in our case, so I would like to know if you consider this as a bug (in my opinion it is). If yes, when can we expect a fix or workaround? Otherwise we’ll have to get around this problem by either finding a way to remove the bind variable OR do everything manually in a managed bean (which I would prefer not to have to do).
    I have reproduced the problem in a SRDemo test case. Test case has been sent to Steve Muench.
    Thanx!
    Olivier

    This looks very similar to Bug# 6412612 "New Row Lost After Executequery In Vo W/ Bind Variable In Where Clause", reported in the Tech Preview #2 release, and fixed in Tech Preview #3 (due out before the end of December 2007). Will try confirming with an in-house TP3 build that this fix fixes your testcase, too.

  • Fixed number of detail rows

    Hi all,
    I have "shipment form" that I need to replicate in reporting services - see image.
    FYI, there is more header info below the "shipment details" section...
    My issue, is fixing the number of detail lines, my data can have between 1 and 5 detail lines & I would like to use a table rather than lists / textboxes etc.
    Is there any way I can fix the detail lines lines to 5 i.e. i need the shipment detail section to be the same size - regardless of the number of rows.
    I think one solution is do it in the query (return empty detail columns when they don't exist) - but I'm guessing there is a correct way to do it in the report.
    Any assistance greatly appreciated.
    Thanks in advance.

    Hi Clay,
    I am not sure if it's the cleanest option, but it works :-)
    In the query of the shipment details, add the following (assuming your query has just five output columns):
    UNION ALL
    SELECT '', '', '', '', ''
    UNION ALL
    SELECT '', '', '', '', ''
    UNION ALL
    SELECT '', '', '', '', ''
    UNION ALL
    SELECT '', '', '', '', ''
    ORDER BY ColumnName DESC
    This will add blank lines to your query. Now you have to tell the tablix that it should not display more than 5 rows. Right-click on the details icon on the left of the details row and select "Row visibility". Select the option "Show or hide based on an
    expression" and type the following in the expression box:
    =Iif(RowNumber(Nothing) <= 5, False, True)
    The added blank lines and this visibility expression should always create 5 rows.
    Hope this helps!
    - If a post answers your question, please click "Mark As Answer" on that post!

  • How to show only the result line of a Query result ?

    Hi Experts,
    I want to show only the result line of the Query. Is this possible in query Designer ?
    In BeX Workbook, I can hide the rows but they grow or shrink dynamically and hence it is unpredictable how many rows to suppress.
    If you have any solutions/workarounds, please reply !
    Rekha

    VBA coding can be used to display just the Result rows.
    Somthing like this - modify as needed.
    This scans the range of query results looking to find the last row, then checks those rows to see if the word Result is found or not, deleting (or you could just hide) the detail rows.  There is also a LEAF option in BEx Boolean options that returns a 1 or 0 depending on whether a row is a detail or result that could also be used to hide rows rather than looking for the presence of "Result" in a particular column
    Sub SAPBEXonRefresh(queryID As String, resultArea As Range)
    For rownum = 17 To 64000 Step 1
    ' col 2 is the Total Result, col 3 is the User Group result
    If Cells(rownum, 2) = "" And Cells(rownum, 3) = "" Then
    lastrow = rownum - 1
    Exit For
    End If
    Next
    For rownum = lastrow To 17 Step -1
    If Cells(rownum, 2) = "Result" Or Cells(rownum, 3) = "Result" Then
    Rows(rownum).Hidden = False
    Else
    ' Rows(rownum).Hidden = True
    Rows(rownum).EntireRow.Delete
    End If
    Next
    End Sub

  • Re-freshing the detail form --- not so straightforward is it?

    hi there
    this is my problem:
    i have a master-detail form. Now this form basically provides the user the option to enter some parameters, which decides the number of rows to be entered in the detail.
    master form: qty and starting serial number.
    when he hits generate in master form, there are qty no. of records inserted in the detail table, but its not displayed in the detail form.
    if i query the record, the updated detail form is shown.
    so how can i make it so that when the user hits generate, the form detail part is automatically updated.
    eg.
    if the qty was 5 and thus there are 5 records(or serial nos.) in the detail, if he changes the qty to 8 and hits generate.. the detail block.. should update itself and show the 3 new records.
    thanks

    declare
         SERIAL_STRING VARCHAR2(50);
         trimmed_prefix varchar2(50);
         last_sr_no number(38);
         trav number(38);
         tab_ref number(10);
    begin
         IF :mytable.TABLE_REFERENCE = -1 THEN
              select last_number into tab_ref from user_sequences where SEQUENCE_NAME = 'mytable_SEQ' ;
         ELSE
              tab_ref := :mytable.TABLE_REFERENCE;
              delete from mytable_updated GU where GU.table_reference = tab_ref;
         END IF;
         IF :mytable.VOUCHER_NO IS NULL OR
              :mytable.REF_NO IS NULL OR
                   :mytable.USER_ID IS NULL OR
                        :mytable.QTY IS NULL OR
                             :mytable.PREFIX IS NULL OR
                                  :mytable.START_# IS NULL
         THEN
              MESSAGE('ERROR:666746-ATOU : Please enter all the information');
         ELSE
                   trimmed_prefix := RTRIM(LTRIM(:mytable.prefix));          
                   last_sr_no := :mytable.start_# + :mytable.qty - 1;
                   trav := :mytable.start_#;
                   while trav <= last_sr_no loop
                        serial_string := trimmed_prefix || trav;
                        insert into mytable_updated values ( :mytable.voucher_no,:mytable.ref_no, :mytable.user_id, :mytable.item, 1, serial_string, tab_ref);
                        trav := trav + 1;
                   end loop;
                   :mytable.sr_updated := 'Y';                    
              :mytable.sr_no_start := trimmed_prefix || :mytable.start_#;
                   :mytable.sr_no_end := trimmed_prefix || last_sr_no;
              do_key('commit_form');
              go_block('mytable_UPDATED');
              execute_query;
         END IF;          
    end;
    thanks for ur time in going throught this code..
    do_key('commit_form');
              go_block('mytable_UPDATED');
              execute_query;
    this bit... i save the changes and then go to the detail block as u suggested and execute query. it should update the records in the detail table... it works when i update the master record when i have do enter query . but when making new records... it does not work?
    any idea why?

  • New inserted detail row is not showing through accessor

    I have to insert master and detail row. I insert row in master view  and then I get detail row using getAttribute on master view. Then I insert row into detail row. Result is one inserted master row and no data display in detail view.
    How ever in managed bean when I get master view using finditerator and then get detail row also using finditerator on the specific page then rows inserted on master and detail view appear.
    DCIteratorBinding dcIter =             ADFUtils.findIterator("PlotMst1Iterator");
    ViewObject mvo = dcIter.getViewObject();
    mvo.insertRowAtRangeIndex(0, row);
    mvo.setCurrentRow(row);
    Row row = mvo.createRow();
    // DETAIL ACCESSOR  not working
      //  RowSet Pd = (RowSet) row.getAttribute("PlotDtl");
    DCIteratorBinding dcIter2 =       ADFUtils.findIterator("PlotDtl2Iterator");      
    ViewObject dvo = dcIter2.getViewObject();
    nvp.setAttribute("FabricCode",r.getAttribute("FabricCode"));
    Row drow = dvo.createAndInitRow(nvp);      
    dvo.insertRow(drow);   

    Hi,
    its a classical programming mistake you do. You create a new row on the model layer and not the binding layer. The proper way of doing this would be to
    1) either create a method binding for the "CreateInsert" operation in the PageDef file and call it from there
    or
    2) DCIteratorBinding dcIter = ADFUtils.findIterator("PlotMst1Iterator");
        Row rw = dcIter.getRowSetIterator().createRow();
    Same for your attempt to create the detail row. Again you can expose the createInsert operation in the PageDef file or use the RowSetIterator. As you create a master and detail row at the same time, be aware of a constraint problem that may arise from this as you have no guarantee that the master is inserted first. Read this http://docs.oracle.com/cd/E35521_01/web.111230/e16182/bcentities.htm#CEGJAFCF to learn about the problem.
    Note that use case often matters. While I can see where your coding goes wrong, I can't tell if your approach in general could be chosen better
    Frank

Maybe you are looking for

  • Difference between service pack and Patch in XI

    What is the difference between Service Pack(SP) AND Patch ?? e.g SP12, Patch8. Is it like that when there is a major change they will issue SP and for a small change they will issue patch ?? or after number of patches they will issue SP combining all

  • Accounts payable workbench

    Dear Experts, Please can any body explain about SAP Accounts Payable Workbench and when it is used...Please share any material for this.... Regards Santosh

  • Using Home Share to move a library

    I am in the midst of transferring music, tv shows, and movies from an old laptop to a newer desktop. I am using the Home Sharing feature of iTUnes to do this. There is about 20GB worth of content transfering. Is Home Sharing a good way to do this tra

  • GROUP BY IN FILTER CONDITIONS

    Hi, I am trying to filter the condition based on account number and year, for specific account numbers i want to limit it by fiscal year 2010, for others i want all the years from 2007. How can I group it under filters in OBIEE. Ex: for account numbe

  • How to dispaly datas from the table, base on the selection screen

    hi there gurus, im currently developing a stock aging report, i have completed one program but it do not allow me to excutes the program althought the syntax is correct. i would to get some ideas from you, regarding how to extract the datas from the