How to ACCEPT values on page APEX sent by external APEX through POSTmethod

Hi people,

How can I accept the values in my page APEX which are send to my page through the POST method from outside of my application?

Sample test:
Of non-apex application (simple html page), I would like to post 2 fields (field "Par1" and the field "Par2") in my APEX page. On my apex page I defined the areas P102_PAR1, P102_PAR2.
<html>
<HEAD>
  <TITLE>Tester</TITLE>
</HEAD>
<body>
     <h1>Test to POST form values into APEX page</h1>
     
     
     <form action="[my_url???]" method="POST">
          <table>

               <tr>
                     <td>Par1</td>
                     <td>
                          <select name="Par1">
                              <option value="OPTION1">Option 1</option>
                              <option value="OPTION2">Option 2</option>
                              <option value="OPTION3">Option 3</option>
                          </select>
                    </td>
               </tr>
               <tr>

                     <td><label for="Par2">Par2</label></td>
                     <td><input type="TEXT" name="Par2" id="Par2" size="30" value="123"></td>
               </tr>
          </table>
          <input type="SUBMIT" value="send">
     </form>
</body>
</html>
How can I define action URL in top shape, so once you press the "SUBMIT" button it will fill both fields in my apex page?
My APEX (p102) page is a blank page, with only 2 fields P102_PAR1, P102_PAR2 text at the moment.

Thank you very much
Tomas


===========
If I put above url to: ' http://cit-dev-as5:7780 / pls/he/f? p = 700:102:1659258057907233' (stright to my page & session sharing) and press "SUBMIT" button, then I recive below error message:
f: SIGNATURE (parameter names) MISMATCH
VARIABLES IN FORM NOT IN PROCEDURE: PAR1,PAR2
NON-DEFAULT VARIABLES IN PROCEDURE NOT IN FORM: 

  DAD name: he
  PROCEDURE  : f
  URL        : http://cit-dev-as5:7780/pls/he/f?p=700:102:1659258057907233
  PARAMETERS :
  ===========
  P:
   700:102:1659258057907233
  PAR1:
   OPTION1
  PAR2:
   123

Tomas:

Treat the input of an external application that needs to be passed to an APEX application is to create a procedure from pl/sql intermediary who will receive the input of the external source and then format this entry as required by the syntax of the URL of the APEX and then re - direct the user to this URL APEX format.
Using the example you provided you have the pl/sql procedure as follows

