Submit page before launching report link

When I define a link on a column in a report region declaratively (using Report Attributes) and point it to the same page (or another page), it creates the link using a URL redirect type of thing. The current page is not submitted before launching the new page.
This is causing me grief since changes on my page that the launched link needs are not stored in session state. How can I submit the current page before launching the link?
Thanks

Vikas,
Redirecting is no different from clicking on any hyperlink anywhere on the web, a link doesn’t submit form data, it just goes to another page and might set some data via URL. But form data is not submitted. If you want to have your form data sent to the server, you need to submit an HTML form. HTML DB lets you do that e.g. by calling doSubmit. But this doSubmit call must not be accompanied by a redirect. Just a plain submit, and a branch that lets you define where to go next (e.g. same page). So setting any values via URL will not work when submitting the page. Submitting calls wwv_flow.accept, not f?p. This is why you need to set a form item (page item) on the client via Java Script first before calling doSubmit so that you can referebce that form item later to identify the proper row in your report. To give you an example, just take a look at how I implemented to reports attributes page. Edit any report, go to reports attributes and look at the report that shows your columns. There’s an edit icon on each row. Hover over with your mouse and note that this calls Java Script: setColumnIDAndSubmit. Look at the HTML code, find that function and look how it sets a page item value to the current column ID.
Marc

