Post form parameters to a new URL

Hello,
I want to create a jsf page which has a form that posts data to a payment system, example URL: https://<<<mypayserver>>>/newpayment .
However, jsf uses postbacks to post form's data to itself and use the navigation model to navigate through pages.
So my question is:
Should I use ExternalContext#redirect() for redirecting the request to the payment URL? Will the form's data be transferred in the request?
Or should I use vanilla html to do that? I don't want to use the html solution, because I have to do some checks before I send the data, but if there is no other way, I wll do the checks some other way.
Thanks in advance,
Tony
Edited by: deathstar100 on Apr 2, 2008 12:37 AM
Edited by: deathstar100 on Apr 2, 2008 12:38 AM

I don't think that you can delete this form_fields because they are system specific.
http://help.sap.com/saphelp_nw04/helpdata/en/ce/3dd23a09313b37e10000000a11405a/content.htm
Probably you should explicitly select the formfields you want to write into the URL with the SET/GET_FORM_FIELD(S) methods.
You can construct your own URLs with your own params. Check the Interface methods from IF_HTTP_UTILITY, IF_HTTP_ENTITY (IF_HTTP_REQUEST/RESPONSE) ...
Regards
Volker
Message was edited by:
        Volker Ritzau

Similar Messages

  • How to pass PARAMETERS to FORMS while calling them through URL

    Hi,
    I am working on integrating EBS with OBIEE as per the doc id 552735.1(metalink2)
    In the Document, Oracle had given an example for genating the URL in OBIEE as follows,
    SELECT
    HEADER_ID,
    fnd_run_function.get_run_function_url(
    CAST(fnd_function.get_function_id('ISC_ORDINF_DETAILS_PMV') AS NUMBER),
    CAST( VALUEOF(NQ_SESSION.OLTP_EBS_RESP_APPL_ID) AS NUMBER),
    CAST( VALUEOF(NQ_SESSION.OLTP_EBS_RESP_ID) AS NUMBER),
    CAST( VALUEOF(NQ_SESSION.OLTP_EBS_SEC_GROUP_ID) AS NUMBER),
    'HeaderId='||HEADER_ID||'&pFunctionName=ISC_ORDINF_DETAILS_PMV&pMode=NO
    &pageFunctionName=ISC_ORDINF_DETAILS_PMV',
    NULL) as ORDER_HEADER_ACTION_LINK_URL
    FROM OE_ORDER_HEADERS_ALL
    But this one navigates to the JSP page of sales orders. Its working fine,
    h3. Problem :_
    If i want to navigate to Oracle forms(say Sales Orders),
    i'm able to navigate, by giving the 1st param as '5522'(Sales order Form ID(ONT_OEXOEORD)) and 5th parameter as NULL.
    The 5th parameter is used to navigate to a particular record.
    But i dono how to pass the parameters to this particular Sales Order Form..!
    (like here they hav passed HEADER_ID in a particular format)
    {I guess, this might not be understood totally with this given data here, but i don want to make this post too big.}
    CAN ANYONE PLEASE TELL ME, HOW TO KNOW THE FORMAT OF THE "PARAMETERS" TO PASS(WHILE GENERATING URL)_WHILE CALLING AN ORACLE FORM.._
    Thanks in Advance..!!

    Hi,
    In addition to the above...
    if i give the 5th parameter as, 'HEADER_ID=||'header_id { in runtime it'll be converted as 'HEADER_ID=5432..}
    I'm not getting any error, getting a fresh Sales order page..!! { The given Header ID is ignored }
    else if i give something like 'HEADER_ID=||'header_id||'&FunctionName=ONT_OEXOEORD...' { lets say }
    its throwing the following errors..
    FRM-47023: No such parameter named G_QUERY_FIND exists in form OEXOEORD.
    FRM-40105: Unable to resolve reference to item PARAMETER.G_QUERY_FIND
    FRM-47023: No such parameter named ORDER_NUMBER exists in form OEXOEORD.
    and then it shows up the Navigator.
    Requirement :_
    How to pass parameter to a form while calling them through URL.
    Thank you,

  • Close a window in a post form trigger in a form with calls to new forms

    All,
    I am trying to close the browser using examples from metalink and this forum. I am placing the code in a post-form trigger as directed by the example. The problem I am having is that this is a menu type screen that includes buttons that take the users to a new form. So, when any of the buttons pressed on the menu screeen, including the Exit button, The Post-Form trigger fires and tries to close the window. I also noticed I should place the trigger in the last closing form and have done that.
    I then tried putting the code to close the window in the Exit when button pressed trigger, and that doesn't seem to be working either.
    Any help would be greatly appreciated.
    Joe

    I wonder why the feature isn't built-in to the OS, even as an option.  It's convenient to be able to minimize a window in place, so you don't have to keep going to the dock to reopen it...  

  • How to obtain POST request parameters

    Does anyone know how to obtain POST request parameters after form submit like we can get GET parameters after form submission via {module_url, parameterName}?

    "garry.b" <[email protected]> wrote in
    message
    news:gnndbf$i2q$[email protected]..
    > Hi,
    >
    > When using AS3 to generate an HTTP POST request:
    >
    > var service:HTTPService = new HTTPService ();
    > service.url = "
    http://localhost:9090/service";
    > service.method = "post";
    > // service.request = {itemId: "12345"};
    > service.send ({itemId: "12345"});
    >
    > my CherryPy web server complains about unexpected body
    parameters:
    >
    > HTTPError: (400, 'Unexpected body parameters: itemId')
    >
    > Using Firebug's Network display, its Post tab shows the
    following content:
    >
    > Referer:
    http://localhost:8080/log/log-1.0-SNAPSHOT.swf
    > Content-type: application/x-www-form-urlencoded
    > Content-length: 12
    >
    > itemId=12345
    >
    > which looks very strange to me as I would expect the
    Referer, etc.,
    > request
    > headers to show up in the Request Headers section and
    not as POST body
    > content.
    > While this could be some Firebug issue, I think the
    request message is
    > really
    > formatted incorrectly. When the web server gets the
    request, it does
    > recognize
    > 'itemId' as a body parameter but then complains that
    it's unexpected.
    >
    > I've googled the error message, studied HTTPService
    examples, spent
    > several
    > hours playing with it and am stumped. Tracy Spratt
    suggested setting the
    > service 'request' to force a POST and I tried it but am
    getting the same
    > error.
    > How do I make a POST request? Can I get POST data into
    the message body?
    > Stick with URL parameters only?
    What happens if you post to the same service using an html
    form?

  • IE11 can't post form data to specific frame or window dialog opened via window.open()

    Hello,
    Form POST targeting to specific frame or dialog popped up via window.open() no longer works in IE11.
    It worked fine in IE10 and all previous versions of IE.
    Please see screenshot attached with simple test that reproduces this problem.
    Direct Link to screenshot:
    http://173.231.98.44/cgi/TestFolder/IE_11_widow_frame_targeting_BUG.jpg
    Direct link to simple test page demonstrating this problem:
    http://173.231.98.44/cgi/TestFolder/page2.asp
    Note: IE11 doesn't report any errors, doesn't complain about anything, even when debugged via F12 developer tools. The only thing it complained initially was missing doc type declaration on top of page, but even after adding doc type definition, problem still
    persists, makes no difference.
    I tested this on fresh install of Windows 2012R2 while testing our web application with the new IE11.
    I believe doing this on Windows 8.1 with IE11 will result in same bug/problem.
    Our web application uses a technique whereby it launches a popup window via call to window.open(), passing blank URL and specifying a name for the new window. It then does a from post targeting the name of new dialog.
    In IE11 this functionality has been broken and no longer works.
    Problem is that IE11, instead of posting form to the newly created dialog, it launches a new instance of IE and then loads the requested form in this new instance of IE, while the dialog launched via window.open() remains on screen and is empty. If user repeats
    launching same form post request (via button click for example), IE 11 keeps creating new empty dialogs and new IE instance for every form post executed. This totally breaks our application because we use many so called "wizards" that encapsulate
    specific functionality in separate web page launched in a popup window.
    Another related problem is that if a dialog is launched with window.open(), the java script code in the dialog can not target the parent frame that opened the dialog anymore. In our application, when a dialog is closed, it typically needs to trigger a refresh
    of a specific frame within the parent window (again targeted by name) to reflect saved/updated info that user entered in the popup dialog. The result is that we can't refresh the parent frame after the pop up dialog closes. Instead, IE11 launches
    a new instance of IE (not just a tab, but a whole new instance) and loads the parent frame in it.
    The problem seems to be caused by broken frame name targeting mechanism in IE11.
    Note that we force IE to compatibility mode 5, but even without specifying any compatibility, the problem remains.
    Typical java script to reproduce this is:
    <input type="button" onClick="Popup(this.form);" name="btn2" value="Popup Dialog">
    function Popup(f){
        window.open("","MyNewDialogName","width=200,height=150");
        f.action = "page3.asp";
        f.target = "MyNewDialogName";
        f.submit();
    Expected: IE11 should correctly post form to and load targeted page in the newly popped up dialog, without opening new IE instance and new tab. Repeatedly posting form to existing popup window should reuse that window, not keep on launching more popup windows
    and then more IE instances.
    Steps to reproduce the problem (include URL if applicable):
    URL with sample page: http://173.231.98.44/cgi/TestFolder/page2.asp
    1) Create page1.htm: <html><body>display "I'm in a popup window now ..."</body></html>
    2) Create page2.htm with a button and onclick() event calling function to open dialog, and do form POST targeting new dialog calling page1.htm, like below.
    <input type="button" onClick="Popup(this.form);" name="btn2" value="Popup Dialog"> function Popup(f){
        window.open("","MyNewDialogName","width=200,height=150");
        f.action = "page1.asp";
        f.target = "MyNewDialogName";
        f.submit();
    3) Open IE11, navigate to page2.htm, click the "Popup Dialog" dialog button. IE 11 will popup the new dialog, but then it will also launch new instance of IE11 and display the page1.htm in it, instead of in the popup dialog.
    Has anyone else encountered this problem?
    Any insight or help is appreciated.
    Regards
    Peter

    the default action of <input type="button" is submit. Note also that the default type of <button> elements is 'submit' also.
    add a return false to the onclick inline event handler (which constructs the form submit attribues) to cancel the default form.submit behavior.
    form elements have a target value with which you can specify the name window into which you want the form to open in.
    <form action="process.aspx" target="popup">
    you can use the window.open method with a query uri to achieve the same outcome.
    window.open('process.aspx?s=search+term&amp;foo=bar','popup',{features})
    the outcomes of all scripted windows are affected by
    your IE Popup blocker and tabbed browsing settings
    which in turn is affected by your IE Security zone settings (for popup blocking handling)
    and the settings of any third-party popup blocker you may have installed and enabled... it may not necessarily be visible on your browser toolbar.
    The first step in troubleshooting web browser issues is to test in no-addons mode.
    Use the Developer Tool to find out what documentMode the test page is opening in on your system. On Modal/Modeless popup windows use the f12 key to display the Developer tool positioned on the contentWindow.
    Use File>Properties to find out what IE Security zone it maps to... there is a security setting to prevent navigation into zones of lower integrity.
    Rob^_^

  • Unable to post FR50 (Original Budget) for New Fund Center

    Dear All,
    We are in ECC6.0 and using Former Budgeting, Our business team created a new fund center and assigned it to cost center in the derivation rule.
    Before they granted original budget using FR50, the business users started posting various invoices, expenses, POs, PRs against the cost center accordingly the Available Budget became Negative.
    Now they are trying to post Original Budget for the new fundcenter using FR50, however system gives an error saying Payment Budget exceeded.
    Please advice how to grant budget in such situations, we had an alternative to reverse all commitments and actuals posted against the fundcenter and grant budget, this worked in our test environment. However in Production we will not be able to do this due to too much volume already posted.
    Is there a way to fix this, note that Availability control is active and not sure why system allowed to post without budget.
    Any pointers, is this how standard SAP behaves or are we missing something.
    We have also checked on master data elements of commitment item/fundcenter.. everythign looks fine.
    request your inputs.
    regards
    Diwakar

    Hi,
    I believe you are using Former Budgeting. Please check below if this is not the cause for your issue:
    Please check the following customizing that you have done in your system:
    SPRO -> Public Sector Management -> Funds Management Government -> Former Budgeting -> Availability Control -> Define Parameters for Availability Control
    See if you have set the flag: Check on lowest budget object with budget in your customizing.
    Please check the documentation about this flag, specially this part:
    "If you do not set the indicator, availability control runs against the first budget object, even if it has received NO BUDGET. This is the setting in the system as delivered."
    You can check also report BPINDAN2_NEW.
    This means that the budget is going to be checked in the first object with budget in your budget hierarchy.
    If this is your case, you have only two options:
    1.- Remove the negative budget you have in the combination of funds center/commitment item.
    2.- Add the Combination funds center/commitment item to the exemption list of AVC.
    I will prefer that you do the first option, as for me sounds strange to have negative budget, but this is one decision that you need to discuss it internally in your company.
    If you choose any of the 2 options above, please do not forget to reconstruct your budget and assigned values AFTER you have done one of the options above, with the following transactions (in this order):
    1.- Run transaction FMBV in order to reconstruct Budget values.
    2.- Run report RFFMRC04 in Test mode in order to check if there is still some inconsistency.
    3.- If RFFMRC04 shows inconsistencies, then run this report in Update Mode.
    4.- Reconstruct distributed values with transaction FM9P
    5.- Reconstruct Total values with transaction FM9Q
    6.- Reconstruct assigned values with FMBV again.
    I hope this helps.
    Best Regards,
    Vanessa.

  • Question on why Class is not being called by POST Form action

    Hello I am trying to use JavaMail and send an email to myself for a test through a JSP form. I have this line in my jsp code
    <form name="emailSendForm" action="servlet/EmailServlet/NewEmail.class" METHOD="POST" >Then this is my doPost method
    public void doPost (HttpServletRequest request, HttpServletResponse response)
      throws ServletException, IOException {
      System.out.println("Hello we are in the New Mail");
      HttpSession session = request.getSession (false);However, nothing happens when I hit my submit button. Even my system.out message is not even appearing. I am missing a piece of code? Thanks

    Where are you storing the .class file? I'm getting the idea that you are not storing it inside the WEB-INF/classes directory but in the web root like you would a JSP.
    Servlets don't work that way. I'll illustrate an example setup.
    Say I have a servlet called NewEmail and it is in the package servlet.email.
    step 1: make sure the servlet .class file is stored in the proper directory. This is webapproot/WEB-INF/classes/servlet/email/NewEmail.class. The directory structure inside the WEB-INF/classes directory matches the package of the servlet (this directory is part of the classpath of your web application).
    step 2: define the servlet in the WEB-INF/web.xml file of your web application. If you don't do this you cannot invoke the servlet.
    <servlet>
    <servlet-name>NewEmail</servlet-name>
    <servlet-class>servlet.email.NewEmail</servlet>
    </servlet>
    <servlet-mapping>
    <servlet-name>NewEmail</servlet-name>
    <url-pattern>/NewEmail</url-pattern>
    </servlet-mapping>The url-pattern defines how you will be invoking your servlet through the web. NewEmail means that you can submit to "NewEmail" or call the servlet as http://yourwebsite.com/NewEmail.
    Step 3: put the right URL in your form
    <form name="emailSendForm" action="NewEmail" method="post">
    </form>Again, check that the action attribute matches the url-pattern without the slash in front of it.
    That should do it! Unless I made a typo somewhere of course.
    Note by the way that System.out.println is NOT going to send anything to the browser, but most likely to a logfile kept by the webserver. You need to send data using the response object to make it appear in the browser.

  • Open a new url in  same  window

    I am displayed a button using web dynpro abap,
    if i click the button means a new url page should be
    opened in the same window.
    I did the application but when i click the button means
    a new window is opened.It should not be happened.
    Anyone can plz send me the correct coding immediately....

    >
    cranjith kumar wrote:
    > I am displayed a button using web dynpro abap,
    > if i click the button means a new url page should be
    > opened in the same window.
    >
    > I did the application but when i click the button means
    > a new window is opened.It should not be happened.
    >
    > Anyone can plz send me the correct coding immediately....
    First of all how is anyone supposed to help you correct your coding when you have posted any.  We can't possibly know what is going on inside the event handler for your button. I suggest that post some of your coding here.  In general if you want to open another URL in the same page without using the linkToURL UI element, you should consider the usage of Exit Plugs:
    [http://help.sap.com/saphelp_nw70/helpdata/EN/45/1bc575ba064574e10000000a114a6b/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/EN/45/1bc575ba064574e10000000a114a6b/frameset.htm]
    Second, please don't ask people to do something "immediately".  Everything done in the forum is on a volunteer basis and people help out as fast as possible.  Your prompting for immediate action is quite unnecessary and could be considered somewhat rude.

  • Minefield just would not open pages, whatever I tries to type in the addressbar the URL just stayed there and nothing happened. Even if I opened a new tab and put a new url again it did not even start loading the page. This is happening since the last upd

    Minefield just would not open pages, whatever I tries to type in the addressbar the URL just stayed there and nothing happened. Even if I opened a new tab and put a new url again it did not even start loading the page. This is happening since the last updates from today or yesterday. I already removed minefield and installed it again
    == This happened ==
    Every time Firefox opened
    == today ==
    == User Agent ==
    Mozilla/5.0 (Windows; Windows NT 5.2; Win64; x64; rv:2.0b3pre) Gecko/20100728 Minefield/4.0b3pre ( .NET CLR 3.5.30729; .NET4.0E)

    Create a new profile as a test to check if your current profile is causing the problems
    See [[Basic Troubleshooting|#Make_a_new_profile|Basic Troubleshooting: Make a new profile]]
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins"
    If that new profile works then you can transfer some files from the old profile to that new profile (be careful not to copy corrupted files)
    See http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
    See also http://kb.mozillazine.org/Browser_will_not_start_up
    You can discuss issues with Namoroka 3.6 and Minefield 4.0 nightly and alpha/beta builds at the MozillaZine Firefox Builds forum.
    That forum is better suited to discuss such issues.
    You need to register on the MozillaZine forum site in order to post at that forum.
    See http://forums.mozillazine.org/viewforum.php?f=23

  • How can I use the POST form in defining a SAMLCredentialMapperV2

    Hi,
    I am trying to configure the SAMLCredentialMapperV2 in our WebLogic Portal 10.3.2. There is a parameter called "POST form -
    The POST form used with this SAML Relying Party". Can anyone give me a hint of how I can use this form parameter, where I have to deploy this form
    and where can I find documentation about those parameters.
    Any help would be appreciated.
    Best Regards
    Edmund

    As far as i remember his parameter was optional
    http://www.oracle.com/technology/pub/articles/dev2arch/2006/12/sso-with-saml.html is probably a better article, dont know if has any updates since this was written for 9.2

  • Open new URL in same window

    Hi all,
    I am using "linktourl"  element for open a new url page.
    This is done by reference property(opens in new window).
    My need is to open the New URL in same window instead
    of new......
    Anyone can help me plz and send the codings.....

    I think this is double posting.....please close one thread
    [link|open new URL page in same window;

  • I want to disable some of the check boxes on gl post form

    I am looking for form personalization that will disable the option to post some of the journal in GL Post form.
    The problem is that I managed to catch the new record event, this is operated only if the user chooses the line.
    But the user is standing on line 3 and checking line 1 2 and 4 .

    By searching for your answer in the forum.
    Rob

  • Where to add code to populate form parameters in forms 6i?

    Hi everyone!!
    I have the following scenario:
    I have a form that has a button that takes the user to a new window which too contains a button to take the user to the third window. In the third window i have two t lists that show the database values for the selection that user has made (say selecting from and to destinations). Now i invoke two different windows using two buttons in the third window that contain shuttles and the user makes his selection there using the four shuttle buttons.
    In the when button pressed trigger of the buttons that show the shuttle windows, i create record groups and populate the shuttles with the selected and available destinations on the right and left sides of shuttle respectively. Now when the user first comes to the form the shuttles display the selected and available destinations on its two sides correctly, but if the user makes some more selections, closes the shuttle windows and again goes to the shuttle windows, his selection's gone as i have the code to populate the shuttles on when button pressed.
    to get rid of it i'm thinking of adding form parameters that'll contain 1 if the user has navigated to the shuttle windows and 2 if he hasent navigated yet or in other words after opening the form he's yet to use shuttles. now i plan to use the parameters to handle the population of the shuttles. if the parameter value is 2 only then i'll use the code that populates the shuttles using record groups.
    Now my question's where should i initialize the parameters i.e. in which trigger. How about WHEN-NEW-FORM-INSTANCE?
    Will appreciate your thoughts on it.
    Thanks,
    Abhishek.

    Neways if at all i need to achieve (just for curiosity) the same thing which trigger should i put the code for the same?

  • Mod_plsql: /pls/apex/f HTTP-400 Missing '=' in query string or post form

    This is the message when I click the logout button. It destroys the session though. It should redirect to login page after clicking logout button.
    We are on Apex 4.1
    Bad Request
    Your browser sent a request that this server could not understand.
    mod_plsql: /pls/apex/f HTTP-400 Missing '=' in query string or post form
    Oracle-Application-Server-10g/10.1.2.2.0 Oracle-HTTP-Server Server at xxxx.xxxxx.edu Port 443
    Edited by: 965704 on Oct 30, 2012 11:42 AM

    It has been fixed but the new problem is: After signout, if I move back to previous page and click some link using <- sign then I suppose to get the login page, but i am getting
         ORA-44004: invalid qualified SQL name error message.
    The source for my login page is
    wwv_flow_custom_auth_std.login(
    P_UNAME => :P101_USERNAME,
    P_PASSWORD => :P101_PASSWORD,
    P_SESSION_ID => v('APP_SESSION'),
    P_FLOW_PAGE => :APP_ID||':1'
    );

  • How to convert existing url to  a new url for crystal reports on server

    Post Author: Ashton Kutcher
    CA Forum: General
    Hi folks,
              I have crystal reports  on the webserver and it has a url  http://myserver/legal/viewreport.csp?website=legal_website&report=Budget%20Group%20Costs&toolbar=110101&@Year=" + Year "&@BudgetGroup=" BudgetGroup, 'newwindow', config='toolbar=no, menubar=no, scrollbars=no, resizable=yes,location=no, directories=no, status=no')
    I need to convert it to a new url like this  http://myserver/businessobjects/enterprise115/InfoView/scripts/openDocument.aspx?sDocname= Budget%20Group%20Costs&sPath=legal_website&toolbar=110101&lsS@Year=" + Year "&@BudgetGroup=" BudgetGroup, 'newwindow', config='toolbar=no, menubar=no, scrollbars=no, resizable=yes,location=no, directories=no, status=no')
    please help me out how should I convert the old exisiting url to a new url??

    Hi,
    You can try using "goLiink" and then use the property targetFrame set to "_blank"; below are some for ur references:
    targetFrame          
    _blank: The link opens the document in a new window.
    _parent: The link opens the document in the window of the parent. For example, if the link appeared in a dialog window, the resulting page would render in the parent window.
    _self: The link opens the document in the same page or region.
    _top: The link opens the document in a full window, replacing the entire page.
    Thanks,
    Pandu

Maybe you are looking for

  • Password Protection for pdf file

    Hi Gurus,   Wish u happy new year    Is there any possibility for giving the password for the pdf file from SAP so that it should be password enabled. Now am able to send the pdf file  attachment through mail. But my requirement is I have to give the

  • Report to screen

    Anybody can help ? I send a report to screen and I want to turn off the print button and the menu file. How can I do it ? what parameter should I pass ? Thank.

  • In ID CS5 SDK, where are those Preflight and Package go?

    In ID CS5, there are no longer "IPreflightSrcData.h", "IS4SPPackage.h", etc, How am I going to DoPreflight(), SetHiddenLayersFlag(false), etc? Anyone knew? Moreover, when I do Package on CS5 doc with missing font and links by using ID CS5 interface f

  • Infopath Forms Not Opening in Broweser - Problem not organization wide, just one user

    I have a browser enabled, Infopath 2010 form that has been in production in Sharepoint for a couple of years now.  The form is a browser enabled form but it keeps opening in the Infopath client when the forms are opened via Sharepoint.  As far as I k

  • Can I disable Fill & Sign toolbar?

    The latest 11.0.09 release of Reader by default opens the Fill & Sign toolbar on any PDF with fillable forms.  My web application makes heavy use of embedded PDFs and fillable forms, but I do not want the toolbar to appear.  I cannot seem to find any