Passing report results parameters to different page

Hi y'all,
I was wondering how report results (results acquired by custom written sql query) can be passed to different pages?
Can anyone help or provide me with a link which can point me to some documentation on this subject.
Thanks,
Cleo

Cleo,
Do you want the records fetched by the SQl query available in other pages inorder to use that as a source for processes in those pages ?
One way is to define a collection in the SQL report page and fetch records into that collection on page load. Change the Report region to refer to the collection.
For example, you have a SQL report based on the query
SELECT 'a','b', 'c' from dualYou can have a Before header PLSQL process in that page that fetches these records into that collection
BEGIN
  APEX_COLLECTION.TRUNCATE_COLLECTION ('REPORT_RECORDS');
  APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY (
      p_collection_name = > 'REPORT_RECORDS',
      p_query => q'!SELECT 'a','b', 'c' from dual!'
END;Change the SQL report to
select * from apex_collections WHERE collection_name = 'REPORT_RECORDS'In any page where you want to use the reports records , they would be available in the collection.

Similar Messages

  • Customization Form at top populate Report Results at Bottom of Page??

    Is it possible to develop a customization form and its report on the same page?
    Here is the scenario. We want the customization form on the top of the Portal page, and then we want the results of the query form (the report results) to populate in the bottom of the Portal page. The customer desires this so they can still see what information they queried on to get the specified report results.
    Does anyone know a way to do this or has anyone successfully developed it?

    The customization form portlet would need to pass the parameter(s) to the other portlet. You may want to check out the parameter passing portlet samples in the PDK. The Smart Web Services Portlets work in a similar way too.
    If you want end users to show what their previously set parameters were, the customization portlet should read the previously passed parameters (along with the report portlet) and show them.
    You may also consider building a report using the wizards. Components can take parameters very easily through the Portal 9.0.2 (Oracle9iAS v2) page parameters feature.

  • Embedding Crystal Reports with parameters in web page

    Hi,
    I have created a sample report file and configured it with a parameter field. On embedding this report file in the web page, as expected I am prompted to enter value for the parameter. After entering value and clicking OK, CrystalReportViewerServlet delegates the call to the custom JDBC connector implementation which is the data provider. However, the web page doesnu2019t show the retrieved resultset but shows a page with some text like this:
    {"update":{"children":[{"children":[
    {"args":{"curPage":1,"numPages":"1"},"cons":"bobj.crv.newSelectPageControl"},{"args":{"searchText":""},"cons":"bobj.crv.newSearchTextControl"}
    ],"cons":"bobj.crv.newToolbar"},{"args":{"displayDrilldownTab":true,"initTabIdx":0},"children":[{"args":{"isMainReport":true,"label":"Main Report","viewStateId":"1"},"children":[{"args":{"content":"\r\n 
    On debugging I could see, that the parameter value from the prompt is correctly passed from the CrystalReportViewerServlet to the custom Connector (i.e., the sql query is updated with the parameter value) and the connector fetches the data also.
    I also tried embedding another .rpt file with few parameter fields configured (where user input values are just passed to the details section of the report for display). However on running this web page also I get the same error.
    Report files with no parameter fields configured are working fine when embedded in web page.
    Any thoughts would be appreciated.
    Regards,
    Ria

    I would take a look at running our simple [sample application |http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/307224d2-3d11-2c10-fe86-d87bab901bee&overridelayout=true]that views reports to see if you have the issue there.

  • Apex 4.2 dynamic action to refresh a report region on a different page

    Hi,
    I open up a pop up window from a report region. When the user is done in the pop-up window and closes it, can I trigger a refresh on the report region using dynamic actions without actually reloading the whole page? I know I can use dynamic action on a page to refresh the report region on the same page.
    Thanks,
    Sinan

    Sinan,
    So long as the region to be refreshed is still loaded, you can do this. I don't know how you are loading your pop-up or unloading it but, the principle should be the same as what I provide below.
    Assume that you have set the static ID for your report to MY_REPORT. (Be sure you have checked "Allow Partial Page Refresh" in the Report Attributes).
    $('#confirmBox').find('div#userConfirmationMessage').html( '<span class="userInputRequest">Would you to Refresh your Report?</span>' );
    $('#confirmBox').dialog(
        autoOpen: true,
        modal: true,
        title: 'Refresh Conformation',
        buttons:
            'No': function ()
                $(this).dialog('close');
            'Yes': function ()
                $(this).dialog('close');
                 $('#MY_REPORT').trigger('apexrefresh');
    -Joe

  • Passing array result set between Viewstack pages

    Hi, all.
    I want to use an array result in various Viewstack pages. So
    the main application run a RemoteObject call, gives the result to a
    function that makes the area. I then want to call the array result
    from other pages in the Viewstack. Is there a way to reference from
    the other pages? I cannot seem to do it. Thanks.
    I would add my code, but I cannot find the Attach Code thing
    they are talking about.

    Eric and Tracy,
    Thanks for these suggestions. I will try them. I think the
    real issue is knowing HOW to call back to the "parentApplication"
    (whatever that is. ;) I just learned something new, thanks).
    I do appreciate the more in-depth how-to's, having come from
    the procedural world of CF. Like many starting to use Flex, I sort
    of fell into this field, having no real background or formal
    programming experience and learning by example is really useful. I
    mainly did business development before getting into Flex
    programming.
    Like learning to talk in another country that also uses sign
    language and clicks in the vocabrulary, we have to learn a whole
    new vocabulary and even way of thinking about what and how we say
    things. Again, thanks for the patience and time.
    Gary McNeel
    Struggling Flex Coders Anonymous Member Since 2007

  • Passing arrays as parameters to new pages?

    I have probably either misunderstood something Murray said to
    me, or
    unconsciously extended it, but in developing my php driven
    photo album I have
    been working on the assumption that I could read a block of
    data into an array,
    and then pass that array (or a pointer to it?) as a parameter
    to a new
    invocation of the same page.
    However, now that I tried it, it looks as if I can only pass
    a single value in
    any one parameter. Is this correct, or is there some way of
    passing either an
    array or a pointer to an array as a parameter?
    Clancy

    "PeteC" <[email protected]> wrote:
    >Create your array as a session variable.
    Thanks. Yet another complexity to learn! For the moment I'll
    put up with
    rereading my data file every time I change pages. If (as it
    currently appears)
    this gives a good enough performance I wo'nt worry until I've
    got the program
    working. However there are still part of my job where session
    variables would be
    helpful, so when I've got the main part of my program working
    I'll try to get my
    head around them.
    With best wishes,
    Clancy

  • How to Pass Parameter/Value to the second page????

    Hi,
    I am trying to display same popup window when I click on ADD,UPDATE and VIEW buttons. I don’t have any problem in displaying the popup when I click on ADD and UPDATE button but with VIEW button I wanted to display the popup at read only mode. In order to do that I have created a bean with session scope and set a ‘SetActionListener‘on VIEW button and set ‘from’ property to true and ‘to’ property to "#{IndividualSummaryDetails.readOnlyAddress}". I could not pass the value of readOnlyAddress to the popup. How can I pass the value of readOnlyAddress to the popup?
    This value becomes true when I click on view button. If I pass that value to the popup then I can set the read only property of the fields on the popup with that value. So that the fields become read only.
    Here is my View button
    <af:commandButton text="#{CoreProperties['Global.commandButton.View']}"
    windowHeight="450" windowWidth="600"
    useWindow="true"
    action="dialog:FromIndividualSummaryDetailsToAddress"
    id="justView">
    <af:setActionListener from="#{true}"
    to="#{IndividualSummaryDetails.readOnlyAddress}"/>
    Here is my Bean
    public class IndividualSummaryDetails {
    private Boolean readOnlyAddress;
    public IndividualSummaryDetails() {
    readOnlyAddress = true;
    public Boolean isReadOnlyAddress() {
    return readOnlyAddress;
    public void setReadOnlyAddress(Boolean readOnlyAddress) {
    this.readOnlyAddress = readOnlyAddress;
    This value becomes true when I click on view button. If I pass that value to the popup then I can set the read only property of the fields on the popup with that value. So that the fields become read only.
    Message was edited by:
    V.Piraba

    We need to use portlet events for sending parameters across different pages.
    Following documents can give you insight on this :
    1. http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/ARTICLES/PRIMER.PORTLET.PARAMETERS.EVENTS.HTML
    2. http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/ARTICLES/DESIGNING.PAGES.USING.PDKJAVA.SAMPLE.EVENT.WEB.PROVIDER.HTML
    -AMJAD.

  • Passing parameters between form portlets on two different pages ...

    Here is a brief summary of our problem.
    We have one master form and a detail form which are published as portlets and placed in two different pages.
    Now i want to pass parameters from master form portlet resides on one page to detail form portlet resides on another page.
    Say for example, when i invoke master form (created based on demo DEPT table), enter values on fields then invoke another page
    on which the second form portlet (say form based on EMP demo table) resides. Now i want to pass deptno to second form and
    get displayed in deptno field of second form.
    I was looking at the following posting, but how to do this when forms are published as portlets and placed on two different pages ?
    http://forums.oracle.com/forums/message.jsp?id=997683
    Customer actually want to pass a parameter from master form to 5 detail form portlets resides on different pages.
    This is bit urgent as it is the only problem stopping the customer go live.
    Thanks in advance.

    Please refer to post Re: session state security
    It tells you how to populate a form portlet in a page by clicking on a link in a report portlet.
    You can use the wwsto_api_session objects to store data submitted by the master and let the detail form pick it up and proceed with the query.

  • Passing multiple parameters between two report portlets on the same page

    Hi,
    I want to pass multiple parameters between two report portlets on the same page.
    I have been succussful passing a single parameter between two portlets. The
    following are the steps :
    (1) Created first report based on the query
    SELECT htf.anchor('http://192.168.0.84:7778/servlet/page?&_pageid=97&_dad=portal30&_schema=portal30&_mode=3&dept_code='||DEPTNO,DEPTNO) Department, ename FROM EMP;
    (2) Created 2nd report
    select * from EMP where DEPTNO = :dept_code
    (3) Added pl/sql code before display page on the 2nd report
    portal30.wwv_name_value.replace_value(
    l_arg_names, l_arg_values,
    p_reference_path||'.dept_code',portal30.wwv_standard_util.string_to_table2(nvl(g
    et_value('dept_code'),10)));
    (4) Created a page and added these reports as portlets.
    Sofar it works fine for one parameter (deptno) . Now I want to add one more
    parameter say empno to my first report query and would like to pass both the
    parameters deptno and empno to the 2nd report. Please tell me how to pass multiple parameters ?
    Thanks
    Asim

    Hi,
    You will have to do the same thing
    The select will be like this
    SELECT htf.anchor('http://toolsweb.us.oracle.com:2000/servlet/page?_pageid=97&_dad=mb&_schema=mybugs&_mode=3&dept_code='||DEPTNO||'&empno='||empno,DEPTNO) Department,ename
    FROM EMP
    In the additional plsql code do the same for empno like this
    mybugs.wwv_name_value.replace_value(l_arg_names,l_arg_values, p_reference_path||'.dept_code',mybugs.wwv_standard_util.string_to_table2(nvl(get_value('dept_code'),10)));
    mybugs.wwv_name_value.replace_value(l_arg_names,l_arg_values, p_reference_path||'.empno',mybugs.wwv_standard_util.string_to_table2(get_value('empno')));
    Thanks,
    Sharmila

  • How to create a report with different page sizes

    Hi,
    I would like to create a report with different page sizes, it's possible to do it with diadem?
    When I change the layout parameters, changes afect to all sheets...
    Is there a way to change page size individually for each sheet?
    Thanks in advance.
    Marc

    Hi Marc,
    You can use the DocStart and DocEnd commands along with the PicPrint command to spool multiple print commands to the same output PDF file using the direct printer approach.  This should enable you to programmatically specify the page size differently for each sheet that you add to the print job.
    ' Print PDF Page by Page.VBS
    OPTION EXPLICIT
    Dim i, Path, OldPrintName
    Path = AutoActPath & "2D Stacked"
    Call DataDelAll
    Call DataFileLoad(Path & ".TDM")
    PDFFileName = Path & " Page by Page.pdf"
    IF FileExist(PDFFileName) THEN Call FileDelete(PDFFileName)
    OldPrintName = PrintName
    PrintName = "winspool,DIAdem PDF Export,LPT1:" ' Set to PDF printer
    PDFResolution = "72 DPI" ' "2400 DPI" , "default"
    PDFOptimization = TRUE
    PDFFontsEmbedded = FALSE
    PDFJPGCompressed = "high"
    PrintOrient = "landscape" ' orient paper
    Call PrintMaxScale("GRAPH") ' auto-max, see alternative margin setting variables below
    PrintLeftMarg = 0.181
    PrintTopMarg = 0.181
    PrintWidth = 10.67
    'PrintHeigth = 7 (read-only)
    Call WndShow("REPORT")
    Call DocStart ' Begin multi-page document/print job
    FOR i = 1 TO 4
    Call PicLoad(Path & ".TDR")
    Call GraphSheetNGet(1)
    Call GraphSheetRename(GraphSheetName, "Page " & i)
    Call PicUpdate
    Call PicPrint("WinPrint") ' Add a page to be printed
    NEXT ' i
    Call DocEnd ' End multi-page document/print job
    PrintName = OldPrintName
    Call ExtProgram(PDFFileName)
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Redirect user to a different Page based on number of  Liquid output result

    I want to redirect the user to a different page based on the number of results. I have some multi-account users and single account user in my secure zone. I want single account users to be sent to a different page, while multiple account user should be shown their accounts and they user can now click the account he/she wants to access. This is my code:
    {module_data resource="customers" fields="company, email1"  where="\{'company':\{'$contains':'{{this.globals.user.email}}'\}\}" skip="0" limit="500"  version="v3" collection="companyXtra" template=""}
    {module_webapps id="21927" filter="all" collection="companyAccess" template=""}
    {% for item in companyAccess.items -%}
    {% assign counter = {{forloop.length}} -%}
    {% if globals.user.email = item.email and counter = 1 -%}
    <script>
    window.location.replace("/single-account-user.html");
    </script>
    <a class="w-inline-block szone-navlinks multiplecoy" href="{{item.url}}">
        <div class="szone-holder">
          <div class="szone-narrate addenrolee">{{item.name}}</div>
        </div>
      </a>
    {% else %}
    <p><a href="{{item.url}}">{{item.name}}</a></p>
    {% endif %}
    {% endfor %}
    </div>
    Please what I'm doing wrongly. Can someone kindly assist. Thanks.

    Hi Liam I have since been reviewing my query using the BC API Discovery which has been a good guide for me. But the result is just displaying the core customer's company, though the other company has a default email/email1 as the core customer.
    This is my new query:
    {module_data resource="customers" version="v3" fields="company" skip="0" limit="10" where="\{'email1.value':\{'$contains':'{{globals.user.email}}'\}\}" order="id" collection="myData"}
    <pre>{{myData|json}}</pre>
    This is the json:
      "moduleName": "data",
      "moduleDescriptor": {
      "templatePath": null,
      "parameters": "resource=\"customers\",version=\"v3\",fields=\"company\",skip=\"0\",limit=\"10\",where=\ "\\{'email1.value':\\{'$contains':'[email protected]'\\}\\}\",order=\"id\",collection=\"myData\"",
      "apiEndpoint": "/api/v3/data",
      "objectType": "-1",
      "objectId": "-1",
      "adminUrl": ""
      "items": [
      "company": "The vivove company Limited"
      "totalItemsCount": 1,
      "skip": 0,
      "limit": 10,
      "params": {
      "resource": "customers",
      "version": "v3",
      "fields": "company",
      "skip": "0",
      "limit": "10",
      "where": "\{'email1.value':\{'$contains':'[email protected]'\}\}",
      "order": "id",
      "collection": "myData"
    I expected to see two companies. This is screenshot of my the companies in the CRM:
    Screenshot by Lightshot
    Screenshot by Lightshot
    Thanks. most appreciated.

  • Executing Report Painter Report in Loop With Different Selection Parameters

    Hello all,
    I have to execute a report painter report about 300 times, allways with a different set of selection parameters and allwasy send the result to a different person via mail.
    Has someone an idea how to to this work in an automatic loop.
    Thanks.

    HI,
    My suggestion is to discuss this with your technical team (ABAP). A Good idea would be to create a wrapper program (small program based on your report painted report code) that contains email functionality. You can then save your 300 variants and then schedule a background job for the same using transaction code SM36.
    Regards

  • Passing 2 date parameters in report

    I have to create a report in such a way that ...i have to pass 2 date parameters to get the report..
    For example..
    I get report parameter pagein reports and then I enter the parameter
    Parameter1: 27-MAY-10
    Parameter2: 30_JUN-10
    and then i click RUN REPORT
    can any1 help me out how to pass this parameter in report... i am stuck at this point
    NOTE: I want to use the parameter form feature in report builder....

    @ Sarah
    what you do is to call a refort from a form. i think it is not what Suhail want.
    @ Suhail
    if i understand, you want to pass the parameters from the parameterform your report to the report.
    i think you must create a parameterform and save it als html like this:
    To create a simple Parameter Form in HTML:
    1. In a text editor or HTML editor, create an HTML page that contains a form. The
    form should contain a list of values, a field, and a button. The code for this form
    can look something like the following:
    <form name="form1" method="post" action="*NAME_form.jsp*">
    <h2>Parameter Form</h2>
    <input id="connect" type="hidden" name="userid" value="*hr/hr@db-connect*">
    <input type="hidden" name="destype" value="*cache*">
    <input type="hidden" name="desformat" value="*html*">
    <br> Date_beginn: <input type="text" name="Date Beginn" value="">
    <br> Date_end: <input type="text" name="Date end" value="">
    <input type="submit" name="Submit" value="Run Report">
    </form>
    you can save this code als .html.
    Now you can open the code in the report builder and save it als .jsp.
    you can yet start with the copilation of the report.
    i hope this code will help you.

  • Passing between date paramters to a different page in the application

    Hi,
    I'm woking on a drill down report in Apex 4.0.
    Page1: (standard Report)
    select transactiondate, storenumber, count(amount) as Count from transactions (transactiondate data type is DATE).
    Created two items :P1_From_Date and :P1_To_Date
    When i run the Page1 with the from_date and to_date given, reports populate the data for the particular date,(eg: 15-NOV-2011).
    Until this point everything is fine.
    In Page 2, I need to show the detail of every transactions for a particular store.
    Created a hidden item in page 2 as :P2_storenumber
    created a link on the Count column in Page1, select :P2-storenumber corresponding to the #COUNT#
    Query on page 2 is : select transactiondate, storenumber,amount from transactions
    here i want to get the transaction for a day (between 15-NOV-2011 00:00 and 15-NOV-2011 23:59 ).
    How can I accomplish this requirement, by passing the date parameters from the Page1 for any date in Page2.
    Please help.
    thanks in advance.

    Hi user13561710,
    Assuming the items on page 1 are populated with date values, you can simply reference them in the query on page 2:
    select transactiondate, storenumber,amount from transactions where storenumber = :P2_storenumber and transaction_date between :P1_from_date and :P1_to_date
    If need be, you could always explicitly convert the date items to a date (and not rely upon the implicit conversion), for example:
    select transactiondate, storenumber,amount from transactions where storenumber = :P2_storenumber and transaction_date between to_date(:P1_from_date,'DD-MON-RRRR') and to_date(:P1_to_date,'DD-MON-RRRR')
    assuming the formart of the date value on page 1 is DD-MON-RRRR.
    I hope this helps.
    Joel

  • Redirecting to different pages based on value from table linked from report

    Hi,
    I wanted to navigate to different pages from a report link based on a value from the table on which the report is built. I was able to link to particular page without any problem.
    But, I wanted to link to different pages based on value in the table. Please let me know how can I do this?
    Thanks,

    kaminey wrote:
    Hi,
    I wanted to navigate to different pages from a report link based on a value from the table on which the report is built. I was able to link to particular page without any problem.
    But, I wanted to link to different pages based on value in the table. Please let me know how can I do this?APEX version?
    Is this a standard or interactive report?
    How does the value from the table determine the target page used in the link? Is it a page number? Or the result of some computation or process?
    When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.

Maybe you are looking for