Edit SQL for Infoprovider report

Hi,
i have a small question, since i never interfaced the BO XI 3.1 with SAP BW. Can we edit the SQL for the webi report created on the SAP Infoprovider (say for example : InfoCube - cube1).
Regards,
Siva

Hi Siva,
No you can not!
When you create a webi report based on a SAP BW cube there is no SQL generated, but an MDX statement. Currently it is not even possible to view the MDX statement on the BO side. You need to put a trace on it on the SAP BW side.
Regards,
Harry

Similar Messages

  • Help with Sql for Annual Report per month

    Hi, I have been given the task to create an annual report by month that would show company's profits per month and totals in the last column to show which branch had the hightest income.
    Branch||January||February||March||April||May||June....||Total||     
    ABC ||$0.00 ||$0.00 ||$0.00||$0.00||$0.00||$0.00||Total Amt||
    DEF ||$18.01 ||$3.88 ||$18.01||$4.12||$18.01||$3.97||Total Amt||
    Can anyone please help me in giving an idea of how to write sql for this report..? I am building sub-queries for everymonth by giving the dates for Jan/Feb/March..but I think this is not the right way to do this....
    SELECT
    sum(a.commission) December,
    sum(b.commission) November
    FROM
    Select
    c.account_id,
    c.officer,
    c.account_product_class_id,
    sum(c.dp_monthly_premium) Commission
    From
    contract c
    Where
    c.account_id=109 and
    c.status='APPROVED' and
    c.protection_effective between '01-DEC-2009' and '31-DEC-2009'
    Group by
    c.account_id,
    c.officer,
    c.account_product_class_id
    ) a,
    Select
    c.account_id,
    c.officer,
    c.account_product_class_id,
    sum(c.dp_monthly_premium) Commission
    From
    contract c
    Where
    c.account_id=109 and
    c.status='APPROVED' and
    c.protection_effective between '01-NOV-2009' and '30-NOV-2009'
    Group by
    c.account_id,
    c.officer,
    c.account_product_class_id
    ) b
    I always have hight hope from this forum. So please help. Thanks in advance.
    Edited by: Aditi_Seth on Jan 26, 2010 2:29 PM

    You may try a group report on one simple query like:
    Select
    c.account_id, c.officer, to_char(c.protection_effective, 'MM') month
    sum(c.dp_monthly_premium) Commission
    From
    contract c
    Where
    c.status='APPROVED' and .....
    Group by
    c.account_id
    c.officer,
    to_char(c.protection_effective, 'MM')
    break/gropu on account_id, c.officer, to_char(c.protection_effective, 'MM') and total will be automatically calculated by Reports.

  • SQL for a report in Reports Builder

    I have a long query that is for all the variables for a report I am building in Reports Builder. So far everything is correct except one column in behaving pretty strangely. For some reason the value in each row is showing up as the same as the value at the bottom of the column which is the column's total. All the values above that should equal the lower value when you add them together.
    What I've got is SUM statements. I figured out what I want the statement to do that's causing the problem I just can't make it do that. I want it to give me a count of how many times one value shows up when another value is equal to a certain value. Here is one line of the code that I've tried to change but SQL keeps giving me errors.
    SUM(case when contract_type = '1' and RPAD(TRIM(' ' from mod_num_ng), 6, '0') = '000000' then 1 else 0 end) TOTAL_CNT_1,
    I did change it to COUNT but then it gave me a different incorrect value.

    SELECT component_name||' ( '||component_code||' )' component_code,agency_name||' ( '||agency_num||' )' agency_num,
    COUNT(contract_num_ng) total_cnt,
    SUM(dollars_obligated) total_amt,
    COUNT(case when contract_type = '1' and RPAD(TRIM(' ' from mod_num_ng), 6, '0') = '000000' then 1 end) TOTAL_CNT_1,
    SUM(case when contract_type = '1' and RPAD(TRIM(' ' from mod_num_ng), 6, '0') = '000000' then dollars_obligated else 0 end) TOTAL_AMT_1,
    SUM(case when contract_type = '2' and RPAD(TRIM(' ' from mod_num_ng), 6, '0') = '000000' then 1 else 0 end) TOTAL_CNT_2,
    SUM(case when contract_type = '2' and RPAD(TRIM(' ' from mod_num_ng), 6, '0') = '000000' then dollars_obligated else 0 end) TOTAL_AMT_2,
    SUM(case when contract_type = '3' and RPAD(TRIM(' ' from mod_num_ng), 6, '0') = '000000' then 1 else 0 end) TOTAL_CNT_3,
    SUM(case when contract_type = '3' and RPAD(TRIM(' ' from mod_num_ng), 6, '0') = '000000' then dollars_obligated else 0 end) TOTAL_AMT_3,
    SUM(case when contract_type = 'A' and RPAD(TRIM(' ' from mod_num_ng), 6, '0') = '000000' then 1 else 0 end) TOTAL_CNT_A,
    SUM(case when contract_type = 'A' and RPAD(TRIM(' ' from mod_num_ng), 6, '0') = '000000' then dollars_obligated else 0 end) TOTAL_AMT_A,
    SUM(case when contract_type = 'B' and RPAD(TRIM(' ' from mod_num_ng), 6, '0') = '000000' then 1 else 0 end) TOTAL_CNT_B,
    SUM(case when contract_type = 'B' and RPAD(TRIM(' ' from mod_num_ng), 6, '0') = '000000' then dollars_obligated else 0 end) TOTAL_AMT_B,
    SUM(case when contract_type = 'J' and RPAD(TRIM(' ' from mod_num_ng), 6, '0') = '000000' then 1 else 0 end) TOTAL_CNT_J,
    SUM(case when contract_type = 'J' and RPAD(TRIM(' ' from mod_num_ng), 6, '0') = '000000' then dollars_obligated else 0 end) TOTAL_AMT_J,
    SUM(case when contract_type = 'K' and RPAD(TRIM(' ' from mod_num_ng), 6, '0') = '000000' then 1 else 0 end) TOTAL_CNT_K,
    SUM(case when contract_type = 'K' and RPAD(TRIM(' ' from mod_num_ng), 6, '0') = '000000' then dollars_obligated else 0 end) TOTAL_AMT_K,
    SUM(case when contract_type = 'L' and RPAD(TRIM(' ' from mod_num_ng), 6, '0') = '000000' then 1 else 0 end) TOTAL_CNT_L,
    SUM(case when contract_type = 'L' and RPAD(TRIM(' ' from mod_num_ng), 6, '0') = '000000' then dollars_obligated else 0 end) TOTAL_AMT_L,
    SUM(case when contract_type = 'M' and RPAD(TRIM(' ' from mod_num_ng), 6, '0') = '000000' then 1 else 0 end) TOTAL_CNT_M,
    SUM(case when contract_type = 'M' and RPAD(TRIM(' ' from mod_num_ng), 6, '0') = '000000' then dollars_obligated else 0 end) TOTAL_AMT_M,
    SUM(case when contract_type = 'R' and RPAD(TRIM(' ' from mod_num_ng), 6, '0') = '000000' then 1 else 0 end) TOTAL_CNT_R,
    SUM(case when contract_type = 'R' and RPAD(TRIM(' ' from mod_num_ng), 6, '0') = '000000' then dollars_obligated else 0 end) TOTAL_AMT_R,
    SUM(case when contract_type = 'S' and RPAD(TRIM(' ' from mod_num_ng), 6, '0') = '000000' then 1 else 0 end) TOTAL_CNT_S,
    SUM(case when contract_type = 'S' and RPAD(TRIM(' ' from mod_num_ng), 6, '0') = '000000' then dollars_obligated else 0 end) TOTAL_AMT_S,
    SUM(case when contract_type = 'T' and RPAD(TRIM(' ' from mod_num_ng), 6, '0') = '000000' then 1 else 0 end) TOTAL_CNT_T,
    SUM(case when contract_type = 'T' and RPAD(TRIM(' ' from mod_num_ng), 6, '0') = '000000' then dollars_obligated else 0 end) TOTAL_AMT_T,
    SUM(case when contract_type = 'U' and RPAD(TRIM(' ' from mod_num_ng), 6, '0') = '000000' then 1 else 0 end) TOTAL_CNT_U,
    SUM(case when contract_type = 'U' and RPAD(TRIM(' ' from mod_num_ng), 6, '0') = '000000' then dollars_obligated else 0 end) TOTAL_AMT_U,
    SUM(case when contract_type = 'V' and RPAD(TRIM(' ' from mod_num_ng), 6, '0') = '000000' then 1 else 0 end) TOTAL_CNT_V,
    SUM(case when contract_type = 'V' and RPAD(TRIM(' ' from mod_num_ng), 6, '0') = '000000' then dollars_obligated else 0 end) TOTAL_AMT_V,
    SUM(case when contract_type = 'Y' and RPAD(TRIM(' ' from mod_num_ng), 6, '0') = '000000' then 1 else 0 end) TOTAL_CNT_Y,
    SUM(case when contract_type = 'Y' and RPAD(TRIM(' ' from mod_num_ng), 6, '0') = '000000' then dollars_obligated else 0 end) TOTAL_AMT_Y,
    SUM(case when contract_type = 'Z' and RPAD(TRIM(' ' from mod_num_ng), 6, '0') = '000000' then 1 else 0 end) TOTAL_CNT_Z,
    SUM(case when contract_type = 'Z' and RPAD(TRIM(' ' from mod_num_ng), 6, '0') = '000000' then dollars_obligated else 0 end) TOTAL_AMT_Z
    FROM contract_actions_dw
    WHERE date_signed BETWEEN :P_DATE_SIGNED_START AND :P_DATE_SIGNED_END
    &P_CRITERIA
    GROUP BY component_name||' ( '||component_code||' )',agency_name||' ( '||agency_num||' )'

  • SQL for oracle Reports

    Hi, I am having trouble developing an oracle report to return information from several tables. The information to be returned is an aggregate operator "Count" and several fields from the tables. I cannot get the sql to compile without error.
    Does anyone know of a good website for oracle reports design with sql?

    Hi,
    Why not paste the SQL code along with the
    error or send it to : [email protected]
    Naresh
    null

  • Dynamic SQL for creating report in portal

    Has anyone had to create report in Portal using dynamic sql. That is you build up the query commands depending on the parameters entered by the user.
    E.g the columns displayed will be what the users has selected in the parameter form.
    Urgent reply please,
    Femi

    Hi,
    You can use SQL based reports to do this. The report should have a bind variable. The bind variable is used for the users to enter their values and query is built using the value in the bind variable. The user should enter the value of the bind variable from the customization screen.
    Here is an example
    select * from scott.emp
    where deptno = :vdept
    Here vdept appears in the customization screen and user should enter a value for this and run the report.
    Thanks,
    Sharmila

  • Multiple Physical SQL for one report

    Hi,
    Can someone please explain me why i am seeing multiple physical Queries generated for a single report.
    Please find below the physical sql.
    select sum(T314772.MONTHLY_BUDGET_AMT) as c1,
    T157680.NAME as c2
    from
    W_PARTY_D T157680,
    XXKC_CUSTSITE_SHIPTO_BUDGET_F T314772 / Fact_XXKC_CUSTSITE_SHIPTO_BUDGET_F */*
    where  ( T157680.ROW_WID = T314772.CUSTOMER_WID )
    group by T157680.NAME
    and
    select sum(case  when T97600.W_XACT_TYPE_CODE = 'Chargeback' then T93664.NET_AMT T93664.GLOBAL1_EXCHANGE_RATE end ) as c1,*
    sum(case  when T97600.W_XACT_TYPE_CODE = 'Credit Memo' then T93664.NET_AMT T93664.GLOBAL1_EXCHANGE_RATE end ) as c2,*
    sum(case  when T97600.W_XACT_TYPE_CODE = 'Debit Memo' then T93664.NET_AMT T93664.GLOBAL1_EXCHANGE_RATE end ) as c3,*
    sum(case  when T97600.W_XACT_TYPE_CODE = 'Standard Invoice' then T93664.NET_AMT T93664.GLOBAL1_EXCHANGE_RATE when T97600.W_XACT_TYPE_CODE = 'Invoice Cancellation' then T93664.NET_AMT * -1 * T93664.GLOBAL1_EXCHANGE_RATE end ) as c4,*
    T157680.NAME as c5
    from
    W_PARTY_D T157680,
    W_SALES_INVOICE_LINE_F T93664 / Fact_W_SALES_INVOICE_LINE_F */ ,*
    W_XACT_TYPE_D T97600 / Dim_W_XACT_TYPE_D_Sales_Ivclns */*
    where  ( T93664.CUSTOMER_WID = T157680.ROW_WID and T93664.XACT_TYPE_WID = T97600.ROW_WID and T93664.DELETE_FLG = 'N' )
    group by T157680.NAME
    please let me know the reason and how to control this kind off behavior

    Combined request is like, within a report you can create multiple requests. You can either use it in case of combining different subject area or within the same subject area and in same report when different filters apply.
    For example
    Fire Marine Motor
    State No. Amt. No. Amt. No. Amt.
    Andra Pradesh 10 |20000 11 |100000 20 |200000
    TamilNadu 11 |40000 10 |120000 20 |200000
    The first request is for Andra, so we will apply the filter as 'state is equal to in 'andra pradesh''. We specify filter(No using Product_code in 'Fire') in the column formula. Then there is an option as 'combine' by which u create another request and now the filter is 'state is equal to in 'Tamil Nadu''. So when you execute the report, it will generate you two different queries.
    Regards,
    Anitha.B

  • SQL for inventory report

    Hi,
    Does any how any SQL so I can create a report from inventory ledger as below:
    Txn Date Item Description Source Type Source Subinv Quantity UOM Unit Cost Txn Value
    14-JAN-10 159549 TEST Move order 62143 Prosthesis 1.00 EA 94.08200 94.08
    Any help would be great.

    I am trying to recreate the Material account distribution report.

  • Encoding for blank spaces in url in a sql statement in report

    1. What function or process do I use to encode for blank spaces in a url link in a report?
    I need to link from a report to a 2nd report and pass 5 variables. I believe that I need to do that by embedding my own url in the sql for the report, since the standard report sets up for only 3 variables to be passed.
    One of my variables PARTNER_FIRM has spaces in it, so how do I encode for that in the query. Currently, I have the following (... simplified).
    select partner_firm,
    count(distinct event) distinct_events,
    '<a href="f?p=18509:4:&SESSION.::NO:4:P4_PARTNER_FIRM,P4_QUARTER,P4_CATEGORY,P4_PRODUCT_CATEGORY,P4_EVENT:' ||
    partner_firm ||
    '%2C&P3_QUARTER.%2C&P3_CATEGORY.%2C&P3_PRODUCT_CATEGORY.%2C&P3_EVENT.">' ||
    count(distinct lower(attendee_email)) || '</a>' distinct_attendees
    from all_events ...
    but partner_firm has spaces which are returned. I think there is some way that I can encode for that?
    Thanks,
    Stephen

    Sure there is:
    select apex_util.url_encode('http://ww.oracle.com/') from dual
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • Parameterized Views for User Reports

    I would like to be able to define a view such as:
    create view dept_emps(p_dept in varchar2) as
    select * from emps where dept = p_dept);
    and use this view to define a SQL Dev drilldown report with SQL such as:
    select * from dept_emps(:DEPT)
    where :DEPT is a bind variable passed from a selected depts report row.
    Oracle apparently does not support parameterized view definitions as suggested above, but I have found an article by Tom Kyte on the issue of parameterizing views, where Tom suggests using DBMS_SESSION.SET_CONTEXT (called within a user package) to set context values that can be retrieved in a view using the SYS_CONTEXT function. I can get this approach to work at the SQL prompt to work around the lack of formal view parameters. I have a package which defines a procedure which sets context values that I can then retrieve within a view using the SYS_CONTEXT function.
    To use this approach when defining a SQL Developer user report, the SQL for the report would need to be logically something like (which works fine at an SQL prompt):
    exec ssuper_context.set_ctx('DEPT', :DEPT) - - Call user procedure to assign context variable 'DEPT' with bind value from parent report
    select * from dept_emps
    where view dept_emps uses function SYS_CONTEXT to return the value for context variable 'DEPT'.
    SQL Developer complains about this as the SQL for a user-defined report. Can anyone suggest how I might pass a bind value from a selected parent record to a view which implements a drilldown report?
    TIA Jon

    I met CSI at a kongress a few weeks ago and pressed them a bit on how this works. Eventually they fezzed up about the table read but mentioned that in the next release being developed it would be different...
    Problems with this is that the FM has a couple of limitations, so you cannot read all tables correctly... so you end up reading some of the wrong ones or taking the easy ones.
    Another option is to let the database itself do the hard work, to get back to the performance aspect.
    Anyway, for neither of these two do you need any tcode, so indeed we are drifting off topic...

  • Additional pl/sql on a report

    Hi
    Hope someone may be able to help.
    I have a report with a piece of pl/sql in the before displaying page area which calls a procedure and updates a field in a table, then when the report is displayed this value is shown on the screen as part of the report.
    I have then placed the report on a page and tried to run by passing a parameter but the report will not display on the page it is just blank. However if I take the additional pl/sql out of the report and run the page it displays fine.
    How do I get additional pl/sql to be called when the report is placed on a page?
    Jayne

    Hi
    This is the sql for the report
    select s.unique_id
    , s.submitter_name
    , s.property_address_1
    , s.property_address_2
    , s.property_address_3
    , s.property_address_4
    , s.property_address_5
    , s.property_post_code
    , s.application_date
    , s.required_fee
    , 'Return to homepage' homepage
    from online_lc_smh_details s
    where s.unique_id = :unique_id
    this is the additional plsql
    declare
    unique_id number(12);
    begin
    unique_id := portal.wwv_name_value.get_string(l_arg_names,
    l_arg_values, 'unique_id', 'YES');
    lc_online_fee(unique_id);
    end;
    This is how I am calling the report when it is placed on a page
    declare
    v_unique_id number(12);
    blk varchar2(12):='MASTER_BLOCK';
    begin
    v_unique_id:=p_session.get_value_as_number(p_block_name=>blk, p_attribute_name=>'A_UNIQUE_ID');
    call('http://ocella2.world/portal/page/portal/land/receipt/?UNIQUE_ID='||v_unique_id);
    end;
    Page parameter in the page is mapped I have tested by taking out the plsql from the report and it displays fine when when that is in the report is displays nothing
    Thanks
    Jayne

  • Urgent:How to Speed Up the Response time for PDF Report of  500 pages

    hi all
    i am running the 9ias on Solaris and Generating some reports
    Which fetches around 50,000 records and Display them in pdf format.
    When i am ruuning the Query at Database level Response time is Very fast.
    But when i Run the Report in Web Browser same report takes 7-8 minutes.
    So it seems that the Conversion to pdf and Displaying it takes most of time.
    Does any one has idea What parameter's needs to be changed/Caching ??? /
    or any other ways or methods which can be used to Reduce the Response time.
    (its once a monthly Report and User need to Download all the 500 pages as
    a Single Document).
    Any help / suggestion please
    thanks
    jai

    You aren't by any chance calling a function in your repeating frame that in turn goes back and queries the database, are you? If so ... don't. We regularly do 500+ page PDF-file reports, and one thing we discovered early on was that repeatedly going back to the database while generating the report output (in our case, in calculations that were being done on each line of a report) slowed the output down by an order of magnitude. Instead, we now retrieve all the data needed for each report up front (via functions or views called in the initial SQL for the report), and just use Reports to format the output. MUUUUUUUCH faster -- 200 page reports that used to take 15 minutes to complete now complete in just seconds.
    One way you can visually see if this is part of your problem is to watch the report execute in the Report Queue Manager application. If it spends all its time on the "Opening" stage then breezes through each page, this is not your problem. If instead it seems to take a long time generating each page, I'd suspect that this may be at least part of your delay.
    - Bill

  • ORA-01489 Received Generating SQL for Report Region

    I am new to Apex and I am running into an issue with an report region I am puzzled by. Just a foreword, I'm sure this hack solution will get a good share of facepalms and chuckles from those with far more experience. I welcome suggestions and criticism that are helpful and edifying!
    I am on Apex 4.0.2.00.07 running on 10g, I believe R2.
    A little background, my customer has asked an Excel spreadsheet be converted into a database application. As part of the transition they would like an export from the database that is in the same format as the current spreadsheet. Because the column count in this export is dynmic based on the number of records in a specific table, I decided to create a temporary table for the export. The column names in this temp table are based on a "name" column from the same data table so I end up with columns named 'REC_NAME A', 'REC_NAME B', etc. (e.g. Alpha Record, Papa Record, Echo Record, X-Ray Record). The column count is currently ~350 for the spreadsheet version.
    Because the column count is so large and the column names are dynamic I've run into a host of challenges and errors creating this export. I am a contractor in a corporate environmentm, so making changes to the apex environment or installation is beyond my influence and really beyond what could be justified by this single requirement for this project. I have tried procedures and apex plug-ins for generating the file however the UTL_FILE package is not available to me. I am currently generating the SQL for the query in a function and returning it to the report region in a single column (the user will be doing a text-to-column conversion later). The data is successfully being generated, however, the sql for the headers is where I am stumped.
    At first I thought it was because I returned both queries as one and they were joined with a 'union all'. However, after looking closer, the SQL being returned for the headers is about +10K+ characters long. The SQL being returned for the data is about +14k+. As mentioned above, the data is being generated and exported, however when I generate the SQL for the headers I am receiving a report error with "ORA-01489: result of string concatenation is too long" in the file. I am puzzled why a shorter string is generating this message. I took the function from both pages and ran them in a SQL command prompt and both return their string values without errors.
    I'm hopeful that it's something obvious and noobish that I'm overlooking.
    here is the code:
    data SQL function:
    declare
      l_tbl varchar2(20);
      l_ret varchar2(32767);
      l_c number := 0;
      l_dlim varchar2(3) := '''|''';
    begin
      l_tbl := 'EXPORT_STEP';
      l_ret := 'select ';
      for rec in (select column_name from user_tab_columns where table_name = l_tbl order by column_id)
      loop
        if l_c = 1 then
            l_ret := l_ret || '||' || l_dlim || '|| to_char("'||rec.column_name||'")';
        else
            l_c := 1;
            l_ret := l_ret || ' to_char("' || rec.column_name || '")';
        end if;
      end loop;
        l_ret := l_ret || ' from ' || l_tbl;
      dbms_output.put_line(l_ret);
    end;header sql function:
    declare
      l_tbl varchar2(20);
      l_ret varchar2(32767);
      l_c number := 0;
      l_dlim varchar2(3) := '''|''';
    begin
      l_tbl := 'EXPORT_STEP';
      for rec in (select column_name from user_tab_columns where table_name = l_tbl order by column_id)
      loop
        if l_c = 1 then
            l_ret := l_ret || '||' || l_dlim || '||'''||rec.column_name||'''';
        else
            l_c := 1;
            l_ret := l_ret || '''' || rec.column_name || '''';
        end if;
      end loop;
        l_ret := l_ret || ' from dual';
      dbms_output.put_line(l_ret);
    end;-------
    EDIT: just a comment on the complexity of this export, each record in the back-end table adds 12 columns to my export table. Those 12 columns are coming from 5 different tables and are the product of a set of functions calculating or looking up their values. This is export is really a pivot table based on the records in another table.
    Edited by: nimda xinu on Mar 8, 2013 1:28 PM

    Thank you, Denes, for looking into my issue. I appreciate your time!
    It is unfortunately a business requirement. My customer has required that the data we are migrating to this app from a spreadsheet be exported in the same format, albeit temporarily. I still must meet the requirement. I'm working around the 350 columns by dumping everything into a single column, which is working for the data, however, the headers export is throwing the 01489 error. I did run into the error you posted in your reply. I attempted to work around it with the clob type but eneded up running into my string concatentation error again.
    I'm open to any suggestions at this point given that I have the data. I'm so close because the data is exporting, but because the columns are dynamic, the export does me little good without the headers to go along with it.

  • Access APEX_APPLICATION.G_F01 in an SQL query for a report

    APEX 4.0.2.00.07
    I've got a standard report with checkboxes. The SQL is along the lines of:
    SELECT APEX_ITEM.CHECKBOX(1,empno,'CHECKED') " ",
           ename,
           job
    FROM   empThen I have another report below this, which I want to drive based on the items checked in the first report. I know that the checkbox values will go into the APEX_APPLICATION.G_F01 collection. Normally these are accessed using pl/sql such as:
    FOR I in 1..APEX_APPLICATION.G_F01.COUNT LOOP
        DELETE FROM emp WHERE empno = to_number(APEX_APPLICATION.G_F01(i));
    END LOOP;But is there any way I can access the collection from the sql for my second report.
    i.e. I want my sql to be something like:
    SELECT empno, day_of_service
    FROM   emp_timesheet
    WHERE emp_no in <get access to the collection here>I was hoping that the check box collection would be available from the APEX_COLLECTIONS view, but it doesn't seem to be there.
    Thanks,
    John

    John,
    If the goal is to hold onto the checked values for some other processing then you could add them to a collection yourself.
    create a process on your page which looks something like this:
    This will create your collection if it does not exist or delete everything currently in it if it does exist and then insert your new selections.
    DECLARE
       l_col_name varchar2(30) := 'EMP_SELECTED';
    BEGIN
        apex_collection.create_or_truncate_collection(l_col_name);
        FOR I in 1..APEX_APPLICATION.G_F01.COUNT LOOP
            apex_collection.add_member(
                l_col_name,
                to_number(APEX_APPLICATION.G_F01(i))
        END LOOP;
    END;your second query could look something like this:
    SELECT empno, day_of_service
      FROM emp_timesheet
    WHERE empno in (select C001 empno
                       from apex_collections ac
                      where ac.collection_name = 'EMP_SELECTED')
    Edit
    some people choose to create a view ontop of certain collection queries which will be reapeated throughout the application so you could also just
    create view selected_emps as
    select C001 empno
      from apex_collections ac
    where ac.collection_name = 'EMP_SELECTED'   and your new query would look like:
    SELECT empno, day_of_service
      FROM emp_timesheet
    WHERE empno in (select empno
                       from selected_emps)Cheers,
    Tyson Jouglet
    Edited by: Tyson Jouglet on Apr 6, 2011 10:37 AM

  • How to hide edit link for  some rows in report? (according to value of col)

    Helo,
    How to hide edit link for some rows in report? (according to value of column)
    regards
    siyavuş

    Hi siyavuş
    You can do this by taking the edit link off the report and putting it into your report SQL.
    Use something like Select CASE WHEN (condition)  THEN
    'Put your edit link in here as an html Anchor like<a href="(target)">Edit</a>'
    ELSE
    tt.value
    END edit_link
    FROM test_table tthope it helps,
    Gus..
    You can reward this reply (and those of other helpers) by marking it as either Helpful or Correct.
    This allows forum users to quickly find the correct answer.
    ;-)

  • Editing the Query name for all reports in PRD.

    Dear All,
    I have created 25 reports using Query Designer.We have moved all the reports to BI Production. And Clients are using these reports using the Tool Bex Analyser.
    Every time they are navigating through open Query -> Info Areas -> Data targets and Query.
    Instead of going this way, is there any other way to Open a query easily.
    And they wants to modify the Report name and the Technical name for all the reports. Can we able to edit the Query name for all reports, or do i need to go for SAVE AS for all querys.
    Pls Suggest.
    Thanks,
    Ram

    Hi Ram,
    1. For the first question; if it user specific query then ask the users to save them at the FAVORITES so that there is no need to go to the dataprovider specific.
    Or they can create the reports as favorites user menu screen of that particular user.
    2. In order to change the technical name and description of the queries goto RSZC t-code> give the source and target infoprovider as same> select queries>click on the reports>click on transfer selections-->
    Then you get a screen to change the description and technical name.
    But this is pertained to Infoprovider level.
    You can see all the reports on the infoprovider (cube/ods).
    Hope you understood.
    Regards,
    Ravi Kanth

Maybe you are looking for

  • TS1474 Lost several albums *completely* from iTunes library AND iPod-HELP

    Sooo I had been using my laptop for iTunes purchases, management, etc., and then the thing crashed and has never been revived. I decided to begin using the desktop computer to access iTunes instead, and in the process of syncing a new purchase to my

  • ABUMN issue

    Hi experts, While doing entry through ABUMN: Line items reduce the cutt-off value by   1.00 Message no.AA632 Asset affected  :INTERN -00001-0000 Diagnosis : The book value of the asset is below the cut off value in the amount of   1.00 Procedure Chec

  • Looking for a sound effect....

    Does anyone know where I can get a drum roll sound effect in Garageband?

  • J1I5 - 'Error occured in number assignment for object J_1IRG1'

    Dear Friends, Please help me.I got the following error while clicking on Register entry button. "Error occured in number assignment for object J_1IRG1". How can I correct it. Regards, Rubin

  • SQLServer 2000 Backup on Multiple Disks

    I have one of the database on SQL Server 2000. The database is close to 200 GB. Any single local disks I have are not free enough to accommodate the entire backup. Is there a T-SQL script that I can run to specify the multiple backup file location wi