Similar Messages

  • Calling A Page Process From Report Link

    Hello.
    I am using Apex 4.2.1 on Oracle 11gR3 and mod_plsql.
    I am trying to run a PLSQL after-submit page process when users click a SQL generated link in a classical type report.
    For example, my classical report uses the query:
    SELECT
    E.*,
    '<a id="rid" href="f?p=&APP_ID.:31:&SESSION.:ADDROW:::P31_ENAME,P31_MGR,P31_DEPTNO:'
    || E.ENAME
    || ','
    || TO_CHAR(E.MGR)
    || ','
    || TO_CHAR(E.DEPTNO)
    || '">'
    || 'Add New Row'
    || '</a>' AS ADD_ROW
    FROM
    EMP E
    My page also has an after submit PLSQL process defined as:
    declare
      v_empno     integer;
    begin
      select nvl(max(empno), 0) + 1
        into v_empno
        from emp;
      insert into emp (empno,
                       ename,
                       mgr,
                       deptno)
               values (v_empno,
                       substr(:P31_ENAME,1,1) || '-' || to_char(v_empno),
                       to_number(:P31_MGR),
                       to_number(:P31_DEPTNO));
    end;
    This process has the condition "Request = Expression 1", where "Expression 1" = ADDROW.
    I thought that if users click the "ADD_ROW" report link, then the report items ENAME, MGR, and DEPTNO would be passed to corresponding page items.  In addition, the above PLSQL process would be executed and add a new row to the EMP table.  The report then would then display the newly added row.
    But when I click the report link, I see that my page items are, in fact, assigned the associated report values.  But the page process is never executed.
    I have looked at both the Session State page and in Debug mode.  The processing simply never executes my page process.
    Would anyone know why my page process is not being run?  And, how can I get the page process to run when users click the report link?  Indeed, what is the point of even having a REQUEST tage embedded in the url if it is not recognized bt other processes on the page?
    In my apex.oracle.com workspace, I have created an example page in which all of this has been coded:
    Workspace: EEG
    Username: [email protected]
    Password: galaxy123 (all lowercase)
    AppID: 27083 (Elie_Goodies)
    Page 31 (Test Url Request Option)
    I would much appreciate if someone could help me with this as I am puzzled why this is not working.
    Thank you very much.
    Elie

    Hi Elie,
    I think it's fixed.  It was very close. It's just a matter of timing.
    For a REQUEST to be visible after submit you have to submit the page.  Something like apex.submit("ADD_ROW") will do that.
    Then, when the page renders the REQUEST is empty again.
    Same thing with the link, which is what you implemented, the REQUEST is only present during render of the page. Then it's gone when the page is submitted.
    All I had to do is move your Process to run Before Header so that it could "see" the value of the request.  I didn't touch (or look) and any of the code.
    Either On Load Before Header or On Load Before region processing points would have worked here.
    Thanks
    -Jorge
    Message was edited by: jrimblas

  • Not able to open Modal Page through a report attribute link

    Dear All,
         Not able to open Modal Page through a report attribute link, kindly help me...
      I am using skill builders modal page plugin ...
    Thanks and Regards,
    Madonna

    Here's what you have to do.
    You set up your column link like this:
    Link text: whatever you like
    Link attributes: onclick="return false;" class="open_modal"
    Target: Page in this application
    Page: number of the page you want to open in your modal window
    You set up your dynamic action like this:
    Event: Click
    Selection type: jQuery selector
    jQuery selector: .open_modal
    (notice the dot at the beginning!)
    Action: SkillBuilders Modal Page (2.0.0) [Plug-in]
    Event Scope: Dynamic
    And finally, in your True Action (SkillBuilders Modal Page (2.0.0)), URL Location should be set as Attribute of Triggering Element.
    And that's pretty much all it takes.
    Hope this helps.

  • Before when I clicked on a hyperlink in a Pages document Pages immediately opened the link.  Now Pages ask if I want to "Edit or Open" the link.  Is this an option that I can turn or off or is this just a change with the latest update?  Thi

    Before when I clicked on a hyperlink in a Pages document Pages immediately opened the link.  Now Pages ask if I want to "Edit or Open" the link.  Is this an option that I can turn or off or is this just a change with the latest update?  This only started in the last six months or so.
    iWorks "09"  Pages ver 5.2

    Use Pages '09 which should still be in your Applications/iWork folder.
    Peter

  • I have a pdf registration form on my website.  It has a link that take the user to a payment page within my website.  They pay then submit the form.  The link currently opens in the same browser tab as the form and the user thinks that is the submission,

    I have a pdf registration form on my website.  It has a link that take the user to a payment page within my website.  They pay then submit the form.  The link currently opens in the same browser tab as the form and the user thinks that is the submission, which it is not.  I want my link to open into a new browser tab.  How do I do that?

    You can use the following JS code:
    app.launchURL("http://www.example.com", true);

  • Adding Report link in SRM web page

    Hi
    We are having SRM 4.0 with R/3 4.7 as backend in classic scenario.
    We have created a custom report in EBP and want to put the report link in the menu of SRM web page on LHS.
    Can anyone please let me know the procedure and steps how to do it.
    Is it something we can do by adding the link in the templates or some coding is to be done in the web page?
    Thanks in advance
    Jagadish

    Jagadish-
    A couple things to check:
    1.  You made the change to the assigned composite role?
    2.  Did you do a user comparison after making the role change?
    3.  To be safe - logoff and logon again to pick-up the changes.
    4.  Logon via the gui - do you see the new menu option in the gui - if not go back are look at your role it must not have saved as expected.
    We have add various tcodes to the menus in the same manner w/out issue.  Good luck.
    Regards-
    b

  • How do I submit a Report link with a URL for one of the values

    Hi -- I have a Report link on a column, and I want to set an item to one of the report columns which contains URL values (like "http://...."). If I do that, the URL ends up in the hyperlink and is not escaped, so the colon confuses things. How do I get the report column to be escaped?
    Thanks

    You can convert the colon to whatever you like in your select statement but you cannot supply a colon as part of an item value field in an f?p URL.
    Scott

  • Setting an item value before print report in BI Publisher

    Hi,
    I am having an issue with setting a page item's value once a button (that prints a BI Publisher report) is pressed. The session state for the item is set, however because the page does not re-load no value appears in the item on the page.
    I am using a button as a page Item and using a Page Branch with the Branch Point set as On Submit: After Processing(After Computation, Validation, and Processing) with the Page set to 0 and the Request set to PRINT_REPORT=REPORT
    Is there any way to set the item value on the page before branching to the report?
    Your help is greatly appreciated.
    -Marsha

    Marsha,
    You can do that as follows:
    1- create a hidden text item (P20_date_hidden) with default value set to sysdate.
    2- for your button >> edit >> Buttom display attributes >> attributes >> type in : onFocus= "set_date();" (( note: am using onFocus because it takes places before onClick ))
    3- In your page >> edit >> HTML header >> type in :
    <script language="JavaScript" type="text/javascript">
    function set_date()
    v_date = $x('P20_DATE_HIDDEN').value;
    $x('P20_DATE_LETTER_SENT').value = v_date;
    </script>
    Hope this helps,
    Sam
    Please reward good answers by marking them correct or useful!

  • How to add/create additional page in Crystal Report Layout SAP B1

    Hi,
    I wanna ask about How to add/create additional page in Crystal Report Layout SAP B1 ?
    I want when user print Purchase Order then on last page also print some page like Penalty Clause etc.
    Pls help me to find the solution.
    Br,
    Thomas Marsetyo

    Hi,
    In your report footer, set it to create a new page before it is printed (In 'Section Expert', select the Report Footer -> 'Paging' tab -> Check 'New Page Before' checkbox). Throw your Terms & Conditions into the Report Footer section.
    If you already have a Report Footer that you want to keep, just split the footer into two sections (Right-click the Report Footer section -> 'Insert Section Below') and follow the same procedure for the newly created section.
         Check this Link
    http://stackoverflow.com/questions/9232239/adding-an-additional-page-to-end-of-a-crystal-report
    http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=18960
    Regards,
    Manish

  • Report Link + Authorization Scheme

    I have an authorization scheme that checks whether a certain person has privileges to edit a record on Page 2 by referring to the :P2_ID in the authorization scheme. Page 1 has a report with a report link, but the user can see both items they are able to edit and items they are not. I know I can make the link dynamically in the sql but wanted to see if there was an easy way to use an authorization scheme, but pass the #REPORT_COL# value in the report over to an authorization scheme to show or hide the icon for me so I can get the link out of the sql.

    Great example Scott! However, I'd would caution the other Sc0tt that calling functions in a SQL statement is fine for a small number of rows, but can CRUSH performance for medium to large result sets. Even if the function is fast, you're still context-switching between SQL and PL/SQL for every row. Make sure you test this with the volume of data you expect your users to encounter. If it's a problem, you might force the user to apply some filters before running the query.
    If you're running 11g you can at least minimize the hit of the function with "Function Result Cache". Even if you're not on 11g yet, you can use the following code in 10g and it will switch-on result cache when you compile it in 11g:
    create or replace function auth_user(p_key in number)
         return varchar2
         $IF not dbms_db_version.ver_le_10_2 $THEN
              result_cache
         $END
    as
    begin
        pkg.g_value := p_key;
        if apex_application.public_security_check (p_security_scheme => 'AUTH_USER_COLUMN') then
            return '1';
        else
            return '0';
        end if;
    end;
    / If it is a reasonable result set, Scott's solution is perfect.
    Thanks,
    Tyler

  • IR Report "Link" Attibute Custom URL Escape : (colon) Character

    <h2>I am running Apex 4.0.2 and have an interactive report page 242 with a result set.</h2>
    Scenario
    In the "Report Attributes" "Link" settings I want to link the report to a 'Custom URL' target to take the user from this IR Report Page 242 to page 243 to a 'Single Record Data Entry Form'
    I am setting the value of the custom url target as:
    f?p=&APP_ID.:243:&SESSION.::&DEBUG.:243:P243_NAME,P243_DESCRIPTION,P243_LOCATION:#SOURCE_NAME#,#DESCRIPTION#,#LOCATION#:The P243_LOCATION column, however, has a ':' colon and a '.' values in the database column itself with a value of *'jdbc:Host123.abcd'*
    When the user clicks on the link the FULL location column is truncated before the ':' - OBVIOUSLY due to ':' being the paremeter separator column in apex
    So, the #LOCATION# value on Page 242 IR Report containing a value of *'jdbc:Host123.abcd'* is trunced on the called page 243 as 'jdbc' only and truncated prior to the ':' value contained in the field.
    Question:
    HOW Can I build the above URL so that the ':' can be visible on the Page 243 form field? with the full value passed into the called page with a value of: *'jdbc:Host123.abcd'* ?
    I tried the SYS.htf_esc(#LOCATION#) around the calling URL above, but doesn't work as expected.
    Any advice is greatly appreciated.
    VSK

    Hi,
    You can not escape colons but you can pass commas in the url. Enclose the item value in \item_value\ to escape the "," in the item value . For colons, I would suggest creating a hidden field in the source report with SQL REPLACE function and replace all the colons with any other character like ||. Then you can use the same replace function on the target page to match with the new item value.
    Hope it helps. Thanks.
    Regards,
    Manish

  • Report Links in OBIEE 11g Dashboard not displayed correctly

    In the Dashboard pages the Report Links for Export are not displayed correctly .
    Instead of showing the multiple options for export/download it shows just text.

    It can be done by doing below steps.
    1) before doing this take a backup of instanconfig.xml file and do the below changes...
    You can configure various options that change the way that right-click interactions are handled in views for an analysis at runtime. The elements in the instanceconfig.xml file specify the default settings for a new or upgraded analysis. You can edit the properties of an analysis in Presentation Services to modify how the analysis handles right-click interactions in views.
    Before you begin this procedure, ensure that you are familiar with the information in Section 3.4, "Using a Text Editor to Update Configuration Settings."
    To manually configure for interactions in views:
    2) C:\Oracle\Middleware\instances\instance1\config\OracleBIPresentationServicesComponent\coreapplication_obips1\instanceconfig.xml
    Open the instanceconfig.xml file for editing,
    3)
    Locate the sections in which you must add the elements
    Include the elements and their ancestor elements as appropriate, as shown in the following example:
    <ServerInstance>
    <Analysis>
    <InteractionProperties>
    <InteractionPropertyAddRemoveValues>false</InteractionPropertyAddRemoveValues>
    <InteractionPropertyCalcItemOperations>false</InteractionPropertyCalcItemOperations>
    <InteractionPropertyDrill>false</InteractionPropertyDrill>
    <InteractionPropertyGroupOperations>false</InteractionPropertyGroupOperations>
    <InteractionPropertyInclExclColumns>false</InteractionPropertyInclExclColumns>
    <InteractionPropertyMoveColumns>false</InteractionPropertyMoveColumns>
    <InteractionPropertyRunningSum>false</InteractionPropertyRunningSum>
    <InteractionPropertyShowHideSubTotal>false</InteractionPropertyShowHideSubTotal>
    <InteractionPropertySortColumns>false</InteractionPropertySortColumns>
    </InteractionProperties>
    </Analysis>
    </ServerInstance>
    4) Save your changes and close the file.
    5)
    Restart Oracle Business Intelligence.
    Mark as correct if it is helpful :)
    Thanks.

  • Pass parameter to a report link

    HI,
    This is what I am trying to do:
    I want to create a report with 2 parameters - FromDate and ToDate.
    The report link will be something like this - http://xyx.com/report1FromDate=1jan2012&ToDate=31jan2012
    What I want is the users to change the date range in this URL and the report should automatically filter out the date selected. Is this possible? Has anyone does this before?
    So when the user runs this report and wants to run for some other date, they will just modify the URL and the report will run for Feb as an example shown below:
    http://xyx.com/report1FromDate=1feb2012&ToDate=29Feb2012
    Edited by: 920645 on Mar 21, 2012 11:21 AM

    It's not what you're doing wrong, but there is more right you can do.
    In the Report, on the Customization Form Display Options Tab, make sure "Make Public" is checked for your Bind Parameter (:CNTRYLOC).
    In the Page Properties, on the Parameters Tab, Add a Page parameter for CNTRYLOC. (I usually use the same name for the Page Parameter as the Report's Bind Parm. Warning: These parameters are CASE-SENSITIVE in places.)
    Still on the Page Properties Parameters Tab, Expand the list of Portlets at the bottom and map your Portlet Parameter to the Page parameter you just made.
    Hope that helps!

  • Rearrange output pages with Oracle Reports

    Hi
    I'm using Oracle Reports Builder 10g and I need help on this subject:
    I'm developing a report divided in sections that reference statistics of the partitions present in an IBM Machine. Each page in the first section appears also in the other sections of the reports, i.e. the first page of the first section (with data from partition A) has the same layout than the first page of the second section (with data from partition B in this case), which is page 14 on the final pdf report, and so on.
    For each 'kind' of page in the final report I use a repeating frame that fills a whole page in the page layout in reports builder (the parameter is the partition), so I get n output pages for each page in the rdf file (n is the number of partitions). The problem: in the resulting pdf output file, the first page of first section appears first, then the first page of second section, and so on. I need the pdf to be arranged in the correct order.
    Can someone help me on this subject?
    Thanks and regards,
    Alex

    Hi,
    We had the same problem at my organization. Our DBA had to install a patch:
    To implement the solution, please apply the patchset to upgrade to 10.1.2.2.0.
    To obtain a patchset from MetaLink:
    1) Click on Patches & Updates.
    2) Click on Simple Search
    3) Select your product, release and platform.
    4) Patch number is 4960210
    Description PLACEHOLDER BUG FOR AS/DS 10G R2 PATCH SET 2 10.1.2.2
    Product Oracle Development Tools
    Release 10.1.2.2
    The Patchset 4960210 is a patch for the Application Server AND Developer Suite
    5) Read any applicable notes before downloading, then click the Download button.
    Note: Please review the Readme file for instructions on how to install the patchset.
    you should launch the installer with the executable setup.exe provided in the patchset, it could shows up a message indicating nothing was upgraded, but the release should be modified to 10.1.2.2
    Hope that helps

  • Calling APEX page in cognos report

    Hello,
    I am very new to APEX. I have the below requirement.
    I have Oracle database with Cognos tool. My cognos report display the data and business
    wanted to have url on the cognos report. Business wanted to click that link and open
    another page and they need to modify the data and save the data back to database.
    Is this possible to call apex page in cognos report? I just wanted to check this before
    i take this path.. Any suggestion is highly appreciated.

    govindts wrote:
    Hello,
    I am very new to APEX.You appeared in the wrong forum. Oracle Application Express (APEX) is propably better one.

Maybe you are looking for

  • Error while uploading script form text file to SAP system

    hi   i down loaded a SAP Script from production server to local test file using RSTXSCRP it get downloaded successfully but when i am uploading it to development server it is giving ERROR as : Transport object FORM ZIV_MEDRUCK_PO is being processed  

  • IMAP and POP

    I want to access GMAIL from my application MAIL in MAC OS X and find that I don't understand IMAP or POP and why I should choose one over the other to setup my account. What are the advantages / disadvantages of one over the other? I use email only i

  • Ready to give up on Blackberry DM

    I have followed every instruction I could find to uninstall my 5.0 DM. Nothing works. My OS is a 64bit Vista Home Edition. The error is "1402 could no open key" I have tried everything I can think of , I'm out of ideas Please someone help !!!!

  • Moving to UK.  Will I need a voltage adaptor?

    I'm moving to England. I once lived in England and had a Gateway, and it of course required an adaptor to fit into the british wall sockets but not an actual voltage adaptor. Can my iBook handle the stnadard currency in England, or will/should I use

  • Payment IDOC

    Hello, I have successfully configured the FBZP for the Automatic payment run. As a second step need to create the payment Idoc that needs to be sent to the Citibank using a middle ware. Would some one guide me the config steps that needs to be carrie