How is when a button pressed a report will come to the same page !!!

Hi all,
I wonder that is it possible to bring a report to the page as a region but only when a button pressed in apex .When ı clicked the go button for example ı want to list a report in the same page.
but I dont know how .If is this possible can you explain me please.I need help!
Thanks!

Create your report in a region as normal.
Create a second region and in this region create an item eg p171_item.
In the same region create 2 buttons
Get Report and Reset (branching back to same page).
Create 2 page processes (PLSQL) on submit after computations
1. GET REPORT
DECLARE
v_item number;
Begin
select 1 into v_item from dual;
:P171_ITEM := v_item;
end;
2.RESET
DECLARE
v_item number;
Begin
select 2 into v_item from dual;
:P171_ITEM := v_item;
end;
Tie the processes to the buttons.
On your report region put a condition
PL_SQL RETURNING BOOLEAN
IF :P171_ITEM = 1 THEN
RETURN TRUE;
ELSE
RETURN FALSE;
END IF;
Now by pressing the buttons the report region is opened and closed.
Now hide P171_ITEM.
Gus

Similar Messages

  • How to cause a button to compute a text field on the same page?

    I have a button called "Generate Hash" and I want to have it compute a text field and display it on the same page with the results of a simple sql query:
    select 'P'||substr(Sys_guid(),1,10) from dual;
    Is this a difficult thing to do?

    Hello Patrick,
    Nope - not hard at all. Create a Process on your page that says:
    :Pxxx_HASH_VALUE := 'P'||substr(Sys_guid(),1,10);
    Then in the Condition portion of the Process, Set the section labeled "When Button Pressed (Process After Submit When this Button is Pressed)" equal to the button you wish to use for the compute.
    Don

  • When World it be able to log on to The same pages document and see each other corrections When you write/type Them.

    When will it be able to log on to The same pages document and see each other corrections as soon you write/type Them?

    Then use Google Docs if it does what you want.
    MsOffice and LibreOffice are also coming to the iPad, we shall see what they have to offer.
    With luck neither will use iCloud. Apple has yet to get anything right in networking.
    Peter

  • How do link form input and a datatable that are on the same page?

    I am real new to JSF, so I'm having the following issue...
    I created a demo app that will pull records from from a database and display them in a datatable. I hava a backingbean for this process that works great with hardcoded data.
    Now, I want to add a form to this page and use the form input to drive the results in the datatable. I have created my form and used a separate backingbean that is essentially a JavaBean for all the form input.
    My question is how do I integrate the submit button from this new form to feed the call that is used for the datatable?
    Here's is a snippet of the pertinent code from the JSP:
    <TABLE border="0">
                   <TBODY>
                        <TR>
                             <TD>
                             <P>Correlation ID:</P>
                             </TD>
                             <TD><h:inputText styleClass="inputText" id="correlationId"
                                  value="#{LogMessageBean.correlationId}"></h:inputText></TD>
                             <TD width="121"></TD>
                             <TD width="153">
                             <P>Workflow ID:</P>
                             </TD>
                             <TD width="158"><h:inputText styleClass="inputText" id="workItemId"
                                  value="#{LogMessageBean.workItemId}"></h:inputText></TD>
                        </TR>
                   </TBODY>
              </TABLE>
              <BR>
              <div align="center">
              <h:commandButton value="Search" actionListener="#{LogValueListHandler.search}" action="#{LogValueListHandler.result}"/>
              <h:commandButton value="Reset" onclick="reset()"/></div>
              <H5>Application Logging Results</H5>
              <t:dataTable value="#{LogValueListHandler.logList}" var="feed"
                   rowClasses="oddrow, evenrow" headerClass="table">
                   <t:column>
                        <f:facet name="header">
                             <h:outputText value="ClassName" />
                        </f:facet>
                        <h:outputText value="#{feed.className}" />
                   </t:column>
                   <t:column>
                        <f:facet name="header">
                             <h:outputText value="MethodName" />
                        </f:facet>
                        <h:outputText value="#{feed.methodName}" />
                   </t:column>
    ...Thanks!

    Locutus_1,
    I'm working on the same sort of app - A data table where the record selected is displayed in a form below the datatable and may be edited and saved.
    I've included a checkbox in the datatable so that the user can indicate which record is to be displayed and edited. The have everything working, except that I cannot get the checkbox click event passed to the backing bean correctly (critical to the entire operation). When I have this working, I'll post the code.
    This solution does not have a direct link between the datatable model and the data handled by the form. The backing bean code does this. If there was a solution where the two could be linked directly via JSF, I'd be very interested in it.
    Werner

  • How to encode multiple camera views and display them separately on the same page

    Does any one know if this is possible with just one
    encoder/streaming server or would you need multiple encoders to
    send separate views?

    Hello after a long time.
    I have 2 the same capture card. And I am trying to stream to 2 diffrent rtmp server. I start first one and no problem. But when I run second FME instance and select second stream card, first one turns to black and second one shows up. When I close second, first one again comes back.
    What shoul I do for streaming multiple streams form multiple stream cards?
    Best regards.

  • How do I export 2 picture next to each other on the same page for a before and after effect?( a 2 in one picture)

    Hi,
    This link pretty much sums sup what I want to do Francesco Tonelli PhotographyPortfolio - 35. I have read a lot of blogs explaining that the way to do it is in the print module page. I tried this but when I save the picture, I lose edits and my whites become off brown. Is there a way to just export the pictures as a 2 in 1 format?

    There is not an "Export" option from the Print module, so you need to understand that "Print to JPG" is in fact creating (or 'sending') a new image file somewhere in your computer. You should also have selected all the printing options in the print panels, just as you would if you were printing on your own attached printer.
    When you click on the "Print to File" button, Lightroom should offer you a dialog to save the new (dyptych) image in a folder of your choice with a name of your choice. Note: You must remember where you saved this new image file!
    This new image file will not appear in the Lightroom library, so to have it appear in your Lightroom library you must either use the "Import" module, or the "Synchronize Folder" option-  Locating the new file or folder where you saved it!  Only after this will you see it in Lightroom, where you will now have access to all Export functions to resize, etc.
    If you do not need to see it in Lightroom- there is no need to import it, just use your computer system file finder to locate the JPG file to send, print, email, etc.

  • Passing parameter from report to form on the sam page

    i would like to make a portal page with 2 portlets. on the left side a report displaying for example all names and empno4s from the emp table and on the rigth side a form portlet that displays the details of one employee and allows to update the details.
    claus

    I am obviously missing something. In editing the link, I have a user parameter of atab. This is the column that is linked in the report. What do I use as the default value. Does it make a difference if the table does or does not have an index on the atab? The PK is an ID.
    Please help
    Jerry

  • How to set item values when redirecting to the same page.

    I just created a redirect button that I want to redirect to the same page and set the 2 page items on the page to the same value they had before the redirect.
    But I can't write:
    Set These Items: P1_Permit_Number,P1_Fishing_Year
    With These Values: &P1_Permit_Number.,&P1_Fishing_Year.
    Because there are no values in the session state, since a submit has not been done.
    So how do I do this?
    I know how to get the values stored in the items, e.g., $v('P1_PERMIT_NUMBER')
    but where do I place that command? It's not allowed under "With These Values"
    And I don't really want to make this a submit button and create a process that says:
    P1_PERMIT_NUMBER := $v('P1_PERMIT_NUMBER') because that would complicate the page too much -- I already have other processes and branches on the pages whose conditions would have to be modified so that they don't run during this scenario.
    Thanks.

    Thanks Gary and Andy. I rewrote the function according to above instructions:
    function redirectToURL()
    var permitNumber = document.getElementById('P1_Permit_Number');
    var fishingYear = document.getElementById('P1_Fishing_Year');
    var url = 'f?p=&APP_ID.:1:&APP_SESSION.::::P1_Permit_Number,P1_Fishing_Year:' + permitNumber +',' + fishingYear;
    window.location.href = url;
    But when I entered a value for permit number and fishing year and redirected, the word "null" appeared in the Permit page item, instead of the permit number that I had entered.
    Remember that I am not submitting here. So if the syntax you showed me, i.e. getElementById('P1_Permit_Number'), searches for the item's session state, then it will be wrong, since there is no session state value for the items at this point. Perhaps that is the reason I got the null?
    If so, what can I do?

  • Selected value as parameter to report on the same page

    I have a select list at the top of the page and have Report1, report 2,... underneath.
    Value of the parameter for the queries is the selected value of the select list.
    How can I pass the selected value from the select list as parameter for the query in the report
    that is in the same page?

    Sudeshna,
    When the page is submitted, the item value (or parameter, as you call it) will be in session state. You can then refer to it using bind variable syntax, e.g.:
    select sal, ename from emp
    where ename = :P1_ENAME
    You'll have to put a button on your page that submits the page for this to happen.
    This How To has the steps to implement this using dynamic SQL.
    http://www.oracle.com/technology/products/database/htmldb/howtos/dynamic_report-1.6.htm
    You could do the same thing with a regular SQL report.
    Sergio

  • Problem with Ribbon when multiple List / Library WebPart are added to the same page

    Hi,
    I'm working on a SharePoint 2013 custom branding (custom master page and layout).
    I added one page layout with several Web Part Zones,
    <div id="cBottomFirst" class="cThreeColumn cThreeColumndMargin" >
    <div data-name="WebPartZone">
    <!--CS: Start Web Part Zone Snippet-->
    <!--SPM:<%@Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>-->
    <div xmlns:ie="ie">
    <!--MS:<WebPartPages:WebPartZone runat="server" Title="Bottom Left Area" ID="wpz_bottom_left" AllowCustomization="True" AllowPersonalization="False" FrameType="TitleBarOnly" Orientation="Vertical">-->
    <!--MS:<ZoneTemplate>-->
    <!--DC: Replace this comment with default web parts for new pages. -->
    <!--ME:</ZoneTemplate>-->
    <!--ME:</WebPartPages:WebPartZone>-->
    </div>
    <!--CE: End Web Part Zone Snippet-->
    </div>
    </div>
    I have a problem, when I add several List View Web Part to the same page, then when I select one list / library, the ribbon is shown, but it is shown with all option disabled.
    Any idea?
    José Quinto Zamora SharePoint and Search Specialist MCITP and MCPD in SharePoint 2010
    http://joSharePoint.com

    Hi,
    According to your description, I suggest you check as follows:
    1. Please check that whether the ribbon is OK when you use the OOTB feature to add the web part to a page;
    2. What if you do the test in IE, will the issue still occur?
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • How to tell whether one driver(say driver A) is in the same driver stack with another driver(say driver B)?

    I'm new to WDF, so the questions below might be trial. However, I cannot find the answers in MSDN or text book(e.g. Developing Drivers with the Microsoft Windows Driver Foundation)
    The questions below only apply to KMDF on Windows Phone.
    1. Can I say that one *.sys file is one driver?
    2. How to tell whether one driver(say driver A) is in the same driver stack with another driver(say driver B)?
    3. If several *.sys files are included in one *.inf file, can I say that those drivers are in the same driver stack?

    Drivers are not in a stack, the devices created from the driver are.  Consider having two identical pieces of hardware in a single computer, each will have a device object which will come from the same driver, but each device object will be in
    its own stack.  Things can get even more complex since a filter driver can create more than one device object in a single stack. 
    Just as a single driver can create devices that are in different stacks, your question on multiple drivers in an INF has the same answer, there is nothing that says they will be in the same stack.
    Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com

  • How can I display the same page when I'll press

    i have a jsp page. It contains user name & password.
    and a link like SIGNOUT COMPLETELY. when i press the back button it should show only this page.
    You have noticed one thing that when u sign out from YHAOO MAIL then a page is displayed
    USERNAME : [email protected]
    PASSWORD :XXXXXXXXXX
    SIGNOUT COMPLETELY
    when this page is dispalyed and u press the back button of the browser
    it displays the same page. How it happens?

    Kindly neglect the previous post.....
    Okay check something like this
    1).maintain either a HttpSessionListener or a session flag try to checkout whether the user is active or else close the PrintWriter.
    2).Prevent caching of the webpage by using customary meta tag or by response,setHeader("Cache-Control","no-cache");
    way...
    Guess tht shud work.....

  • How to get a form to appear on the same page when a button is clicked?

    Hi,
    I have a report on a page with a create button. When a user clicks the create button, a form should appear on another region in the same page....how do i go about doing this?
    I know how to do this if the form is on a different page, but i'd like the form to appear on the same page as the report and only when the button is clicked.
    Thanks.

    Hi,
    I did the following, but it didnt work....
    1) Created a hidden item on the page, and in the Default Value field, I set the value to N.
    2) Created a button in the report with the following values under "Optional URL Redirect":
    Target is a: Page in this application
    Page: 4
    Set these items: P1_SHOW_FORM
    With these values: Y
    3) Created a form of HTML text type with the following values under "Conditional Display":
    Condition Type: Request=Expression 1
    Expression 1: P1_SHOW_FORM='Y'
    What have I done wrong or have i missed something?
    Thanks.

  • How to develp a subreport in the same page of the main report and processed when is called

    SSRS 2012
    Hi guys,
    I am developing a report that includes a subreport.
    therefore The report is made up by 2 sections:
    1) Show a grid (several rows - may be 100 or more - and some columns). It represent high level info  (Each row represent a specific item)
    2) The user click on a Row/column (eg: Item1, to see details that must be shown as graph.
    Here the problem: Searching info about SSRS reporting for subreports, drilldown, nested report and so on, no ones accomplish the requirements for the following reasons:
    1) Subreports: NOT open in the same page. The user must <go back> to see detail for other items, such as Item 2....
    2) Nested and DrillDown: Process data as the Main report (they are hidden and displayed after user action). In my case this leads to performance problem, because: if the main report has 200 objects (it means 200 graphs processed and hidden at the same time
    for the main reports).
    3) DrillThrough and Subreport: The detail data are processed only when the user select the interested item in the main report. Here the problem: the report is shown externally.
    Please, it there any possibility to have a subreport (or anything else) to be executed in the same report as the main report and processed only when the user make action?
    Thanks for your help.

    Hi Fasttrack2,
    According to your description, there is a main report with more than 100 rows of summary information, when users click the item of the row, the report need to jump to detail information shows as graph. The problem you are facing is that you are not sure
    subreport, drilldown or drillthrough report should be used? You hope to set display detail information in the main report and keep high performance of report.
    In Reporting Services, each subreport instance is a separate query execution and a separate report processing task. Subreports are recommended when there are just a few subreport instances. We should not use subreports inside a group when there are many
    group instances, instead, consider using drillthrough reports. Drilldown reports process all data even when the data is first hidden. In order to improve the performance of the report, we can split drilldown reports into parameterized drillthrough reports,
    because Drillthrough reports do not run until a user clicks the drillthrough link in the main report.
    In this case, we can consider using drilldown or drillthrough report. In drilldown report, when we click a plus or minus button to expand or collapse a section of a report, the detail data will be displayed in place. By using drillthrough report, when we
    click the link in the main report, the detail data will be displayed, we can come back to the main report by click return button in the drillthrough report.
    Reference:
    Troubleshooting Reports: Report Performance
    Drillthrough, Drilldown, Subreports, and Nested Data Regions
    If you have any more questions, please feel free to ask.
    Best Regards,
    Wendy Fu
    If you have any feedback on our support, please click
    here.

  • I recently purchased songs from itunes via my pc and I dont know how to get them onto my iphone? When I click the sync button it says I will lose all the music currently on my iphone.. Help :(

    I recently purchased songs from itunes via my pc and I dont know how to get them onto my iphone? When I click the sync button it says I will lose all the music currently on my iphone.. Help

    If you're syncing with a different iTunes library than the one you previously synced with, then there is no way around it. You're gonna loose the old data. The only way round it would be to make sure that all the music files on your iPhone is also in your iTunes library. If you still have access to the computer with the old library, you could copy the files on to an external harddrive, and then import them into your new iTunes library.
    If it is in fact the same library, then the music currently on your iphone, is also in your itunes library. Just make sure that the artists/albums/playlists, or whatever you sync contains these tracks, that you allready have on your phone and don't want deleted. What i do is, i create a playlist specifically for my iPhone, and i set it up to only sync with this playlist. Whenever i hear a track from my iTunes library or buy a new track that i want on my phone, i just drag it to this playlist and next time i synchronize, it's there without deleting anything else.

Maybe you are looking for