Create or replace  procedure extinput(par1 in varchar2,par2 in varchar2) is
l_apex_url varchar2(4000;
begin
l_apex__url:=
  'http://myhost:myport/apex/f?p=700:102::::P_102_PAR1,P_102_PAR2:' ||
   par1 ||','||par2;

owa_util.redirect_url(l_apex_url);
end;

The names of parameters in your procedure must match the names of the fields of the POST.

CITY

Tags: Database

Similar Questions

  • How to keep the State page apex value after connection page

    Does anyone know to keep the State in a page of the apex, when I go to another page and come back? He keeps all the values entered into the fields, it seems that the gaps?

    I have 5 regions and each region have elements: text fields, selectors of dates, popup lov, field numbers, text box and view point only. When I go to the next page with redirect and return I see popup lovs values and values of one or two display items only. The values of the other text fields, dates selectors and the display just empty.

    Thank you everyone can help. Thank you.

    Kind regards
    Dragan

    Hello

    This element only display recording session state?
    Checks the attributes of the element.

    Kind regards
    Jari

    -----
    My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • How can I remove a page from a PDF document created through a scanner?

    My Scanner has created several blank pages in the PDF document.  It seems there is no editing tool to delete a page.

    The free Adobe Acrobat Reader software doesn't have this capability. You can either play with the settings of your scanner software and re-scan, or you can delete pages with the full version of Adobe Acrobat.

  • How to keep the region selected when the page is sent

    Hello

    I created a page with several area equipped with a region selector.

    When the page is sent, the region selector returns to 'show all '.

    I would like to keep the selected region, but don't know how.

    Any ideas?

    APEX version: 4.2.6.00.03

    Theme: 26

    Best regards

    Klaus

    Hi Klaus,

    Please follow the Blog solution

    http://blog.theapexfreelancer.com/2011/11/sticky-region-display-selector/

    Hope this helps you,

    Kind regards

    Jitendra

  • Modal region of the tree as a popup... After clicking the value in the tree... How to avoid the parent page is refreshing

    Hi, I spent long hours to solve this problem and wait for the answer from the expert.

    I created a form with text boxes and one of them, I created just small image button to call the modal region of the tree.

    Everything is OK, tree appear and disappear after the passage of the code value for the text element in the parent form.

    But it refreshed and initialized all other areas of empty text as well... ^ ^;

    I think that, because of the link in SQL tree. Someone help me?

    Select case when connect_by_isleaf = 1 then 0

    When level = 1 then 1

    else                           -1

    end the status,

    level,

    "CAT_NM" as the title,

    NULL as an icon,

    "CAT_CD" as a value.

    NULL as ToolTip,

    ? p = & APP_ID.:112 :'|| : APP_SESSION |': P112_CAT_CD :'|| "' CAT_CD ' as link-> How to avoid refreshing the page parent and just switch the CAT_CD to the called page?

    'category '.

    Start with 'PARENT_CAT_CD' is null

    connect prior "CAT_CD" = "PARENT_CAT_CD."

    siblings arrested by "CAT_CD".

    Hey "zoomok,"

    Large - an example would have been my next request in any case I took a glance and changed your demo page to work as you want.

    Things of note:

    -SQL source tree: NO link value! A link value will generate apex code that will redirect you to the link. It will always be a redirect page, where a rerender page, and not what you want! Leaving NULL allows us to interact with the tree interactively via javascript

    -Code in variables and functions global page - javascript - next:

    function treeOnload(){
      var l$Tree = $("#tree_modal div.tree"); // get the tree instance
      // handle the onselect event of the tree
      $.tree.reference(l$Tree).settings.callback.onselect = function(NODE, TREE_OBJ){
        $s( "P112_CAT_CD", $(NODE).attr('id') ); // get the VALUE of the node and put it in item P112_CAT_CD
        closeModal(); // close the active modal region
      };
    };
    

    -In javascript - dependent section I added a call to this procedure:

    treeOnload(); // initialize the tree with our settings
    

    And that's all! I didn't know that you use "openModal". There are different ways to implement modal regions, so it is important to know how we do for ourselves what to do with it.

    FYI - you now need to change your credentials. And mark the answer that has helped you or is correct, please.

  • passing values from one page to bring up the window page apex

    Hi all

    I created the java script to open a new window to send mail from apex.

    < script language = "JavaScript" type = "text/javascript" >

    function send_mails (template_id) {}
    Window.Open ('https://hrssc-in.oraclecorp.com/pls/apex/f?p=154:15: & SESSION.: 15:P15_VENDOR_CODE, P15_MONTH, P15_YEAR, P15_DISCREPANCY_DETAILS_DL, P15_DISCREPANCY_DETAILS_CS, P15_DISCREPANCY_DETAILS_PF, P15_DISCREPANCY_DETAILS_ESI, P15_TEMPLATE_ID: & P2_VENDOR_NAME., P2_MONTH., P2_YEAR., & P2_DISCREPANCY_DETAILS_DL, & P2_DISCREPANCY_DETAILS_CS. & P2_DISCREPANCY_DETAILS_PF. & P2_DISCREPANCY_DETAILS_ESI.) (,'+ category, null, "height = 500, width = 1200, status = yes, toolbar = no, menubar = no, location = no, scrollbars = yes") ;}


    < /script >

    I can change the value of page 2 to the page 15 using the code above that if I choose page submitt for items (action when the changed value of the page).

    If there is another way to transmit values without submitting the items (in the action of the page tab).

    can someone help me solve this problem

    Thanks in advance,

    Year s

    Hello

    the function of $ v that allows you to get the values of the elements cannot be used as part of the parameter to window.open.
    Try to concatenate function calls v$ in the parameter

    
    

    What does the category in the parameter string?

    Kind regards
    Erik-jan

  • How to retrieve a value of page element in another page?

    Hello

    How to retrieve a value of page element in another page?

    say P55_COURSES_TO_EVALUATE is my name of the page element, and it is a selection list. Based on the value selected in the next page I see the details of the selected value shd and for that I need P55_COURSES_TO_EVALUATE value in the following page. How to do it? When I try to retrieve the values it simply returns nothing.
    Pointers would be really useful.

    Thanks in advance.

    Hello

    Could you please how you try to use it?

    If you set the value to the P55_COURSES_TO_EVALUATE element and submit the page, the value is stored in session state.
    Then you can use this element in any page as

    :P55_COURSES_TO_EVALUATE
    

    You cannot access page value in javascript/jQuery to other pages like

    $v('P55_COURSES_TO_EVALUATE')
    document.getElementbyID('P55_COURSES_TO_EVALUATE')
    $(#P55_COURSES_TO_EVALUATE)
    

    Because the item is not on the other pages. In javascript from other pages, you can use

    var a = '&P55_COURSES_TO_EVALUATE.';
    

    Kind regards
    Jari

  • How I branch to a Page of the APEX in an another Page of APEX, without button?

    Hello

    I have an APEX Page, Page 11, that contains an HTML element, then a region of PL/SQL. I want that all the code in PL/SQL region (who calls various procedures side Server package) to run completely, after which, I want to create a branch to / call Page 14.

    I want this branching/call take place automatically, i.e. WITHOUT the user to press a button "submit". Is this possible? If so, how do you?

    See you soon.

    James

    James:

    It has just occurred to me this mod pl/sql does not empty the http pl/sql mod had relied on stream until after the stored procedure is finished. Since the region HTML display, call your procedures on server side, the call to owa_util_redirect etc are all part of a larger APEX procedure (P), you end up seeing the behavior you do.
    How the user can't page 11? I think that you need to do is to show the progress bar image before arriving at page 11.

    CITY

  • How to assign values to the application points to leave on a table

    Hello

    I have a FORM on a table with two or three elements. How to assign values to the elements of the application with the values in the elements of form, every time the value of the element is entry, change or page is sent?

    I created a dynamic action to the region level with Event - change to run the suite of PL/SQL, I tried with 3 different ways in PL/SQL, as shown below, but it didn't work.

    BEGIN

    : APP_FY: =: P1_FY;

    END;

    BEGIN

    APEX_UTIL. SET_SESSION_STATE ('APP_FY', v ('P1_FY'));

    : APP_FY: =: P1_FY;

    END;

    BEGIN

    APEX_UTIL. SET_SESSION_STATE ('APP_FY', v: P1_FY);

    END;

    Then I created an action dynamic at the ITEM level with change event to run the suite of PL/SQL and tried with PL/SQL, as shown below, but it didn't work.

    I need to assign values to the elements of the request form as these elements of the application will be used in many other pages in the application. How to I get there?

    Thank you.

    If a dynamic action of PL/SQL execution, you must send your list of page elements in the parameter "Elements of Page to submit.

    See the section 'run pl/sql' for this post.

    If the page is submitted, the elements of the page will be automatically set to session state, and you can have a page process make the code you have.

  • How to detect if the page is a reload or not?

    I have a form in the cfm page if the user submits the form, I don't want to go to another page. I want to reload the page and I'll capture all values and send the data in this way. However, I need to hide the form once the user submits the form. So, how I detect if the page is a reload (after is submitted) or it's the first time it is been charged?

    You can manage only two ways.  One, add a hidden field to the form that passes a value, then check if the value exists in the URL/FORM variables (if it exists, the page is reloaded by sending the form - if it does exist, it's the first load of the page).

    Perhaps a better approach would be to manage the form via an AJAX request is sent, and then hide the form if the AJAX request is successful.  This all is possible using JavaScript.  The advantage is that the user leaves the page never actually or it recharges.

  • Page APEX control items are displayed using the APPS user!

    Hi friends,

    I am running an Apex Application of the Apps (E Business suite-> link to Application). When the user clicks on this link without asking the login of the APEX, the application is open based on credentials Apps. Now my problem is the customer requests to restrict the display of the elements of the page (i.e. buttons) in the Application of the Apps user login and accountability-based APEX.

    I know how to show the result as normal button: APP_USER = "ADMIN" for example. But I don't know how to control from APPS. As I am new to both I need help from you guys to get this functionality.

    I need the faster response because it is very urgent for me.

    Thank you
    Stéphane.

    When you call page APEX-separated values, you can set the Variable of APEX with comma

    For Ex.

    f? p = 102:1:F102_ORG_ID, F102_GL_SET_OF_BKS_ID, F102_RESP_ID, F102_USERID, F102_HOME_URL:' | vOrgId | ',' || vSobId | «, » || vRespId | «, » || vUserId | vURL

    Alternatively, you can pass these parameters as Cookies.

    Let me know if you need something more.

    HTH

    Dinesh

    Published by: DineshS on February 20, 2009 02:08

  • Google Translate opens as a superposition of one third of page in my browser, how I develop a whole page?

    Google Translate opens as a superposition of one third of page in my browser, how I develop a whole page?

    Hello

    Firefox on Windows is now after display, scaling options that can make the biggest text on screens at high resolution. There are several ways to solve this problem. See the Web pages are broad and fuzzy after update of Firefox - how to fix article for a suggestion. Here is another possible solution:

    • Type of topic: config in the Firefox address bar and hit the Enter key.
    • If the warning that this might void your warranty , click I'll be careful, I promised.
    • Search for layout.css.devPixelsPerPx

    • Double-click layout.css.devPixelsPerPx to edit its value. The default value is - 1.0 in Firefox 22 and above. Change it to 1.0 to run as in previous versions of Firefox.

    If necessary, further adjust the value of 0.1 or 0.05. Values between 1.0 and around 0.5 to reduce the size of the elements. Use a value greater than 1.0 to increase the size. For example, a value of 1.25 will increase the font size of the 125% to account for the default DPI setting in Windows 8. Check the value that you enter. Definition of a value that is too small will take everything away and too high will explode things.

    If the web pages should always be adjusted so you can watch the extension Default FullZoom Level or NoSquint .

    To adjust the font size for the user interface, you can use the extension of theme font & size changer .

    This solve your problems? Please report to us!

    Thank you.

  • How to make Firefox home page to open a new tab when searching?

    I'm a little modify Firefox on: home page and I try to get the home page to be effectively its own app tab. To do this, I need to make sure when I search with him, it opens a new tab to view the results of my research.

    I tried two things so far; I tried to add the attribute target = "_blank" to the < form > tag and I tried adding the attribute onclick = "this.form.target = '_blank'; return true;" " for nested inside the < form > tag < input > tag (I'm guessing the latter is JavaScript lol). I also tried a 'TabSubmit' extension, which has not worked here.

    I know how to change the right page (I change the content of aboutHome.xhtml in omni.ja) and have already changed the stylesheet a little (to underline links when hovering over them and adjusting the discoloration of the Mozilla logo during a flight over it). It comes to the next amendment I wanted to do.

    Any suggestions? Thank you!

    Topic: home use window.location.href = url; to change the location of the current tab.

    This change of window.open (url); and by adding a line at the end of the aboutHome.js file to initialize the localStorage works for me with a registered locally on: homepage.

    function onSearchSubmit(aEvent)
    {
      let searchTerms = document.getElementById("searchText").value;
      if (gSearchEngine && searchTerms.length > 0) {
        const SEARCH_TOKENS = {
          "_searchTerms_": encodeURIComponent(searchTerms)
        }
        let url = gSearchEngine.searchUrl;
        for (let key in SEARCH_TOKENS) {
          url = url.replace(key, SEARCH_TOKENS[key]);
        }
        window.open(url);
      }
    
      aEvent.preventDefault();
    }
    
    localStorage["search-engine"]="{\"name\":\"Google\",\"searchUrl\":\"http://www.google.com/search?q=_searchTerms_&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a\"}";
  • How can I remove a page from an email that appears when I open my computer?

    How can I remove this page that appears every day, I cut down on my computer. The page is from an email sent to my long from a friend who has his social security information. How can I remove this?

    Hi lost,

    Try a boot minimum http://support.microsoft.com/kb/929135.  If the problem goes away then it's just a matter of tracking down the culprit at the origin of the problem.   Follow the procedures described in the article.  Once found, remove, delete, disable or uninstall.  Once don't forget to reset yout system back to the normal state, as described in the procedures. If the problem occurs in clean mode then just restore the system to normal and reboot - this solution will not work.  If you are using XP, see: http://support.microsoft.com/kb/310353.

    I hope this helps.

    Good luck!

  • How to put the first page to run?

    How to put the first page to run?

    Dimitri Gielis Blog (Oracle Application Express - APEX): Change the page (first) by default in APEX

Maybe you are looking for

  • Can I Exchange an active sim to my Samsung on my iPhone Verizon?

    I was wondering if I can exchange a Verizon SIM card active between my Samsung Galaxy S7 and my iPhone 5s even if I still pay my Samsung? If its possible there will be extra charges or my Bill will be the same?

  • Yosemite projector cannot search seagate external hard drive

    Hello I have a 8 TB of seagate drive known as of the "external Seagate backup Plus." I formatted the drive in ExFat, and I have no problem reading or writing to the disk. I'm on a Macbook Pro running OSX Yosemite 10.10.2 * The problem is that Spotlig

  • Trying to get back to Quicktime 10 QT Pro 7

    Since the upgrade to Mac os 10.11, I had this 10 useless Quicktime on my computer, so I downloaded and installed 7 QT, but what I have is Quicktime 10.

  • Download XP to Vista updates

    I have a 64 - bit Vista SP2 that is connected to the high speed running. I also have a machine running XP SP3, which can only connect through dial-up.I have checked for the required updates using the dial-up connection, and want to download these usi

  • My installation of Virtual PC 2007 hangs

    Hello I am facing a very annoying problem that seems now more and more frequent.  Virtual PC keeps closing without any warning. I am running Virtual PC 2007 on my Windows XP Professional SP3 host. I use Virtual PC to run Windows 2003 R2. WHAT I TRIED