Populating report region using values in another region

Hi,
I have a scnerio. Help on this would be greately appreciated.
Following is the explaination based on department/employy example
On a single page, i want to show a region which will display a list of departments and every value of department will have a link to the list of employees working in that department.
On clicking a department, i want a report region on the same page to populate with the list of employees in the department.
So, when page will be loaded first time, no department will be selected so a single message i.e. "Select a department" will be displayed on the region dedicated for departments and will be populated when user will click on a department.
I am able to create two regions. On the left region, i am able to display a list of departments. I can also create links for the department values but i don't know how on first load i just display a message on right region (Select a department) and then on clicking the department, loading the report on the right region.
Thanks in advance
Salman

Thanks for your help.
I am able to do it but initially when page loades, it returns error message because it executes the query when page is loaded first time. My actually scenario contains a database link (which is assigned dynamically to the query). SO on first page load, no database link was found because hidden field contains NULL so it displays error message that "failed to parse SQL query:ORA-01729: database link name expected". How to solve this?
Mean while i also need help to generate an interactive report on the basis of a dynamic query. I have used a PL/SQL block returing a query to build a report for non interactive reports and it works fine but i want to do same for an interactive report. Can you please also help me how to do this?
Thanks
Salman
Edited by: Salman Qureshi on Aug 25, 2009 7:05 AM

