Calling a page process by clicking a link

I have an Apex report with multiple rows and a link column in. I'd like to be able to call a page process to do some work on the row with the clicked link... I also need to pass a couple of parameters somehow to the page process as it calls a procedure which requires the parameters to function correctly.
So -
When I click a link on a row.. perhaps a couple of hidden page items get set.
The page is then submitted and my process calls the procedure, using the values of the set items above as its parameters.
Control is submitted back to the original page.
So basically I'm trying to give a user the ability to carry out repetitive actions on each row.
My thought was to use a URL in the link and maybe Javascript.. or am I barking up the wrong tree and is there a better way rather than a link?
Thoughts?
Cheers
Ken

You have the right idea. JavaScript is the way to go. Assuming that the values that are being passed are part of that row of data, you can construct the call to a JavaScript process.
Create two hidden items on your page, make sure they are not protected.
say P1_CITY and P1_STATE
Say your query included city and state, define a column in the report as a link of target URL with the following url
javascript:myFunction('#CITY#', '#STATE#');
Then define a javascript function in the page HTML Header section
function myFunction(pCity, pState) {
$x_value('P1_CITY', pCity);
$x_value('P1_STATE', pState);
doSubmit('RUNPROC');
Then have a process on the page does what ever you want and that is conditional on the REQUEST = 'RUNPROC'

Similar Messages

  • Passing values and calling PL/SQL process via a column link

    Hello all
    I have a report and a link on one of the columns which takes you to another page and passes data from the report to that page. That all works fine. In addition to picking up the details from the report I'd also like the link to call a page process before it goes to the next page using some of the values picked up from the report. This I can get to work by changing the link to a URL and putting in some javascript ie javascript:doSubmit('TEST_PROCESS'); By doing this I "lose" the ability to pass the info from the report via the link.
    Can anyone give me a clue as to how I can achieve both please? I'm assuming I'll need to create my own javascript function but I don't know how to pick up information from a row in a report to pass on.
    Regards
    Helen

    Lets say your link would pass 2 items P1_ITEM and P1_ITEM2 to your process. Just write a quick javascript function to do this and put it in the header:
    <script type="text/javascript">
    function doSomething(pValue1,pValue2){
      $s('P1_ITEM',pValue1);
      $s('P1_ITEM2',pValue2);
      doSubmit('TEST_PROCESS');
    </script>This will set 2 hidden items equal to whatever you pass in. Then you can use these in your after-submit process. To call this from your url, just make the url:
    javascript:doSomething(#COL1#,#COL2#);#COL1# and 2 being your report columns. This should do what you need i think

  • Execute process after clicking a link

    i have a page with a form and report.
    the report contains links to specific datasets in the form. that means: it's a link to the same page but another data set.
    because of the form i have a process Automatic Row Processing (DML) to save changes in the form.
    now i want to use this process after clicking a link. i did the following: i added to link the keyword 'Apply' in the position of 'Request'.
    the process says: Valid Update Request Values: SAVE, APPLY CHANGES, UPDATE, UPDATE ROW, CHANGE, APPLY, APPLY%CHANGES%, GET_NEXT%, GET_PREV% , but if i click on a link the process will never be executed.
    maddl

    Hi
    What do you mean with "link to the same page"?
    If you don't SUBMIT the page, the Automatic Row Processing will not fire.
    So your "link" should be something like a href="javascript:doSubmit('APPLY');",
    and then you set up Page Branching to branch to the same page.
    You might want to set up a condition for the branch also, choose Request = Expression 1, and enter APPLY in the expression 1 field.
    Hope this applies to your case.
    Cheers,
    Vidar

  • How can I call a Page Process from the Select statement for Report Page

    I'm able to call a javascript using the below:
    img src="#IMAGE_PREFIX#add2.gif" border="0" alt="Icon 4" onClick="javascript:add_connect1('||CPORT.ID||')"
    But Now,
    I'd like to accomplish (2) New things:
    1. instead of using,....... onClick="javascript:add_connect1,
    I'd like to call a Page Process, onClick=
    2. I'd like to be able to call two different processes onClick.
    a. onClick="javascript:passBack('||ID||')"
    b. onClick= <Please see my question #1 above>
    Can someone please help me with the syntax for this,
    If indeed it can even be done?
    Thanks- Gary

    Greg.
    It seems that my situation is the one you describe in you second paragraph, where you mention:
    you could then add the ID column value as a parameter to the javascript functionBut,
    I do not know how to reference the variable in my javascript nor how to use it in my on-demand process.
    If you can hellp me past this last little bump, then I think I will be able to use these skills in Sooo many different areas of my design.
    Here's what I've got so far:
    A. In the select statement I identify the javascript as:
    onClick="javascript:connect_port('<font color=blue>''||ID||''</font>')";
    B. In my javascript I have this:
    <script language="JavaScript" type="text/javascript">
    function connect_port(ID)
    var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=CONNECT_PORT',0);
    gReturn = get.get();
    get = null;
    </script>
    C. In my on demand function I have this:
    BEGIN
    INSERT INTO CCONNECTIONS_B
    BLDG_ID,CLST_ID,PORT_ID,STRAND_ID
    ) VALUES
    :P2004_BLDG_ID,:P2004_CLST_ID,:P2004_PORT_ID,:P2004_STRAND_ID1
    END;
    You can see that I dont know how to use the value for 'ID' in either the javascript or the On-Process function.
    If you can help me out with this one, Then I can imitate it for the rest.
    -Gary
    Edited by: garyNboston on Apr 3, 2009 6:44 AM
    Edited by: garyNboston on Apr 3, 2009 6:44 AM
    Edited by: garyNboston on Apr 3, 2009 6:45 AM
    Edited by: garyNboston on Apr 3, 2009 6:47 AM

  • 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

  • How to execute a APEX process on click of link from a email message

    I have a download procedure which will ask user wheather to save or open a file. This procedure uses standard "owa_util.mime_header","htp.p('Content-length" commands do do this. The procedure works fine. I'm sending a mail to user where this procedure is link to save or open a file. But for security reasons, I don't want to embed this procedure in the email, instead I want to redirect to APEX page. In the APEX page, I have put the procedure code in "onSubmit" process and it workd fine on clink of button. But I want to execute this process "Onload", so that user doesn't have click a button, all the user does click the link in email which will go to APEX page and ask wheather to save or open a file. any ideas are appreciated.
    Thanks,
    Surya

    Hi
    Perhaps you could use an on-demand application process instead - you can specify these in the URL.
    The URL syntax (for your link) would be like...
    f?p=application_id:page_id:session:APPLICATION_PROCESS=process_idIs this what you mean?
    Cheers
    Ben

  • After the Firefox 6.0.2 update (up from 6.0), Firefox does not open a tab/page anymore when clicking on links in e-mail(have Thunderbird 6.0.2)

    Firefox no longer receives clicks on links in e-mail and others. No response at all. When I click on URL links in Windows, I receive "Windows cannot find http://<an address>. Make sure you typed the name correctly ...". When I click on e-mail links in Thunderbird, I do not get an error but nothing happens.

    This problem disappeared after a few days by itself but the last significant change in my PC prior to noticing normal Firefox link behaviour was MS Vista update KB2607712 & restart. This may or may not be the solution to the problem.

  • In indianvisa App. page; when I clicking a link in this page after a long time (2 hours), it shows me session expired. how can i solve it? Please.

    http://indianvisa-bangladesh.nic.in/visa/indianVisaRegDetails.jsp; this is page link. I want to stay in this page for a long time but i can't, they show me a message "session expired". Also I set an add-on namely Session Keeper but don't implement it. Please solve my issue.
    Thanks
    Bishwajit Das

    Many site issues can be caused by corrupt cookies or cache.
    * Clear the Cache and
    * Remove Cookies<br> '''''Warning ! ! '' This will log you out of sites you're logged in to.'''
    Type '''about:preferences'''<Enter> in the address bar.
    * '''Cookies;''' Select '''Privacy.''' Under '''History,''' select Firefox will '''Use Custom Settings.''' Press the button on the right side called '''Show Cookies.''' Use the search bar to look for the site. Note; There may be more than one entry. Remove '''All''' of them.
    * '''Cache;''' Select '''Advanced > Network.''' Across from '''Cached Web Content,''' Press '''Clear Now.'''
    If there is still a problem,
    '''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]''' {web link}
    While you are in safe mode;
    Type '''about:preferences#advanced'''<Enter> in the address bar.
    Under '''Advanced,''' Select '''General.'''
    Look for and turn off '''Use Hardware Acceleration'''.
    Poke around safe web sites. Are there any problems?
    Then restart.

  • Calling a page process within another page process??? Is it possible?

    Hello guys! Just a quick question. I got two pl/sql processes on a page and would like to call process one within process2.
    Is it possible and how do I reference process 1? Should I just call it like a procedure?
    Many thanks in advance!
    Bdrgs,
    Seb

    You can make the second process conditional and run it that way:
    1. your first process has a lower sequence and after a successfull completion it will set an hidden page item to a certain value
    2. your second proccess will have a higher sequence and will run only if the first one was completed successfully
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Links to other webpages open as a totally black page, if I click "open link in IE" then it opens as the new web page

    I have used firefox for years....no problem. Suddenly when I click on a link in a website to go to another area or site...the link opens as a totally black page and at the bottom states "done". If I Right click on the link and open in IE then it will open the new link to the corresponding website....it is frustrating! Any suggestions??

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • When clicking on a link on a web page it would go to that page in the same tab and you could use the GO BACK button to bring up the previous page? Now clicking the link always goes to a new tab, can this be fixed.

    Tried to change tab options and it didn't help.

    It's a good idea to try disabling Flash completely and see whether the problem continues. If it does, then my guess is incorrect. To test that, open this tab:
    orange Firefox button (or Tools menu) > Add-ons > Plugins category
    Here you can locate Shockwave Flash and use the Disable button. Keep this tab open for easy access when doing your test.
    ''If your test confirms that Flash is causing the problem,'' then the other thread has two suggested workarounds. The first is simple to understand (keep some Flash running at all times) but may be inconvenient to do all the time. The second is trickier because it requires editing a file in (or creating and then dragging a file into) a system folder. Fortunately you only need to do it once.

  • Call page process within Javascript

    Hey guys! Just shortly after working out my conditional Javascript dialog function I stumbled upon another little problem that is as follows:
    I need to call a page process from the Javascript function "dialogwarning" when the save button of a jquery dialog is clicked.
    The Update action works already but the pl/sql process is not carried out.
    Actually it cannot be that difficult...
    Can you please give me a hint how to accomplish it? Until now I've only seen threads were javascipt was called in an pl/sql process - not vice versa.
    Here's my code for the dialog:
    $(function(){
      $("#dialogwarning").dialog({
        autoOpen: false,
        bgiframe: true,
         modal: true,
            width: 400,
            minWidth: 400,
            resizable: true,
         buttons:{
           Save: function(){
              doSubmit('UPDATE','APPLICATION_PROCESS=proc_reset_mx_results');
          Exit: function(){
             $(this).dialog('close');
    </script>Any help is appreciated!
    Regards,
    Sebastian

    Well Dirk, thanks for your feedback.
    Option number 2 does not work for me since the "UPDATE" raised by the javascript function saves something to a table a and is supposed to launch a process that deletes from another table b. The javascript function in turn is already conditional to be raised only when some criteria match and a delete action is neccessary.
    In short words, option 1 would cause the launch of the delete procedure whenever the update process is called.
    Thus, I just created an application process proc_reset_mx_results that is of type after page submission:
    begin
    Delete from tbl_matrix_intermediate_result
    where str_lrt_class = :p231_str_lrt
    and lng_gebiet      = :p231_str_gebiet
    and int_be          = :p231_bewertungseinheit
    and eval_type       in (7,8);
    end;My problem - it doesn't work as it should. The dialog opens, I click the save button and in turn the update action is carried out. However, nothing is deleted from table b i.e. tbl_matrix_intermediate_result!
    Regards,
    Sebastian
    Wow, thanks for all your interest!
    @ roel
    It's a custom pl/sql anonymous block that is supposed to be called using the button of that jquery dialog. The dialog itself is only raised when a condition is met.
    The background info:
    -A user enters data that is stored in table a
    -The user goes to an evaluation module where the input values are weigthed and evaluated in an extensive stored procedure.
    -The user has the option to override the automatically calculated result by entering custom results.
    -Both result sets (automatic and custom values) are saved in tbl_matrix_intermediate_results.
    Here it comes:
    Only if the user modifies the input data after the evulation has been performed, then the message-box should be displayed and if the user agrees, all previous results should be deleted.
    I believe a trigger is not the proper tool for my purpose.
    I hope you can understand my point and problem now?
    Edited by: skahlert on 01.03.2010 14:20

  • How to call jsp page from OA page

    Hi all,
    I am new to OA Framework..I have a requirement where i have to navigate to a new jsp page.. on clicking a link in the OA page.The major trouble in this is that , that new jsp page should open in a new window.. not in the same window.
    Please give me some solution as it is very urgent for me.
    Thank you.
    Vasantha

    Similar issue has been discussed in last few weeks. Search in threads before posting the issues.
    --Shiv                                                                                                                                                                                                                   

  • I get a blank popup window when clicking a link in some websites. I used to get info in the popup.

    I updated to FF 3.6 in early December. Since then there are some regular sites I visit that display a blank page when I click a link that used to have a popup window with the information.

    I do not see the Adobe Reader (PDF) plugin listed with your original question. To see the plugins submitted with your question, click "More system details..." to the right of your original question post. You can also see your plugins from the Firefox menu, Tools > Add-ons > Plugins.
    Try the following:
    #Close all Firefox windows, File > Exit
    #Click (Windows) Start > All Programs (or Programs) > Adobe Reader (Adobe Reader will open)
    #On the Adobe Reader menu, click Edit > Preferences > Internet
    #Under Web Browser Options, check the "Display PDF in browser" box
    #Click OK. Close Adobe Reader
    #Restart Firefox and test
    Also, check your settings for PDF Content type in Tools > Options > Applications (I know you said you have already done this, but check it again after doing the above). See:
    *http://support.mozilla.com/en-US/kb/Managing+file+types
    *http://kb.mozillazine.org/File_types_and_download_actions

  • HT5655 After clicking Safari prompt box to "Download Flash..." , I'm linked to the Adobe Flash Player Download page. I click the "Download Now". The page advance to next page in the download process but then immediately goes black and nothing happens.

    After clicking Safari prompt box to "Download Flash..." , I'm linked to the Adobe Flash Player Download page. I click the "Download Now". The page advance to next page in the download process but then immediately goes black and nothing happens. System preferences firewall is off and apps are allowed from anywhere and in Safari other plug ins are allowed and cookies are not blocked and pop up windows are not blocked. Why won't Flash Player download?

    Don't DL Flash from web sites. If you have Adobe Flash installed it should be in System Preferences and you can find the latest version and download from there.
    If you are installing for the first time,this is where to DL it.
    http://get.adobe.com/flashplayer/

Maybe you are looking for

  • Takes long time for songs to start playing

    I have window 7. I have problems when i try to play a song it takes a long time and it displays on the screen " loading URL". Why does it take so long. I have trie itunes versions 8-10.5. The only itunes that it doesn't happen in is itunes 7. Itunes

  • How can i print my Calander from iPad Air

    How can I print my calender from my new iPad air, I have air print available Thanks

  • Doubt on Effective Dated (data pertaining to a specific point in time)

    Dear Members, 1/ I have created a table using the below SQL Command create table XXEMP EMP_NO                  NUMBER(12), EFFECTIVE_START_DATE    DATE, EFFECTIVE_END_DATE      DATE, EFFECTIVE_DATE_SEQUENCE NUMBER(12), EFFECTIVE_DATE_SEQ_FLAG VARCHAR

  • Streaming G5 through a TV- do you need a good video card?

    Hi Everyone I recently fried my videocard (thanks so much to everyone here who helped me with that issue), just as I bought a DVI-Svideo adaptor that would allow me to stream my G5 through my TV. Unfortunately, my videocard was the Radeon 9600 card -

  • Table Cell Editor

    Hi All, I created JTable. For one column I have given Combo box as editor. when the program is run, if I select any value in first row in combo box, the same value will be chosen for other rows also.That is if I just click in the other row's combo bo