Implementing LOV based reports in ADF

I'm a newbie to ADF and need to implement a ADF page where a change in LOV value will result in the following (without submit button) ...
first case: refresh existing report (single report) which matches the new value.
second case: show multiple reports based on LOV value. for certain LOV values, one report is shown, other LOV value, two reports should be shown. How to manage hide/show with different LOV values?
Third case: Implementing a hierarchy report based on LOV value as connect by value in the query. How to implement hierarchica queries in ADF?.
any ideas/pointers to examples are appreciated.
Regards,
Surya

Hi,
a LOV can be set to autosubmit its value change. Then in a ValueChangeListener that you configure on the LOV component pointing to a managed bean you can handle the selection change. You have access to the current selected value, which would e.g. allow you to query the business service for the reports to display. In addition calling AdfFacesContext.getCurrentInstance().addPartialTarget(ParentContainerThatDisplaysTheReports); you can partially refresh the are that contains the displayed reports.
Have a look here: http://download.oracle.com/docs/cd/E15523_01/web.1111/b31973/toc.htm
Look for ValueChange event handling and Partial Refresh
Frank

Similar Messages

  • What are option for cloud based Reporting?

    Could you verify that Reporting Services and Performance Point Service cannot be used with O365?
    Is it so that have basically two option to implement Microsoft based reporting portal on Cloud?  1) SQL Server on Azure VM 2) Power BI on O365.
    Kenny_I

    Hi Kenny_I,
    All Office 365 plans include the SharePoint Online service, but not all plans support all SharePoint features. And based on my research, Reporting Services and PerformancePoint Service are not supported in Office 365. For more details, we can refer to the
    following article:
    http://technet.microsoft.com/en-us/library/sharepoint-online-service-description.aspx
    If we want to create reports, we can use Power View feature in Power BI. But the PerformancePoint Services is a SharePoint Server service application, and it only supported in SharePoint Server 2010 Enterprise or SharePoint Server 2013 Enterprise. So we
    cannot use it on cloud.
    Hope this helps.
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click here.
    Katherine Xiong
    TechNet Community Support

  • Dynamic LOV based on report column

    HI,
    I've a standard report with Two columns. Column1 is standard Report Column and Column 2 is a LOV based on an SQL Query.
    Now I need to filter the LOV (add a where clause) based on the value in the column1.
    For example, consider Column1 as "country" and column2 as "state". so the in column2(LOV), user should see only the list of states belongs to the corresponding country(Column1)
    Please note that the report is based on an SQL query
    Any clue on how to do this.
    I'm using APEX4.1.
    Thanks in advance
    Prasanth

    I think you are looking for this https://forums.oracle.com/forums/search.jspa?threadID=&q=tabular+form+cascade&objID=f137&dateRange=all&userID=&numResults=15&rankBy=10001
    please search the forum before posting a question
    Thanks

  • ADF BC selectOneChoice- populating an LOV based on another LOV

    scenario:
    country:country_id, country_nme ViewObj: CityVO
    city: city_id, country_id, country_nme ViewObj:CountryVO
    cc: cc_id, country_id(FK), city_id(FK) ViewObj:CCVO
    i have got two combo boxes(selectOneChoice) displaying
    coutntry LOV which i created by selecting
    base data source:CCVO, list datasource:countryVO
    mapped attribute:country_id, display attrib:country_nme
    similarly,city LOV which i created by selecting
    base data source:CCVO, list datasource:cityVO
    mapped attribute:city_id, display attrib:city_nme
    objective:
    now i need to populate the city LOV based on the country selected.
    i added valueChangeListener on countryLOV so that it will get the country_id and execute view criteria on cityVO
    problem:
    problem is that i can not get country_id value! i explored methods on the selectOneChoice variable accessor and ValueChangeListerner component but no luck!
    as i am displaying the country_nme so i have to use DCIteratorBinding to actually reach to the country_id value.
    this seems to be a tedious way! plus if country selected again it gives nullPointerException on 3rd line:
    DCBindingContainer dcBc = (DCBindingContainer)getBindings();       
    DCIteratorBinding  iter = dcBc.findIteratorBinding("CountryVO1Iterator");    
    Row row = iter.getRowAtRangeIndex(vce.getNewValue().toString()); //[error-prone] first time returns the database row of the selected country record.gives exception on 2nd time
    Q1. is there any direct way of getting country_id, based on the display name?
    Q2. is there any way to refresh the iterator? iter.release(), iter.clear() did not help
    Regards,
    Rabs

    Hi
    This is not possible in Discoverer 4i. The concept of Cacading lists of values was only introduced in Discoverer 10g R2 (10.1.2).
    Now there's a good reason to upgrade :-)
    Best wishes
    Michael

  • What's the best way to implement LOVs in OBIEE?

    Hi All,
    Does anyone have any good ideas on how to go about implementing LOVs in OBIEE?
    At the moment we have created reports and dashboard prompts from the relevant SQL views which report off an Oracle EBS database. Our problem is that when we create a dashboard prompt from this view, that the generation of the LOV will take an extremely long time as it would need to run the whole query and do a distinct on the relevant column, before the LOVs are returned to the user.
    I'd like to find out what possible solutions exist to implement and manage LOVs in OBIEE, and which is the preferred and recommended approach?
    Thanks,
    Lance

    Hi Lance,
    I can think about two things which are indexing and using a dimensional model rather than OLTP.
    Are the views based on huge transaction tables? Are the LOVs based on transactional dates.
    Thanks,
    Manoj.

  • Extremely slow performance in comparison to RDC-based report

    Today our application uses the Crystal Reports RDC. In the last
    ten years we have made good experience with Crystal Reports.
    In the next few months we want to migrate our application to
    JAVA.
    Because the reports offer a great reuse-potential, we would like
    to implement them via CR4E.
    But during the first benchmark tests we made a very bad experience.
    Running (Printing) in CR4E the reports needed from 20 up to 480 percent
    more time in comparison to the RDC-based reports.
    When using POJOs need from 25 up to 570 percent more time.
    When printing the reports from within the CR2008 designer there is
    no performance difference.
    The reports have from 4 to 82 pages.
    We didn´t expect such a huge performance difference.
    Is CR4E in general slower than the RDC-based Crystal Reports?
    Or are there any parameters in CR4E in addition to the RDC-based
    solution for tuning the reports?
    Edited by: Rainer Graedtke on Nov 9, 2009 2:44 PM

    Hi Ted,
    thanks for the fast response.
    Is there another "datasource option" with better performance than POJO?
    In the upcoming JAVA-version of our application we would like to "feed"
    our reports from memory, not from the underlying database.
    One more statement concerning our performance problem:
    In our reports we make extensive use of subreports.
    Each report has the minimum of two subreports, one for the pageheader,
    one for the pagefooter.
    This is necessary because we have changing headers and footers
    depending on the contents of the details.
    The report with the largest performance loss contains 29 subreports!
    RDC-based it prints in 10 seconds, Java-based we need over 50 seconds.
    Is there any suggestion how to improve the performance of our reports in
    JAVA/CR4E other than reducing the number of subreports?
    Another question concerning the keycode-problem:
    We have designed the reports in the CR2008 Designer and we want to run
    them under CR4E. Is this a valid approach?
    Sincerely Rainer
    Edited by: Rainer Graedtke on Nov 10, 2009 10:51 AM

  • GENERATING ORACLE REPORT IN ADF

    Hi,
    i need to generate offer letter for student.
    an admin will need to generate offer letter of student bases on their intakeId, branchId, degId, and typeofferletter.
    currently im doing this in adf form. from here how to transfer the information in adf form into offer letter template and print it in pdf?

    Hi,
    actually there are two questions in one:
    1: How to call an Oracle Reports from ADF?
    Answer is to use the Oracle Reports URL to request a report. The data submitted by an ADF form could be passed as URL parameters or - if sensitive information is involved - saved in a temporary table for reports to look it up. Have a look at for an option to download the PDF by referenring the Reports URL http://docs.oracle.com/cd/E23943_01/apirefs.1111/e12419/tagdoc/af_fileDownloadActionListener.html
    2: How to generate PDF from ADF
    Jasper Reports, BI Publisher or POI are the options people use for reporting in ADF. Jasper Reports and BI Publisher allow the creation of PDF documents based on form content submitted from ADF
    Frank

  • Creating a dynamic lov based on a column

    Hi,
    I want to create a dynamic lov based on a column in a database-table.
    Eg. the query
    'select code, description from code_table'
    is the contents of the column 'lov_query' in the table 'parameters'.
    For every parameter there can be a different lov-query, but the result is always
    two columns (code and description, number and name, etc.), exactly what you need to use in a lov.
    I've written a (dbms_sql) function that takes the parameter-id and returns the lov_query.
    create or replace function "GET_PMR_LOV"
    (pmr_id in NUMBER)
    return VARCHAR2
    is
    cur INTEGER := DBMS_SQL.OPEN_CURSOR;
    fdbk INTEGER;
    l_pmr_id NUMBER(9) := pmr_id;
    l_stmnt VARCHAR2(2000);
    begin
    DBMS_SQL.PARSE
    (cur, 'select pmr.lov_query from parameters pmr where pmr.ID ' || ' = 'L_PMR_ID', DBMS_SQL.NATIVE);
    DBMS_SQL.BIND_VARIABLE (cur, 'L_PMR_ID', l_pmr_id);
    DBMS_SQL.DEFINE_COLUMN (cur, 1, l_stmnt, 2000);
    fdbk := DBMS_SQL.EXECUTE (cur);
    fdbk := DBMS_SQL.FETCH_ROWS (cur);
    IF fdbk > 0
    THEN
    DBMS_SQL.COLUMN_VALUE (cur, 1, l_stmnt);
    return (l_stmnt);
    ELSE     
    return null;
    END IF;
    DBMS_SQL.CLOSE_CURSOR (cur);
    END;
    But now I'm stuck on how to pass on this statement in HTMLDB
    as an dynamic lov, I don't seem to be able to execute this statement
    into the two display and return columns. Any ideas?

    Hello again,
    This lov is on an updatable report-column where the user has to make a choice from an non-named, popup and query-based lov. In the lov-query box I have just put:
    "return get_pmr_lov(:p41_param_id)" (without the quotes ;-)
    Here's my latest version plus an alternative, which both seem to work fine:
    create or replace function "GET_PMR_LOV"
    (pmr_id in NUMBER)
    return VARCHAR2
    is
    cur INTEGER := DBMS_SQL.OPEN_CURSOR;
    fdbk INTEGER;
    l_pmr_id NUMBER(9) := pmr_id;
    l_stmnt VARCHAR2(1000);
    begin
    DBMS_SQL.PARSE (cur, 'select pmr.lov_query from paramaters pmr where pmr.ID ' || '= :L_PMR_ID', DBMS_SQL.NATIVE);
    DBMS_SQL.BIND_VARIABLE (cur, 'L_PMR_ID', l_pmr_id);
    DBMS_SQL.DEFINE_COLUMN (cur, 1, l_stmnt, 1000);
    fdbk := DBMS_SQL.EXECUTE (cur);
    fdbk := DBMS_SQL.FETCH_ROWS (cur);
    IF fdbk > 0 THEN
    DBMS_SQL.COLUMN_VALUE (cur, 1, l_stmnt);
    return (l_stmnt);
    ELSE
    return null;
    END IF;
    DBMS_SQL.CLOSE_CURSOR (cur);
    END;
    create or replace function "GET_PMR_LOV2"
    (pmr_id in NUMBER)
    return VARCHAR2
    is
    l_pmr_id NUMBER(9) := pmr_id;
    l_stmnt VARCHAR2(1000);
    BEGIN
    EXECUTE IMMEDIATE 'select pmr.lov_query from parameters pmr where pmr.ID = :1'
    INTO l_stmnt USING l_pmr_id;
    return l_stmnt;
    END;
    The error-message remains the same, unable to bind :p41_param_id !

  • How to change the values in an LOV based on values selected in another LOV

    Hi,
    I have a requirement in ADF where there are two LOVs. Based on the values that I select in the 1st LOV, the values in the second LOV should change dynamically.
    Also, the 1st LOV accepts 3 values, for every value I select, a different query is executed to populate the 2nd LOV.
    I have a rough thought that I can use 3 different read only view objects containing these 3 queries. And based on the value I select in the 1st LOV I can execute the corresponding View object from the backing bean. But my doubt is how to link the results of that query that is executed to populate the 2nd LOV.
    Thanks in advance.
    Edited by: 886591 on Sep 21, 2011 4:48 AM

    Hi Brisk,
    Thanks for your reply.
    The link that you have provided explains how to disable and enable the other LOVs based on a parent LOV. But in my case there are two Select One Choice fields i.e. the dropdowns (sorry that I addressed it as LOV in my previous post which might be confusing). There are 3 static values in the parent dropdown where each of them are associated with a different query. for e.g if the three values in the drop down are A, B and C; if i select A, then query associated to A should be executed ; if i select B, then query associated to B should be executed and if I select C, query associated to C should be executed. Then the output attribute of that query should be populated in the child dropdown.
    Please let me know about the solutions to this.
    Thanks,
    Kavitha

  • OBIEE SSO enabling and role based reporting

    Hi,
    I had installed SOA10.1.3.1.0 and OBIEE10.1.3.4.0 already on my WINDOWS. I understand that I need to install 10.1.4 infrastructure to enable SSO in OBIEE, can you please tell me what is 10.1.4 infrastructure? is it equivelent to Oracle Identity Management Infrastructure and Oracle Identity Federation 10.1.4? I tried to download this from OTN since last night, but the page is always unaccessible. Where can I download 10.1.4 infrastructure except otn?
    I have another question regarding to the role based reporting with SSO. We want users to see different reports based on their roles once they login. What options do we have to implement this? From my understanding, we need to maintain a user role mapping table in our database, create groups in OBIEE and map the user role with the group in OBIEE? Is it true? Are there other options? Is there a existing product we can use to implement this?
    Thanks,
    Meng

    have a look on page 137 and further http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/b31770.pdf

  • Ajax based report and pagination

    Hi I have searched through the web for ajax based report in Apex. I have found the following link as very useful. http://apex.oracle.com/pls/otn/f?p=31517:98
    Here content of one page is pulled to the current page. It works fine. Pagination is also working exactly as the Apex reports. But I was thinking of something different, not pulling the content from other page. I have done it myself as follows.
    1. Take an HTML region called Parameter
    2. Take a select list in the parameter region with LOV query
    name : P2_DEPTNO
    LOV : Select dname d,deptno r
    from dept
    3.Take an HTML region
    Source : <div id=ajx></div>
    4. Create an Application Item called F103_DEPTNO
    5. Create an Application Process
    Name : getEmpTable
    Source:
    declare
    v_deptno number(3);
    begin
    OWA_UTIL.mime_header ('text/xml', FALSE);
    HTP.p ('Cache-Control: no-cache');
    HTP.p ('Pragma: no-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ('<table>');
    HTP.prn ('<tr>');
    htp.prn('<th>Employee Number</th>');
    htp.prn('<th>Employee Name</th>');
    htp.prn('<th>Salary</th>');
    htp.prn('<th>Department</th>');
    htp.prn('<th>Job</th>');
    htp.prn('<th>Hiredate</th>');
    HTP.prn ('</tr>');
    foR R in (select empno,ename,sal,deptno,job,hiredate from emp where deptno= :F103_DEPTNO )
    LOOP
    htp.prn('<tr>');
    htp.prn('<td>'||r.empno||'</td>');
    htp.prn('<td>'||r.ename||'</td>');
    htp.prn('<td>'||r.sal||'</td>');
    htp.prn('<td>'||r.deptno||'</td>');
    htp.prn('<td>'||r.job||'</td>');
    htp.prn('<td>'||r.hiredate||'</td>');
    htp.prn('</tr>');
    END LOOP;
    END IF;
    HTP.prn ('</table>');
    end;
    6. Write a javascript Function in HTML Header
    Source:
    <script language = "JavaScript" type="text/javascript">
    function GetEmployees()
    var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=getEmpTable',0);
    get.add('F103_DEPTNO',html_GetElement('P2_DEPTNO').value);
    gReturn = get.get();
    document.getElementById('ajx').innerHTML = gReturn;
    get = null;
    </script>
    7. Go to edit page item of P2_DEPTNO and in HTML Form Element Attributes write onchange="GetEmployees()"
    8. Run and test.
    Ajax based report works fine.
    In the link specified above pagination works fine.
    In my example very few records will appear but in case there are a lot of records appear then it is a must to manage it with pagination, letting only a few records to appear in each page. But in my example I have no idea how to manage pagination. Need help from the experts. Please notify..
    Regards
    Hasan Al Mamun
    Programmer
    Bangladesh Bank
    Dhaka, Bangladesh
    Edited by: hasan_al_mamun on Jan 19, 2011 10:58 AM
    Edited by: hasan_al_mamun on Jan 19, 2011 11:20 AM
    Edited by: hasan_al_mamun on Jan 19, 2011 11:24 AM

    Hi,
    You need to work with ROWNUM of result set. Create two hidden items, one for record_start_rownum and other for record_end_rownum. You need to add where clause to your SELECT query in Application process. Then your query will look like
    select *
      from ( select a.*, rownum r
               from ( select empno,ename,sal,deptno,job,hiredate from emp where deptno= :F103_DEPTNO  ) a
              where rownum < :P1_ record_start_rownum )
    where r > :P1_record_end_rownumYou may find following asktom link interesting..
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:76812348057
    Regards,
    Hari

  • One select list with multiple LOV's (LOV based on how page was called)

    APEX 4.0.2
    I've a DML form page from a report on which I need a single select list item to have a differing LOV based on how the form page was called.
    The calling page (report), contains an edit link column and a create button. Depending on which is selected, I wish the LOV for my select list item to change. The idea behind this is that if someone creates a new entry, I want to constrain the select list to a subset of rows of a table query populating the LOV. On the other hand, if an existing item is edited, I want the select list LOV containing all rows of a table query populating the LOV.
    What I've tried...
    - Duplicates of select list item each triggered to render based on an arbitrary value set when either "create" or "edit" are selected. This did not work because the item was part of DML and would not allow replication on the same page.
    - Logic in the LOV sql statement controlling which sql was to be run based on an arbitrary value set when either "create" or "edit" are selected. This did not work as logic is not allowed in LOV sql statements.
    Any thoughts? Many Thanks!
    Paul

    Hello Patrick!
    Thanks for responding - Love your captcha plugin!
    Anyway, these are the two dynamic LOV's. The first I have in play right now (when creating new records). I need to have the other for existing record modifications.
    LOV #1
    select stock_no d, stock_no r
    from   [email protected]
    where  status like '%Awaiting Transfer%'
    or     status like '%On Hold%'
    order by 1LOV #2
    select stock_no d, stock_no r
    from   [email protected]
    order by 1As I mentioned, I attempted to use plsql logic in the query to trigger one or the other based on a value set when the user either clicked an edit link or a create button but couldn't get the dynamic LOV to commit with that extra code in it.
    Thanks!
    Paul

  • Second LOV based on First LOV in Oracle APEX tabular Form

    Hi,
    I had created a tabular form in which I am having two LOV's. This form is based on a query.
    I had created a javascript function which internally calls AJAX and populates the second LOV based on the value selected in first LOV when onchange.
    But the issue is, when the user recalls this APEX page to view the details or edit the details, the second LOV shows all the values instead of showing only the values related to first LOV.
    In the second LOV query I am trying to write the below query.
    select function_name fn
    ,function_code_id fci
    from catering_function_codes
    where function_type_id = NVL(#FUNCTION_TYPE_ID#,function_type_id)
    order by to_number(function_code_id)
    in which #FUNCTION_TYPE_ID# is the value of first LOV. But I am getting the below error.
    report error:
    ORA-20001: Error fetching column value: ORA-06550: line 1, column 187:
    PL/SQL: ORA-00911: invalid character
    ORA-06550: line 1, column 7:
    PL/SQL: SQL Statement ignored
    How can you refer to the Second LOV the value of First LOV in a report based tabular form?
    Kindly let me know if you do not understand the issue.
    Please help me in this issue.
    Thank you
    Regards
    Dev

    Hi Roel,
    Thank you for the quick reply.
    I used the query as given by you. This time it is not giving any error but showing all the values in the second LOV irrespective of what ever value is present in the first LOV
    This is an apex tabular form which is generated by apex based on a query. The controls will be dynamically generated by APEX for each row. How can we hard code the control name to :P99_FUNCTION_TYPE_ID?
    Please help me in this issue. Thank you
    Regards
    Dev

  • Reporting on ADFS Audit Events

    I haven't had much luck researching potential solutions for how to report on ADFS activity. Most articles describe how to enable debugging for troubleshooting purposes, but haven't found anything to build a report off of that info.
    Basically I am looking for a way to aggregate the ADFS auditing events into a consumable format by a person.  There is the instance ID for a session that in consistent amongst the 299, 500, 501 events, but how to organize the claim values that are shown
    is the part I struggle with.
    Ideally I am just looking to build a report to show the Date/time, Relying Party Name, Username, source IP, Device and/or client application in a sortable format to view by application or by user, etc.  Its just a matter of parsing the claim values
    that span multiple events and putting it into a readable format. 
    Or Are there any other solutions out there that do something comparable?

    Hi,
    Thank you for your posting!
    Since Active Directory Federation Service is not an extension of Active Directory schema, I suggest you refer to the following forum to get professional support:
    Claims based access platform (CBA), code-named Geneva Forum
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=Geneva
    In addition, you may also need to consult experts from scripting forum due to your request.
    The Official Scripting Guys Forum
    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG
    Best Regards,
    Amy

  • How Do i Call An xml publissher and a jsper report from ADF pages

    Hi All
    How Do i Call An xml publissher and a jsper report from ADF pages

    I used the above links to create XML's and from there a formatted report of data from the database. I accomplish this by connecting to the database inside the XMLPublisher.java file. I also have my query hard-coded inside the DataTemplate.xml to extract the info from the database. This limits my ability on what the user can accomplish with the system.
    Is it possible to run my reports based on an iterator within Jdeveloper, as opposed to having to manually enter the query and connect to the database within the XMLPublisher.java file and the template.xml?
    Thanks.

Maybe you are looking for

  • Error While Posting documents using F-28

    Dear Friends,                         While posting Documents using 'F-28' after I passed posting key and account number I m getting the Error 'Entry not Possible'. Can anyone tell what may be the problem how to clear this error. Regards Balamurugan

  • Spinning ball when browsing Xvid videos..

    Hey guys, I'm afraid I have abit of a difficult one with not much to go on. I have my Mac Mini G4 hooked up to my standard def tv via the Composite/S-Video adapter and running iTheater on it to play back Xvid movies, the problem is whenever I'm brows

  • Convert pdf doc to word doc in Adobe Acrobat 6.0 Professional

    Scanned a doc to PDF now need to convert it into a word document I can edit. Please help! Awsum87

  • Acrobat 7.1.4 are actions or keyboard shortcuts possible?

    Acrobat 7.0  (7.1.4) Standard. Is it possible to change/assign keyboard shortcuts in Acrobat 7 (like one might in photoshop or illustrator)? Or... Is there any action/macro recording options? I want to save myself a little effort.  I typically add a

  • Thumbnail Gallery, remove spacing and rollover color

    Hello, I am creating a gallery and would like there to be no space at all between thumbnails (see Photoshop image attached), I cannot seem to get rid of the space, is this possible in Muse? Is there a way to make the thumbnail highlight with the yell