Similar Messages

  • Refreshing sql report region based on values from another region - 4.0

    Greetings All,
    I have a page with two regions, say region 1 and region 2. I have a before header process that fetches values from db based on criteria entered from another page. Region 2 is a sql report region with bind variables from region 1. When this page is rendered region 1 renders properly however sql report region always returns no records. What am i missing here?
    I would like to have the region 2 render a report based on the values from region 1. Region 2 has a sql query that looks something like
    select
    colum 1,
    column 2,
    column 3
    from table t1
    where t1.c1 = :p10_item1
    and t1.c2 = :p10_item2Using apex 4.0
    thanks
    Seetharaman

    If these items hidden, try making them display only .
    Also what happens when you move the items from region 1 to region 2.
    From my experience items do not have much of a dependency on the region they are attached to other than cases when the region is not rendered(when its condition fails) and then the item values become null(bcoz they themselves are not rendered).

  • Using Link from one region as parameter to another region on the same page

    I have a page with two regions.
    Region 1 has a list of items that are dispalyed as links
    Clicking on a specific item I need to have a calendar report displayed using the value of the link for eg
    Region 1 Region 2
    abc Calendar based on the link selected in region1
    def
    xyz
    How is this possible

    I spent quite a few hours after this was posted trying to figure it out and I did.
    Select Mailbox > Export Mailbox.  This asks you a location to export the mailboxes to.  It just uploads the exported mailboxes into Dropbox. 
    Then change the User that I want to import the mailboxes into. Select Import and select the location of where you placed the folder in Dropbox. This then imports the mailbox into a folder called Import. You then drag and drop the copied mailboxes from the Import folder to the folder in the structure you have.  If you decide to delete the folders from the import folder list, do this.  You can also delete the copied folders from Dropbox if you wish.
    Took a while, but I got there and I'm happy now....

  • How to report texts - using infoset or another way?

    I have a requirement to report long text fields in EHS incidents - such as an incident "Description of Events" and "Immedaite Actions". I have tried creating an infoset with the incident table EHHSSD_INC_BINFA joined to /BOBF/D_TXCCON, with an additional field to extract part of the TEXT field, but am getting the error ""/BOBF/D_TXCCON" must be a flat structure. You cannot use internal tables, strings, references, or structures as components. -".
    How can I report on this TEXT field using infoset or another method?
    Thank you,
    Steve

    Hi Steve,
    Just wanted to check if you are able to resolve this issue? i am in the same boat and wanted to check if you have any solution.
    Thanks

  • Changed DSN in connection object but reports still use value from old DSN

    We're running BObj XIr2 SP4 and have both WEBI and DESKI reports. Most of our DESKI reports have two data providers, one from a universe (header/footer info) and one for free-hand SQL (report data). We are testing in preparation to upgrading all our databases to SQL2005 and have created a new DSN which points to a SQL2005 database to be used by our universe and free-hand SQL connections. We modified our existing connections to use the new DSN and to use the SQL2005 database engine. Our WEBI reports are working just fine and are returning data from the SQL2005 database, but on the DESKI reports the header/footer info from the universe is correct but the report data is coming from the "old" SQL2000 server. If we create a new DESKI report and export it, it retrieves data correctly from both data providers, but the existing DESKI reports, which use the same connections, have the same problem. The new DSN exists on the app server and points to the correct database.
    We were hoping that, like the WEBI reports, the changes would be transparent to the reports, but that doesn't seem to be working. Is there something we must do to get the existing DESKI reports to recognize and use the new connection parameters?

    Interesting - So, please let me know if I understand this correctly: If I create a new shared connection using DESKI or Designer on my workstation, it is saved to the server and creates an entry in my local lsi file but doesn't impact the lsi file on the server? If I later modify that connection via DESKI or Designer on my workstation, my local lsi file is changed but the server lsi file is not changed, meaning that any report using that shared connection running through InfoView will not use the new connection parameters but will use the "old" parameters from the server lsi file. If someone then modifies the connection via DESKI or Designer on the server those changes are reflected in the server's lsi file, but if I run a report using that connection via DESKI on my workstation, it will use the parameters from my local lsi file. That would mean that someone could actually delete the connection on the server and I could still run the report in DESKI?
    It also appears that the free-hand SQL reports can't use secured connections so I can't by-pass this issue by using secured connections...
    I'm assuming that secured connections don't work this way since our Universe connections were modified on the workstation and saved and work correctly.

  • Install region specific app from another region

    Hey guys
    The issue goes like this
    I have got a FITBIT shipped from US which needs fitbit app from US store
    Unfortunately some feature works only if i have a fitbit app on my iphone 4s
    I can't install a app from other region
    and i tried creating a US apple id which i was not successful either
    So my question goes like
    How to install region specific apps from other regions
    Is having a multiple apple id so important
    Thanks in advance for your valuable answers....

    Hello, I think I'd contact FitBit directly...
    http://www.fitbit.com/

  • Automatic population of search help value to another field in module pool

    Hello there,
    I am developing a module pool screen, in which i have a table control field with fields PERNR and ARBPL along with other fields.
    I have to give a search help for Pernr first field for which i have given a search help with the use of PM02 search help, given in the screen field level, in the same search help there is another field ARBPL, when the pernr is selected i have to get the corresponding Arbpl field value in the search help hit list and pass it to my field arbpl in my table control.
    I tried with POV event as well with FM f4if_field_value_request but the return structure always filling one value only PERNR.
    Is there any chance to get the both field values from the search help.
    Thank you in advance.
    Regards,
    Kumar.

    Try the following logic in your table control, in table control you have get the selected index using function DYNP_GET_STEPL.
    TYPE-POOLS: shlp.
    PARAMETERS:p_matnr TYPE marc-matnr,
               p_werks TYPE marc-werks,
               p_ekgrp type marc-ekgrp.
    TYPES:BEGIN OF ty_marc,
          matnr TYPE marc-matnr,
          werks TYPE marc-werks,
          ekgrp TYPE marc-ekgrp,
          END OF ty_marc.
    DATA:i_marc TYPE TABLE OF ty_marc,
         i_val TYPE TABLE OF ddshretval,
         wa_val TYPE ddshretval.
    DATA:wa_dynpfields TYPE dynpread,
        i_dynpfields LIKE STANDARD TABLE OF dynpread.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_matnr.
      SELECT matnr werks ekgrp FROM marc INTO TABLE i_marc UP TO 100 ROWS.
      CHECK i_marc[] IS NOT INITIAL.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield         = 'MATNR'
          value_org        = 'S'
          callback_program = sy-repid
          callback_form    = 'CALLBACK_ROUTINE'
          dynpnr           = sy-dynnr
        TABLES
          value_tab        = i_marc
          return_tab       = i_val
        EXCEPTIONS
          parameter_error  = 1
          no_values_found  = 2
          OTHERS           = 3.
      IF sy-subrc  <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      LOOP AT i_val INTO wa_val.
        IF sy-tabix = 1.
          wa_dynpfields-fieldname    = 'P_MATNR'.
          wa_dynpfields-fieldvalue   = wa_val-fieldval.
        ELSEIF sy-tabix = 2.
          wa_dynpfields-fieldname    = 'P_WERKS'.
          wa_dynpfields-fieldvalue   = wa_val-fieldval.
        ELSEIF sy-tabix = 3.
          wa_dynpfields-fieldname    = 'P_EKGRP'.
          wa_dynpfields-fieldvalue   = wa_val-fieldval.
        ENDIF.
        APPEND wa_dynpfields TO i_dynpfields.
      ENDLOOP.
      CALL FUNCTION 'DYNP_VALUES_UPDATE'
        EXPORTING
          dyname     = sy-repid
          dynumb     = sy-dynnr
        TABLES
          dynpfields = i_dynpfields.
    FORM callback_routine TABLES i_val TYPE ddshreslts
                CHANGING wa_shlp TYPE shlp_descr
                         wa_callcontrol LIKE ddshf4ctrl.
      DATA:
        wa_intf     LIKE LINE OF wa_shlp-interface.
      wa_intf-shlpfield = 'F0002'.
      wa_intf-valfield  = 'X'.
      wa_intf-f4field = 'X'.
      wa_intf-value = '~'.
      APPEND wa_intf TO wa_shlp-interface.
      wa_intf-shlpfield = 'F0003'.
      wa_intf-valfield  = 'X'.
      wa_intf-f4field = 'X'.
      wa_intf-value = '~'.
      APPEND wa_intf TO wa_shlp-interface.
    ENDFORM.                    " CALLBACK_F4

  • Report Navigation Using Hyperlinks to Another Report (not drill down)

    I would like 2 sample reports.  The first report would have a hyperlink to the second report.  I want to publish these in BusinessObjects Enterprise and see this functionality using the Dhtml viewer preferably using the "my infoview".
    Anyone have or know of samples for this?

    Hi,
    Go to report painter, in the report display you can see the output types.
    choose output area as Info control, Navagation control, dril down control, detail control.
    Choose HTML Templet - SAP Template
    choose Classic drilldown, choose basic list drilldown
    change all this parameters in the report then you will be getting drilldown fuctionality.
    Regards,
    Padma

  • Resizing an image in a layer using values from another layer

    After resizing an image on a layer, is it possible to easily copy the resized width & height (pixel) values to images on other layers?  If so, then how?  I'm guessing there's an easy way, but it eludes me.  Copying the values manually is okay with just a couple of layers, but rather tedious for changing many layers.

    You could record an action to resize the layers. You could use the action only
    on one layer at a time.
    1. Pick the layer you want to have the other layers resized to and find the pixel dimensions
       of the layer i.e w 422 x h 830.
    2. Pick the layer you want to resize and make it active.
    3. Start recording the action following the steps below:
       (the menu commands are in red)
    4. When you get to the image size dialog, set as below with your own
        pixel dimensions. Don't change anything in the document size from
        how it's set when the dialog opens.
    5. After you record the action set the image size dialog so it opens
       whenever you run the action so you can change the pixel dimensions.
      Click in the box to the right of the checkmark (highlighted above in red)
    More info on recording actions
    http://help.adobe.com/en_US/photoshop/cs/using/WSfd1234e1c4b69f30ea53e41001031ab64-7451a.h tml
    You can align or distribute layers with the move tool
    more info
    http://help.adobe.com/en_US/photoshop/cs/using/WSfd1234e1c4b69f30ea53e41001031ab64-78c2a.h tml
    http://help.adobe.com/en_US/photoshop/cs/using/WSfd1234e1c4b69f30ea53e41001031ab64-78c1a.h tml
    MTSTUNER

  • How to delete entries from a itab using values in another itab?

    Hi All,
    I am having two internal tables itab1, itab2 with one common field. Also two tables contains some records, what i want is to delete the entries from itab1 which are not in itab2.
    Example:
    itab1                
    A B C
    1 a  b 
    2 z a
    3 e t
    4 d r
    itab2
    A D E
    1 s d
    3 f g
    After the deletion itab1 should only contain records 1 & 3.
    I know we can do this using loop and read, but i want to know if there is someother better way to do this...
    Thanks in advance...
    Regards
    Karthik D

    Hi Karthik,
    this code should do it.
    data : temp type sy-tabix.
    clear temp.
    loop at itab1.                          "if internal table with header line
    temp = sy-tabix.
    read table itab2 with key A = itab1-A.  
    if sy-subrc = 4.
    delete itab index temp.
    endif.
    endloop.
    *else if without header line
    data : temp type sy-tabix.
    clear temp.
    loop at itab1 into wa_itab1.                          "if internal table is without header line
    temp = sy-tabix.
    read table itab2 with key A = itab1_wa-A into wa_itab2.  
    if sy-subrc = 4.
    delete itab index temp.
    endif.
    endloop.

  • How to pass input field value from one region to another ?

    What I am trying to do :
    I have one page with 1 region with one text field and an apply button and a report region.
    I want to be able to enter a value in the text field, click on apply and exploit this value in the source of the report region.
    Of course, I want the the value in the text field remains after the click on the apply button.
    What I cannot control with my try :
    1 the text field is always wiped off after the push on the apply button, no matter what kind of "do not clear the cache" setting I have found, and no matter the "take this value for this parameter" setting I have done every where I have found it.
    2 (but I think that this is related to 1) I cannot get working the conditional display of the report region on a NOT NULL condition of the above region text field.
    I have tried the code of the page 23 of the customertracking demo packaged apps, but the button properties shown are not the same than what I can find in my apps : I guess this is a difference in apex version normal feature.
    I think that what I am trying to achieve must be terribly simple but I cannot see it.

    Ok I have found out that it was now an interactive report that has to be done for this kind of situation, and that in my case, I needed to enable a detailled report.
    Now I have another question : one of my field is rich text : how to render it in my detailled report ?

  • How to create custom report plugin using child region report metadata

    Hi,
    I want to ask for help on how to create custom report plugin using child region report metadata. My idea is to create a child region, a classic report and set the condition to never.
    Then i will query the child report metadata from apex view and use it to create a custom report like using jquery jq-grid. Any idea how i can create a process that will use the child report
    metadata? I dont know how i can create a process just like how apex work, how apex render report, coz i want it to be control using the standard apex report attribute. This plugin will
    render according to the child report attribute.
    Is there anybody here had ever done this?

    Hi Nicolette,
    Thanks for the reply. I know where to find the metadata, just asking for idea on how the rendering process will be.
    Start from determining column heading, column order until finish rendering the report. The same way how apex
    render the classic report.
    Previously this imy my rendering process:
    FUNCTION GETCOLUMN(P_REGION IN APEX_PLUGIN.T_REGION,
                         P_PLUGIN IN APEX_PLUGIN.T_PLUGIN,
                         P_VALUE  IN VARCHAR2) RETURN SYS.DBMS_SQL.DESC_TAB2 IS
        VSQLHANDLER     APEX_PLUGIN_UTIL.T_SQL_HANDLER;
        VCOLCOUNT       NUMBER;
        VCOLNAMES       VARCHAR2(2000);
        VAJAXIDENTIFIER VARCHAR2(100);
        VPAGESIZE       TYPEATTR := P_REGION.ATTRIBUTE_04;
        VJSCODE         VARCHAR2(32767);
      BEGIN
        VSQLHANDLER := APEX_PLUGIN_UTIL.GET_SQL_HANDLER(P_SQL_STATEMENT  => 'select * from s_emp',
                                                        P_MIN_COLUMNS    => 1,
                                                        P_MAX_COLUMNS    => 999,
                                                        P_COMPONENT_NAME => P_REGION.ID);
        VCOLCOUNT := VSQLHANDLER.COLUMN_LIST.COUNT();
        FOR I IN 1 .. VCOLCOUNT LOOP
          VCOLNAMES := VCOLNAMES || '{name: "' ||
                       UPPER(VSQLHANDLER.COLUMN_LIST(I).COL_NAME) || '",';
        END LOOP;
        APEX_PLUGIN_UTIL.FREE_SQL_HANDLER(VSQLHANDLER);
        RETURN VSQLHANDLER.COLUMN_LIST;
      EXCEPTION
        WHEN OTHERS THEN
          APEX_PLUGIN_UTIL.FREE_SQL_HANDLER(VSQLHANDLER);
          RAISE;
      END GETCOLUMN;
    So this is how i get the header for my report plugin. The same method is use to get the value / data for each column. This process is work. So now
    i want to extend my plugin so that i will use all attributes from the child report to render my plugin. So the column header, column order, all will depend
    on the child report. And the column display condition is set, it will also check the condition before render the column. Sounds like i want to reinvent
    the normal apex rendering process but this is what i want to achieve.
    I need help to find the correct logic for my render process. Don't want too much for starting, just want to render the plugin correctly, same with child report,
    same columns alias, column ordering and column  conditional display.
    Thanks,
    akulala

  • How to pass hierarchy node value to another report using RRI

    hi,
    i want to pass hierarchy node value to another report but i can not able to do this using hierarchy variable so i want solution for this.
    Reply me as soon as possible its very argent.

    Did you wanted to jump from Node to Node ? I guess you cannot do that....did you try ?

  • OBIEE10G - Using column value in another report

    Let's say i have a very simple report (A) with just one column A1 that has a value X.
    Then i have another report (B) where i want to use that value X from report A, something like this:
    Year------Month----------Value
    2011------March-----------X
    Is this something possible to do?I've tried to use in column Value a filter base on results of another request where i get report A and column A1 (which has value X) but this doesn't work.
    Thanks

    Hey,
    It really is pretty much what i said but i'll try to explain with more detail my problem. I have a combined request where i have to do (besides other things) some calculations envolving knowing how many days and business days are in the month selected in the prompt. I can do this ok for the total of days in a month however i haven't been able to do this for the business days.
    My time dimension has an attribute that tells me if a day is a business day or not, so i can do a request where i count the number of business days for month and year prompted. That's my report A with column A which has value X (number of business days for a month).
    However, when i try to integrate this exactly same thing in my combined request the count of business days isn't working that's why i was asking if i can get into a column of report B the value of a column in report A. I would have this:
    Report B
    Year----------Month-------------Nr Business Days
    2011----------March--------------------21 (value of column A1 in report A).
    I hope i was my clear this time.

  • Session state of page item different from one region to another region

    hi,
    on one particular page I have two regions. A page item (LOV pop-up) is set in the first region. I leave this region with a button and jump back with a branch to the same page. The page item has now the selected value (as is shown by session state window). So far so good.
    The second region (SQL query type) uses this page item. However, for some reason the page item is NULL in that second region.
    Can anyone explain this behavior ?
    ron

    thanks Joel,
    I did already what you suggested. The title in region 2 is evaluated to the same value as in region 1.
    The SQL query (that actually runned with identical syntax before) is:
    select bla from blatable where bla = :P920_RU
    this generates:
    report error:
    ORA-12801: error signaled in parallel query server P000
    ORA-01741: illegal zero-length identifier
    So apperently the bind variable is evaluted to (or cached as) NULL.
    I noticed something strange in the session window. There are several page items in the application. All of them are listed in the 'Session State' region. The page item that makes problems is the only one that is also listed in the 'Page Items' region. It is even listed when I start the session window from another page. Weird.
    any other ideas ?
    Actually, how could you possibly clear session state between rendering two regions ?
    Ron

