Numeric Dimensions with Page Items

If you have a numeric dimension such as a period number when you select the Page Item 'ALL' and it aggregates the rows it also aggregates any numeric dimension. Can you stop this other than changing the numeric dimension to a character object. ( this effects the sort sequence)

You need to loop.
Check out "Referencing Arrays,Referencing Values Within an On Submit Process" sections in following documentation.
This should give you fair idea.
http://download.oracle.com/docs/cd/E10513_01/doc/apirefs.310/e12855/apex_app.htm
For example if you have report with following query
SELECT APEX_ITEM.TEXT(1,column_name) FROM myTable;
and if you have 10 rows in table, then 10 text items will display on your page.
Since we have given the ID (p_idx) as 1, we can refer these text items using G_F01 global array. (If its 2 then G_F02 etc. we can have upto 50 dynamic item on one page)
G_F01.COUNT gives us "number of items"
G_F01(i) gives us value of i ^th^ text item value.
Hope it helps
Regards,
Hari

Similar Messages

  • Discoverer Viewer Report with Page Items Slow Performance

    I created a report in Discoverer User that has page items and parameters and runs fine (under 3 minutes) in Discoverer User, but when I try and run it in Discoverer Viewer it takes a long time. It took over 70 minutes before manually terminating it. I made a copy of the report and removed the page items and tried to run it again in Discoverer Viewer and now the report runs in under 3 minutes. Any idea why a report with page items would run in Discoverer user fine, but not discoverer viewer?
    I am using Oracle Business Intelligence Plus 10g (10.1.2.55.26)

    As long as you can access the middle-tier server where Discoverer Viewer is running, you should be able to run and view Discoverer worksheets.
    While it is difficult to even start guessing what the problem might be, if the machine you installed Discoverer on has DHCP addressing, you will run into problems.
    Thanks
    Abhinav
    Oracle Business Intelligence Product Management
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN : http://www.oracle.com/technology/products/bi/
    Discoverer : http://www.oracle.com/technology/products/discoverer/
    BI Software : http://www.oracle.com/technology/software/products/ias/devuse.html
    Documentation: http://www.oracle.com/technology/documentation/appserver1012.html
    BI Samples : http://www.oracle.com/technology/products/bi/samples/
    Blog : http://oraclebi.blogspot.com/

  • Report with page items

    Hello all,
    I am using APEX 4.0.3 and I would like to create a report where I could have editable page items within it. My objective was having for instance a variable number with its characteristics displayed in the report and the in one column be able to choose one second from a select list to associate to the first one.
    In resume I need to have both a select list in the report, and I need to know how do I access the value of this item in each of this rows.
    Thank you,
    Mike

    You need to loop.
    Check out "Referencing Arrays,Referencing Values Within an On Submit Process" sections in following documentation.
    This should give you fair idea.
    http://download.oracle.com/docs/cd/E10513_01/doc/apirefs.310/e12855/apex_app.htm
    For example if you have report with following query
    SELECT APEX_ITEM.TEXT(1,column_name) FROM myTable;
    and if you have 10 rows in table, then 10 text items will display on your page.
    Since we have given the ID (p_idx) as 1, we can refer these text items using G_F01 global array. (If its 2 then G_F02 etc. we can have upto 50 dynamic item on one page)
    G_F01.COUNT gives us "number of items"
    G_F01(i) gives us value of i ^th^ text item value.
    Hope it helps
    Regards,
    Hari

  • Problem with using sql with page items

    Hi
    I have a simple query that when i enter this works
    SELECT SUGGESTION_ID, SUPERVISOR_ID, OVERVIEW
    FROM PROJECT_SUGGESTION
    WHERE SUPERVISOR_ID = 1;
    But when i enter this doesnt
    SELECT SUGGESTION_ID, SUPERVISOR_ID, OVERVIEW
    FROM PROJECT_SUGGESTION
    WHERE SUPERVISOR_ID = &P12_SUPERVISOR_ID;
    Even though the value of the page item supervisor_id for page 12 is 1.
    Anyone know why this is or another way i can refrence the page item?
    thanks
    Dan

    Instead of &P12_SUPERVISOR_ID
    try
    :P12_SUPERVISOR_ID
    And i think when you used the & you follow it with a period. ie. &P12_SUPERVISOR_ID.
    Just a guess.
    Mike

  • BUG?: Paginate Doesn't Work with Page Item with Source as Database Column

    CREATE TABLE T_PARENT
      ID NUMBER NOT NULL
    , STAFFID VARCHAR2(20)
    , CONSTRAINT PARENT_PK PRIMARY KEY
        ID
      ENABLE
    insert into T_parent values (1, '77258317');
    commit;
    create table T_child as
    select
      rownum id
    , '77258317' staffid
    , dbms_random.string('U', 5) aa
    , dbms_random.string('U', 15) ab
    , dbms_random.string('U', 3) ac
    from dual
    connect by level <= 100;
    /Form page for T_PARENT.
    Classic report:
    select id, aa, ab, ac
    from t_child
    where staffid = :Px_STAFFIDTry and paginate = no data found.
    However, if you first submit the page, then paginate, it works as expected.
    Reproduced:
    http://apex.oracle.com/pls/apex/f?p=54920:57:106342795192226::::P57_ID:1
    If I for e.g. use an item with static assignment, it works fine.
    Cheers,
    Trent
    Edited by: trent on Apr 19, 2013 11:59 AM
    Also, it works fine when you reference the PK column.

    Just like with the paginate, the problem may also happens when you change the sort column or direction by clicking on the header.
    If the item in the WHERE clause was being set fromt he URL this wouldn't be an issue because it would be saved on the Persisten Session state.
    Regarding session state, there are two kinds Temporary or in memory and Persistent. When the page is rendering the item values are only on the Temporary session state. This is why the report renders correctly on page load.
    The item value won't go to Persistent session state until the page is submitted. Item values also go to Persistent session when they are passed in the URL, or explicitly set with a computation, etc..
    The Session state Dialog can only show the Persisten session state which is saved in DB tables. It's unable to show you the values during page render. For that you need other mechanisms like debug messages.
    I think that when you set page item as SQL query and Only when current value session state is null the value must be saved to Persistent session state. If you can examine the value with the Session Dialog then that would confirm that.
    Hope this helps.
    Thanks
    -Jorge

  • Problem with Page-Item

    Description:
    I created a database link with our Production-Database to publish some data
    via Intranet.
    Some pages got links to open Popup-Windows for a detailed description of the
    data. Every page was built in the same way - a list with data and the ID got a link like this:
    #ID#
    In this case I created a link to open page 2 in a different window. On page 2 I use &P2_ID. as title and use :P2_ID for my sql-statement.
    Problem:
    On my popup-page 104 I see my title &104_ID. but my sql-statement returns nothing. The sql-statement itself works if I change :P104_ID to the value I can see in my title.
    So I have really no idea why I can see the value of P104_ID if I use &P104_ID. or if I change the hidden item P104_ID to a textbox and if I use it in my SQL-Statement as :P104_ID I'll get no result. All other pages work fine.
    Any idea?
    Dietmar

    Hi!<br>
    This one should be my list I link from to page 104. The first row is my ID I store in P104_ID:<br>
    <br>
    AV8B<br>
    C-160<br>
    C130H<br>
    E3A<br>
    <br>
    My link again:<br>
    <href="javascript:popupURL('f?p=&APP_ID.:104:&APP_SESSION.::::P104_ID:#AC_ID#')">#AC_ID#</>
    <br>Remark: I did'n forget the A in front of HREF!<br>
    My Page 104 looks like the other pages I did it in the same way:<br>
    Page-Title:  &P104_ID.<br>
    It shows allways my data "AV8B" or "C-160" or "C130H" etc.<br>
    My SQL-Statement looks as follows:<br>
    select UNIT_NAME<br>
    from AIR_UNIT@BLUE<br>
    where AC_ID = :P104_ID<br>
    I can not understand why I can see in my title "AV8B" and the result of any SQL-Statement is the same: no data found!<br>
    If I replace in SQL :P104_ID with AV8B I get my result list. The obove statement was just a simple test script but doesn't work even if I use:<br>
    select AIR_UNIT.UNIT_NAME<br>
    from AIR_UNIT@BLUE<br>
    where AIR_UNIT.AC_ID = :P104_ID<br>
    or using instead of the unit_name ac_id doesn't work either!<br>
    I've got really no idea!

  • Call print apex_util.get_print_document() with page item values

    Hi all
    I ran into an issue that very frustrated as it sounds so simple.
    I'm in Apex 3.1.
    My database has table TAB_CLASSES, TAB_STUDENT
    My application has page 1 with P1_SID is student_ID
    I had an simple report query name Class_query, show all classes that a student attends
    select * from TAB_CLASSES where SID = :P1_SID;
    I also select option "include application and session information"
    I had report template Class_template
    In my application, I have a process tried to generate report list classes for all students.
    l_report blob;
    for x in (select * from TAB_STUDENT)
    loop
    :P1_SID := x.SID;
    l_report := apex_util.get_print_document (
    p_application_id => :APP_ID,
    p_report_query_name => 'Class_query',
    p_report_layout_name => 'Class_template',
    p_report_layout_type => 'rtf',
    p_document_format => 'pdf'
    insert all the l_report into database with SID as a part of l_report name (*) 
    end loop;
    After this, I got multiple of l_report blob in database, number of report is exactly number of student in the TAB_STUDENT table. The problem is that every report looks the same, and it got the information of only first student
    I guessed it did not pass the item value (P1_SID) every time it call the get_print_document, but it still shows in the report name (*)
    Please help me. Thanks for any idea.
    Teiv
    Edited by: teiviag on Mar 10, 2010 7:16 AM

    This post had the same problem with me
    [ http://forums.oracle.com/forums/thread.jspa?threadID=663186&start=0&tstart=0|http://forums.oracle.com/forums/thread.jspa?threadID=663186&start=0&tstart=0]
    Thanks for the post of Marc, about how variables are binding and calling by process, I changed my app design to have a sp to print and store the pdf file. Then in my app, I just called the sp and passed the P1_SID. It worked.
    Thanks.
    Edited by: teiviag on Mar 10, 2010 10:49 AM
    Edited by: teiviag on Mar 10, 2010 10:50 AM
    Edited by: teiviag on Mar 10, 2010 10:50 AM

  • Can somebody please help-..with page ITEM

    Can somebody please help…..
    I have an Item named P11_FLAG on Page 11 of my application. I want to reference or access the value of this Item in all the pages of my application. I have tried several options but it seems not to work. I will really appreciate your help on this regard.
    Thank you

    referencing from other pages in code, use :P11_FLAG or external packages you can use the function v('P11_FLAG') or in substitution situations like referring to it in a report title &P11_FLAG. (note the last full stop).
    Phil

  • Filter rows axis dimension with page axis dimensions

    Hi Experts
    I’m making a new report with EPM10 Excel Addin
    My requeriment is:
    I have one filter called Family Dimension, then I have rows with Product Dimension.
    I would to see if I choose Family 1, my rows would be BASELEVEL(products) of family 1. If I choose family 2, BASELEVEL(products) of family2...
    How can I achieve this??
      Thanks!!

    Hi experts! I think that is a good option but I have an error using EPMDimensionOverride.
    My formula is:
    EPMDimensionOverride("000";"CUSTOMERGRP";"ID='GC_25' AND CALC='N'")
    I would like to filter by ID AND CALC=N but I have an error using previous formula?
    In my report I would like to see:
    First Group GC_25 and second all members base level of this group.
    Any help??
    Thanks!

  • CASE vs DECODE - CASE with SUM and All in Page Item is non aggregable

    Hi,
    I'm using Discoverer 9.0.4.
    After switching calculations from DECODE to CASE
    I found out that case gives a non aggregable result when using a Page Item and selecting <All>.
    The calculations
    (SUM x) / (SUM y)
    or
    (x SUM) / (y SUM)
    where x and y are variables, work fine with page item <All>.
    But for example:
    CASE WHEN 1=2 THEN 1 ELSE (SUM x) / (SUM y) END
    gives non-aggregable.
    The same code works with DECODE:
    DECODE(1,2,1,(SUM x) / (SUM y))
    and is aggregable.
    Does anyone know a reason or a way to make it work with CASE?
    Thanks,
    Joao Noronha
    P.S.: I wanted <= comparisons and CASE is the best in simplicity,
    but now I know I can do it with DECODE, still looking ok using LEAST instead of ABS of the difference.

    Hi there
    I think therefore you have answered your own question and determined that using CASE in aggregations is not a good idea. I only threw out the two CASE options as ideas not as solutions, just in case (pardon the pun) one of these worked in your situation.
    Your comment I must say that if it worked it would give a wrong result (the sum of the divisions is not the same as the division of the sums) may give the wrong answer in your case but may be correct in others. It just depends how the items in the folder have been set up. I agree though that SUM(x) / SUM(y) will more often than not give the right answer.
    This discussion about DECODE vs CASE has been going on ever since Oracle introduced CASE as a means of placating a younger breed of user who needed an IF..THEN...ELSE construct and could not get their minds around the intricacies of DECODE. The DECODE is a much more reliable function than CASE because it has been around for a long time allowing Oracle plenty of opportunity to iron the bugs out of it. If I get a chance I will always use a DECODE whenever aggregations are required. However, when no aggregations are in use then I'll use CASE, simply because it's easier for users to work with.
    Unfortunately, users need to work with aggregations and so I don't see any alternative to Plus users having to learn DECODE. Whenever I teach Plus I always teach the users both CASE and DECODE but point out that DECODE has fewer issues that CASE. Oh, and talking of issues, try getting the THEN and ELSE components to return a different datatype. CASE has a fit and will not compile.
    Best wishes and glad you got your issue solved - you did right?
    Regards
    Michael

  • Page items do not go into Excel when exporting

    We are using 10.1.2 viewer and plus (and I have the desktop version available). I have tried exporting a worksheet with page items using all 3 of the above and the page items will not go into excel. Is there any trick to get this to work? I thought that it used to work in older versions?
    thanks
    Angie

    Did you try the Export to Excel as Pivot Table option? That would create a base sheet with all the page items flattened out, a static sheet that looks like the worksheet at the time of the export, and an Excel Pivot Table where you can page through the page items.
    thanks
    Abhinav
    Oracle Business Intelligence Product Management
    BI - http://www.oracle.com/bi
    BI - http://www.oracle.com/technology/bi
    Blog - http://blogs.oracle.com/
    BI Blog - http://oraclebi.blogspot.com/

  • Viewer slow while retrieving data while changing value from a page item

    Hi, I am using 9.0.2 to create reports. My end-users are using Viewer to run these reports. Recently, we are experiencing performance problems with Viewer. We have reports with Page Item. Let say a report takes 1 min to run. After running the report if a different value is selected for a page item, it is takes another 1 min to get new data. Whereas, Desktop is not taking any additional time (noticable) for a different value for the page item. Recently, we are experiencing this problem. I thought that it was cache problem in Application server, so we restarted all the pieces in aps server. However, the problem still exists. We are using a materialized for this particular report.
    Any tips would be highly appreciated. Thanks.

    The performance differences can be attributed to the differences in product. Desktop is a client server product. A query executes and ALL data is returned to the desktop. You can manipulate that data in any way and the database is not required. Web (Plus/Viewer) only return the data needed to satisfy the query currently being viewed. If you change a page item, a database call is made to retreive additional/different data.
    In other words this is just how things work. You can alter settings in your prefs.txt file to improve performance in Viewer/Plus. Changing number of rows returned, memory settings, row fetch limits, rows per fetch all can improve/reduce performance.
    As best I know there is not a "magic" setting for these values. It is based on the server/volume of data/workbook content/ workbook layout. etc. Crosstab workbooks are much slower to return data than page -detail.

  • Page item name property in UI

    Does anyone know if the name property of a page item appear anywhere in the user interface in Illustratpr CS6?
    I thought it would be the name you assign to it in the Layers palette, but it does not appear to be.

    You have an opened document with page items?
    try this:
    app.activeDocument.layers[0].pageItems[0].name = "my Item #1";
    app.activeDocument.layers[0].pageItems[0].selected = true;
    app.redraw();
    alert(app.activeDocument.layers[0].pageItems[0].name);

  • Page Items displayed in table borders

    Hello,
    This might be a 'newbie' question, but I need to design a form layout in a 'Grid', so I need to know how to enable borders around each page item (cell). I wish there was a way to create a layout in Dreamweaver and then have Html DB insert each page item into the cell I choose.
    Any help?
    Regards,
    Jeff

    Any ideas on this? I have tried the custom template and changed the border="1", but that does not look very good. I want it to look more like excel, where there are titles (column headings) and within each column, each cell has a border completely around it with page items in them. Is this possible?
    Thanks!
    Jeff

  • Page Items displayed in Oracle AS Portal

    I am building a page in the Oracle Application Server Portal
    that has three regions. Each region contains a Discoverer Worksheet. The layout
    is such that the upper region has a worksheet graph (a) spanning 100% of the
    region. Beneath this region are two regions containing one worksheet table in each
    region. The worksheets have a master (b)/detail (c) relationship. The "master" (b)
    worksheet is the table for the graph (a) in the upper region. It is the same
    Discoverer worksheet being displayed as a graph in one region (a) and as a
    table (b) in another region.
    The issue that I have encountered lies in the Page Items
    being part of the title of the regions. For the tables, the Page Item and values
    appear just below the title of the worksheet. This is not the case for the
    graph. The page items do not appear by default. To get the Page Items to appear
    as part of the graph, I used the &PageItems option in Discover Plus for the
    worksheet, but this causes the values to be repeated for the regions containing
    tables (b) and (c).
    Is there any way to turn off the Page Item as being part of
    the titles in the regions containing tables? Or any way to get all three
    regions to show the Page Items without them being repeated in the regions
    containing tables?
    Edited by: user10753869 on Dec 31, 2008 7:50 AM

    Any ideas on this? I have tried the custom template and changed the border="1", but that does not look very good. I want it to look more like excel, where there are titles (column headings) and within each column, each cell has a border completely around it with page items in them. Is this possible?
    Thanks!
    Jeff

Maybe you are looking for

  • Copy from Time machine to an new iMac doesn't Work ?

    I bought a new iMac and want to copy from time machine that is on an external disk. Copying stops after 10 minutes. What to do?

  • Sharing printers and files in a windows network with Mac OS 9.1

    We've just installed an old iMac with Mac OS 9.1 in the office.The network is made up of 2 windows PCs and this new iMac, connected through a D-link wireless router. We have a USB printer connected to one of the PC's and it's shared by the rest. Anyw

  • Is there a Metro version of Firefox that works for Non-Touch computers with Windows 8.1?

    I have a 64-bit Windows 8.1 computer of which doesn't support Touch features. Is there a Metro version of Firefox that works on 64-bit Windows 8.1 computers that don't support touch? If so, how can I get it?

  • Highlighting areas in a form

    I have a client who leases furnished office units. He wants a floor plan which will be used by his  leasing agents which shows the following info for each office: high price, low price and current price. These figures will change on a regular basis.

  • Errore in carica delle oc4j essempi

    ciao la dificolta nel managgio delle applicazione del mapviewer mi fa impazzire ¡¡¡¡ Stave nel sviluppo delle jsps di essempio (come il jview.jsp) , ma il servizio subitamente erano shutdown. il blackout non puo esere soluzionatto eppure ho trovato p