Maybe you are looking for

  • IPhone 4S stuck in recovery mode while trying to upgrade to iOS 7.0.4

    I ran into the issues with my iPhone 4S while trying to upgrade it it iOS 7.0.4 OTA and I have tried everything I can to recover it but no luck. I have tried different USB ports, different PCs altogether with av tuned off, and finally a MAC Pro this

  • GW 6.5 - A suggestion for a good book

    Hello people ! I'm CNE in Brazil and I would like to know a good book to implement GroupWise 6.5.1 im my server that it will work with Border Manager 6.5 SP3 (Small Business Suite Starter Pack). Thanks in advance.

  • Startup/boot error

    My computer must have shut down on its own and when it tried to boot back up it has an error message that says "cannot boot from any device" and then it lists the current boot order and device statuses. Each of the options say that either the device

  • FMLE will not install because of 1324 error, path has invalid character???

    FMLE will not install because of 1324 error, path has invalid character??? Seems to be a somewhat common problem (by google search) for Adobe and Microsoft programs, but nothing on FMLE... Everything I have tried (from google'd suggestions) has not w

  • How to query the opening balance for an specific account for an spec. date

    Hi all, for my user query I need to calculate the opening balance for an cash account for an specific date. Any ideas, how can I do this? Or may be you know a field in an SBO table that already contains information I need... Best Regards, Inna