UIX form destination attribute dropping URL parameters

I have a uix form with destination being a url with parameters. When this uix form tag is resolved and the form is rendered on the client browser, the parameters are not included in the action attribute of the form tag.
For example, if the uix form tag is
<uix:form destination="http://<host>:<port>/ctx/abc.jsp?remote_user=tuser" name="frm_sample" onSubmit="frm_submit()" >
it gets resolved to
<form name="frm_sample" id="frm_sample" method="GET" action="http://<host>:<port>/ctx/abc.jsp">
In the resolved form tag, the url parameter remote_user is missing. Can anybody tell me why is this happening?
I have tried encoding the url with response.encodeURL(), but to no avail.
Any pointers in resolving this will be highly helpful.
Shashi

I have a uix form with destination being a url with parameters. When this uix form tag is resolved and the form is rendered on the client browser, the parameters are not included in the action attribute of the form tag.
For example, if the uix form tag is
<uix:form destination="http://<host>:<port>/ctx/abc.jsp?remote_user=tuser" name="frm_sample" onSubmit="frm_submit()" >
it gets resolved to
<form name="frm_sample" id="frm_sample" method="GET" action="http://<host>:<port>/ctx/abc.jsp">
In the resolved form tag, the url parameter remote_user is missing. Can anybody tell me why is this happening?
I have tried encoding the url with response.encodeURL(), but to no avail.
Any pointers in resolving this will be highly helpful.
Shashi

Similar Messages

  • Error using XI HTTP adapter specific message attribute URL parameters

    Hi XI gurus, in our XI 7.0 SPS11,
    we have problem using URL parameters of plain HTTP receiver adapter.
    If I set Adapter specific message Properties in communication channel and activate switch for Apply URL parameters (using Parameter 1 to 5) filling them using message mapping, we have no effect; instead we have error "Dynamic Header - Missing Message Attributes: Fields/Parameters".
    We carried out this test:
    1. not using adapter specific message attribute and setting
    a static URL target with fixed parameters it runs correctly.
    2. using adapter specific message attribute for target
    URL and URL parameters both doesn't runs correctly.
    3. using adapter specific message attribute only for target
    URL doesn't run correctly.
    These attribute key used for URL parameters:
    URLParamOne
    URLParamTwo
    URLParamThree
    URLParamFour
    URLParamFive
    Namespace: http://sap.com/xi/XI/System/HTTP
    Can you solve this issue? Are there oss notes, corrections, ...
    Thanks in advance.
    Marco Tricase

    Some other test done with TCP gateway.
    Activated adapter specific message properties for
    *URL
    *HTTP Header fields (one header field named "lisca")
    *URL Parameters (one param named "objectType")
    The HTTP message catched by TCP Gateway
    POST /csl/cslinker HTTP/1.0
    content-type: text/xml; charset=UTF-8
    content-length: 318
    connection: close
    accept: /
    user-agent: SAP Web Application Server (1.0;700)
    host: 10.10.43.94:54000
    accept-encoding: gzip
    <?xml version="1.0" encoding="UTF-8"?>
    seems nothing has been generated, and obviusly URL and params have been set in message mapping.
    Hope some guru has been solved the issue ...
    Pasquale Rossiello

  • Should I use the .do or .uix file as the destination attribute on a link?

    Good Morning all,
    What is the difference in using the .do action file or the .uix file as the destination attribute on a link? Is one preferred over the other? Any clairification would be helpful.
    Thank you

    I've spent considerable time on this myself but from the perspective of a GO vs. a link. Why the difference and what do we gain?
    You really need to understand Struts. I am just beginning to. The stuff that comes with 10g on Struts is the tip of the iceberg. I picked up an O'Reilly book (Jakarta Struts) which actually addresses why one should use an action reference vs a direct link to a page (UIX JSP or otherwise). There are many other useful discussions on the MVC and Struts' place in it.
    Briefly, a link to a UIX page bypasses the controller aspect of Struts and you forfeit the opportunity for extensions/customizations etc and basically violate the MVC blueprint (See sun.com).
    My issue was why do I have to do a DataAction and a forward (as all the Oracle collateral would have you do)when I just need to go directly to a page?
    Struts has a class (org.apache.struts.actions.forwardAction) that allows you to do just that without violating the MVC rules and without having to create all the extra actions and forwards when you just want to go to a page without a DataAction.
    Get the book, well worth the $ vs the frustration.
    Hope this helps somewhat.
    Tom

  • Using URL Parameters in a PDF Form

    I built a form in LiveCycle Designer ES and I would like a couple of fields auto populated. The only way I could see doing this without having to purchase the LiveCycle Forms Server or another solution, is to embed the information in the URL.
    I found a blog post about it on Stefan Cameron's blog:  http://forms.stefcameron.com/2006/10/20/using-url-requests-in-pdf-forms/
    I was able to get this to work, but when I try to allow the user to save their form locally, the form information get cleared when they try to reopen it.
    I searched the NET and really couldn't find anything related to my problem.
    Does anyone have an idea about this or should I be looking at a different solution?
    Thanks,
    James

    I think that I was able to resolve this issue myself.  After opening the PDF with URL parameters, you need to manually enter data into a field before saving. After manually entering data in a field and saving, the form contains all of the data.

  • Problem with URL parameters& Forms

    First off, this is a school assignment so I am not looking for code, just suggestions. I e-mailed my prof, but she hasn't gotten back to me.
    I have a nim program, that game where you pick matches up till someone picks up the last match wins. I need to change the program so that it accepts a variable integer to change the starting number of matches. I opted to use a form, but this has gotten me into some trouble. My prof. used url parameters to determine who should go first, the human or the computer.
    Basically, I need to submit the variable in order to post the number, but I also need to redirect depending on who goes first.
    This is what she did with the URLS:
        [<a href="<%=root%>/StartServlet?first=computer">Computer</a> (that's me!)]
        [<a href="<%=root%>/StartServlet?first=human">Human</a>]My form is just a simple, standard form at the moment:
        <form name="input" action="<%=firstMover%>" method="post">
            <input type="text" name="matches">
            <input type="submit" value="Submit" name="Submit" />
        </form>Variable Retrieval:
            match= request.getParameter("matches");
            matchCount= Integer.parseInt(match);There is a lot of code associated with this program. So if you need more please just ask.
    Any suggestions are greatly appreciated as I have no idea...

    That might work, but I need to allow the user to choose who goes first, computer or human. I'm not sure if I can do that with a hidden form. (Maybe I am just not seeing it the way you are.) Also, she analyzes whether the person chose computer or human first in the startservlet class. It looks like she parses the URL there and grabs the parameters.
    Your suggestion gave me an idea... but I can't get the program to recognize my variable. I don't think I am sending it to the right place.
    Form:
    <form name="input" action="<%=root%>/StartServlet?" method="post">
            <input type="text" name="matches">
            <select name="firstMove">
                <option value="Computer" checked>Computer</option>
                <option value="Human">Human</option>
            </select>
            <input type="submit" value="Submit" name="Submit" />
        </form>    My request of parameters:
    public class StartServlet extends HttpServlet {
        /** Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
        * @param request servlet request
        * @param response servlet response
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            String match= request.getParameter("matches");
            int matchCount= Integer.parseInt(match);
            Nim nim = new Nim(matchCount);
            HttpSession session = request.getSession();
            session.setAttribute("nim", nim);
            String first=request.getParameter("firstMove");
            if ("computer".equals(first)) {
                try {
                    nim.machinePlay();
                } catch(NimException e) {}
            }

  • Using URL Parameters with HTTP Comms Channel

    Hi,
    I need to build a new interface (HTTP - RFC) which will use several URL parameters. I've created a HTTP communications channel and Sender Service and this works. I'm able to define several URL Parameters by checking 'Adapter-Sepcific Message Attributes' and then 'Apply URL Parameters' then specifying the individual parameters.
    This is straight forward so far but in usual SAP fashion the documentation on HTTP Comms Channels and URL Parameters is non existent. My question is how do I use these parameters once they are passed. I need to use the values as input parameters for the RFC which means I'll need to map these in the Integration Repository I can't find anything on SDN or SAP help that answers the question.
    I know I could include these values in the XML payload but that would mean my 'customer' would need to amend their application and I'd rather keep things as they are.
    Looking forward to your replies.
    Thanks in advance.

    May be this could help you to refference . .
    For each process template, you can define interactive or composite form reference objects that can optionally be executed at runtime.
    To be able to see and execute the reference object at runtime, you must add an appropriate runtime view.
    Prerequisites
    You can only attach standalone interactive forms to a process. For more information, see Interactive Form Types.
    Activities
    To attach an interactive form to a process:
           1.      Open the gallery and select a process template. To open its design time, choose Open…
           2.      To switch to edit mode, choose  (Edit).
           3.      Open the Forms tab page.
           4.      Choose Add and select the type of reference object you want to add. You can choose between Callable Object and Development Object.
    Browse and select the reference object, and choose Add once again.
           5.      Repeat step 4 to add more objects.
           6.      To define parameter mapping, select an entry and choose Map Parameters. Select a parameter from the left-hand table, and then select the parameter you want to map from the right-hand table. This groups the input parameters of the form reference object to the relevant input parameters of the process.
    If the process does not define input parameters, you can set default values.
           7.      When you have defined the required mappings, choose Done.
           8.      Whenever a newer version of the form reference object is available, its status on the Forms tab page changes to  (Deprecated). To update the object, select it from the list and choose Update. The status changes to  (Active).
    Parameter mapping is preserved unless the parameters of the new object version are different. In this case, you need to define mappings again.
           9.      Finally, choose  (Save).

  • Deleting URL Parameters

    Hey,
    I have a number of drill-down pages that pass URL parameters
    to get the relevant detail for the previous page. The only trouble
    is this leads to a long URL path of parameters. Is there any way I
    can remove them as you drill down?

    kliq316 wrote:
    > Here's the code: (I can't leave it as it is, as when i
    submit an update record
    > to diverts to the summary page, still carrying the
    addressID, so if you click
    > on another ID it doesn't work).
    >
    > It's the lngAddressID that I don't want to carry over.
    The code you supplied isn't being used in passing along the
    query string that you are trying to work around. However, by
    stating that you're using an update record, I believe that the
    built in Dreamweaver Update (and Insert) Server Behavior will pass
    along the query string of the current page. If you are using the
    Dreamweaver Update Server Behavior, then in the code, you will have
    something similar to the following:
    ' append the query string to the redirect URL
    Dim MM_editRedirectUrl
    MM_editRedirectUrl = "summary.asp"
    If (Request.QueryString <> "") Then
    If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0)
    Then
    MM_editRedirectUrl = MM_editRedirectUrl & "?" &
    Request.QueryString
    Else
    MM_editRedirectUrl = MM_editRedirectUrl & "&" &
    Request.QueryString
    End If
    End If
    Response.Redirect(MM_editRedirectUrl)
    If you comment out using a single quote at the beginning of
    the :
    MM_editRedirectUrl = MM_editRedirectUrl & "?" &
    Request.QueryString
    and:
    MM_editRedirectUrl = MM_editRedirectUrl & "&" &
    Request.QueryString
    Then that will cause the Query String to not be passed along.
    Making this edit may cause the Update Record to disappear from the
    Server Behaviors panel, so you'd have to remember to undo that
    change when you want to make edits to the Update Record settings
    (such as adding a new field to be updated) and then re-comment out
    those lines.
    Or you can take a look at the opening tag of your form, it
    should look similar to:
    <form action="<%=MM_editAction%>" method="POST"
    name="form1" id="form1">
    Notice the action attribute, if you make the action empty:
    action="" the it may be that the query string won't be passed along
    after the Update occurs. Doing this will cause the Update record
    appear with a red exclamation mark. Making any edits to the Update
    Record will reapply the action value, so you'll need to remember to
    remove it after edits.
    This second option may be a little better than the commenting
    out solution mentioned above as it only adds the exclamation mark
    rather than disappearing from the Server Behaviors panel entirely,
    but both will require attention if you ever make any edits to the
    Server Behavior.
    PS: Make sure you read through ( and understand) all of the
    code that Dreamweaver applies to your page so that you can make
    modifications when you need to do something more (or different)
    than the stock code.
    Danilo Celic
    |
    http://blog.extensioneering.com/
    | WebAssist Extensioneer
    | Adobe Community Expert

  • Linking form and report and passing parameters

    Is it possible to call a link with parameter from form to report? Let's say I have a form based on EMP table and when user clicks on DEPT_ID label I want to pass DEPT_ID as a parameter to a report showing detailed information about this department. All my attempts to do it were unsuccessful.
    I've seen many questions like this in this thread and most answers refer to Portal FAQ document but there is NO information there on linking form forms to reports and passing parameters between them.
    Any help will be greatly appreciated!
    Thanks.
    null

    This can be easily done. First open up two instances of your Portal. In one window, you will need to go into your component you wish to link FROM. In the other window you will need to go into your component you wish to link TO. In the component you wish to link TO there will be a moduleid. Note this somewhere. Then, you will see an area that says: "Call Interface: Show". Click on this. (In the window you are linking to.). In this window, you will see a bunch of stuff. At the bottom you will see a URL call. This is the call you need to use. At the top, it explains each piece of the URL call. Just subsitute YOUR appropriate information into the URL call. In the form you wish to link FROM, you will need to create a button. Just click on the green plus sign at the top of the screen (when in edit mode) and then declare it a button by using the Item Type drop down. Once you create this button, it will appear at the bottom, click on it and you will see an area to insert a Javascript. Click the onClick and insert:
    get_field_name = getField(this.form,'COLUMN_NAME_IN_DATABASE');
    window.open('/pls/cc_prod/DAD_NAME.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=MOD_ID_HERE&p_arg_names=_sessionid&p_arg_values=&p_arg_names=COLUMN_NAME_IN_DATABASE&p_arg values='+GETFIELD_NAME+'&p_arg_names=_COLUMN_NAME_IN_DATABASE_cond&p_arg_values=%3D');
    In the fourth tab, where it says, "....before displaying form" insert the following: (This will tell the form how to handle the getField function.)
    htp.p('<script language="JavaScript1.3">
    < !--
    function getField(form,fieldName)
    var objName = "";
    var tmp = "";
    var dAction = "";
    var sel_idx = 0;
    var cnt = 0;
    var instance = 0;
    var slicedName;
    var fillData = new Array();
    for (var i = 0; i < form.length; i++)
    slicedName = form.elements.name.split(".");
    tmp = slicedName[2];
    instance = parseInt(slicedName[3],10);
    if (!tmp)
    continue;
    objName = tmp;
    if (objName == fieldName)
    return form.elements[i].value;
    //-->
    </script>');
    I hope this helps.
    null

  • Overwrite URL parameters?

    I have a stateful BSP Application that is called with some URL parameters.
    https://bla.com/alias/default.htm?param1=value1
    On the default.htm, i call
    request->get_form_field( 'param1' )
    to read value1. This value is read in every request.
    My question: Can I overwrite param1 in the event handler of default.htm so that param1 has a different value in the following requests?

    hi,
    you can declare a page attribute with same name 'param1'.
    and then in event handling just change its value so it will pass the updated value next time.
    if it doesn't work,then add a hidden field in your page form say
    <input type=hidden name='param1'> and declare a page attribute with same name also 'param1'. this will change the value of input field in event handler and then the updated value will get passed in subsequent requests.
    hope this will work for you,
    Regards,
    Hemendra

  • How to pass a form value  as a url parameter??

    I have following form and I want to pass the selected value of the drop down choice in as one of the parameter in the URL. How can I do that ??
    something like proposalid that I have done in the url, I want to pass the selected value of the variable doc_id, when I click the Link button
    <form name = "link" method="POST" enctype="multipart/form-data" action="<%= request.getScheme() %>://<%= request.getServerName() %>/webAppCore/common/add_doc.jsp">
    <table>
         <tr> <td class="tableContent"> Doc Identifier: </td>
    <td class="tableContent"> <SELECT name="doc_id">
    <%
         Vector v = iddata.getDocumentIdList(tabName);
         //out.println(v);
         if (v != null && v.size() > 0) {
              for (int i = 0; i < v.size(); i++) {
              Hashtable hash = (Hashtable) v.elementAt(i);
    %>
    <OPTION selected name="id " value="<%=(String)hash.get("DOCUMENT_ID")%>"> <%=(String)hash.get("DOCUMENT_NAME")%></OPTION>
    <% } } else {%>
         <OPTION selected name="id " value="test"> No DocIDs</OPTION>
    <%}%>
    <tr> <td colspan = "2">
         <table border="1" width="200">
              <tr> <td> <input type="text" name="link_file" size="30" value=""/></td><td> <INPUT TYPE=button VALUE="Link..." onClick="window.open('<%= request.getScheme() %>://<%= request.getServerName() %>/webAppCore/common/link.jsp?proposalid=<%=proposalID>','mywindow','toolbar=no,location=no,directories=yes,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=400,height=300,left=20,top=20');"></td> </tr>
              <tr> <td colspan = "2">
                   To Create Links: <br>
                   * Select Doc Identifier
                   * Click on Link...to select file within eFile. <br>
                   * Click Add to create the Link <br>
              </td> </tr>
         </table>
         </tr>

    if - in your form declaration - you change your method to GET from POST, it will append the form data onto the URL string instead of putting it in the request header. For instance, if you have a form with an input called THE_INPUT, and you submit to a servlet (or script of some kind or whatever) when the value of that text box is "foo", the URL will be:
    http://www.yourdomain.com/yourservlet?THE_INPUT=foo
    But, if you use the POST method, the URL will just be:
    http://www.yourdomain.com/yourservlet
    Is that what you meant?

  • The Web Dynpro application was called up with the wrong URL parameters

    Hi all,
    I am using the systems below:
    ERP STACK :16
    EHP : 4
    EHP SP Stack :4
    EA-HR * : 604(SP12)
    SAP-HR * :604(SP12)
    XSS JAVA components : SAP ESS 603 SP05
    SAP MSS 600 SP16
    PCUI_GP 603 SP05
    Business Package : BP ERP05 ESS 1.41 SP04
    BP ERP05 MSS 1.41 SP04
    BP ERP05 COMMON PARTS 1.41 SP04
    I am getting below error after clicking on the appraisal document:
    App. Called Up Incorrectly
    The Web Dynpro application was called up with the wrong URL parameters.
    Note
    Enter the URL parameters and their use.
    You can find more information on the functions that you can perform in the catalog for appraisal templates in the Implementation Guide (IMG) for Objective Setting and Appraisals under Edit Forms.
    I already applied the below notes also:
    1468466 Performance Management Launchpad Configuration
    1463821 Performance Management Portal Configuration
    1416756 OBN Configuration in Performance Management
    1408243 Configuration for object-based navigation
    Plz advise me??
    Thanks,
    Anumit

    can you paste the exact error. also you can take a HTTP trace and see which resourse or UWL is being launched!

  • How to hide fields in UIX form

    Hi
    I need to update the table with last_updated_by and last_updated_date every time if any change to the record. But I do not want to show these 2 fields on the screen.
    Could you help me how to hide fields in UIX form/any procedure to insert the data to database with out placing them in the screen .
    Thanks in advance.
    NRK

    Now that you mention it ... the rendered flag will stop the field from being rendered. So it's not even in the page. Stupid me.
    Have a look at formValue. These are rendered, but invisible fields in a form. That should do it (hopefully).
    In prepareForDML() you could simply call the setter of your date attribute that stores the date of the last update. There you pass the current date, or you could fetch the sysdate from the database and pass that. If you go that way, then the EntityImpl could make these adjustments automatically when inserting or updating and you wouldn't even need these fields/bindings in your UIX page.
    Just check what the operation is, and if it's an update or insert then call the setters of the attributes you want to update. Then call super.prepareForDML(). Something like that.
    It all would happen in the middle-tier, client not involved.
    So formValue should work, and the prepareForDML() stuff should also work. Don't know which way you want to go.
    Sascha

  • Displaying the URL parameters in pdf file.

    Hello, I need help about using JavaScript with pdf file. I have an URL like this: http://www.a.org/mta/sigtr_mta.pdf?&rqst_id=8762312&inst=The+Jackson+Laboratory&pi=Dr.PI& 022008-UCD. Is there a way that I can extract the URL parameters (such as rqst_id or inst ) from JavaScript in this pdf and replace some form text field with the parameters and set these fields to read only.
    I appreciate any of your help or hint!

    this.URI(), I believe, will get you the complete URI that the document was opened from. Then you can parse it any way you'd like.
    Leonard

  • HTTP reciever adapter pass URL parameters

    Hello all,
    I have a question regarding passing parameters as querystring in the url of reiever HTTP adapter. This is an RFC> XI> HTTP scenario and we're posting to an external URL. Here are the details
    URL: xxxx.yyyyy.com
    Service Number: 80
    Path: /api/company_codes
    It works fine with these. I want to pass a parameter called "bulk" with value "1".
    How should I do it. Should I append it to the Path directly like
    Path: /api/company_codes?bulk=1
    or enable Apply URL Parameters under Adapter Specific MJessage Attributes and fill in
    Parameter 1 : bulk=1
    Could somebody clarify this please?
    Thanks
    Karthik

    Can anybody help wwith this please?
    Thanks
    Karthik

  • HTTP reciever adapter URL parameters

    Hello all,
    I have a question regarding passing parameters as querystring in the url of reiever HTTP adapter. This is an RFC> XI> HTTP scenario and we're posting to an external URL. Here are the details
    URL: xxxx.yyyyy.com
    Service Number: 80
    Path: /api/company_codes
    It works fine with these. I want to pass a parameter called "bulk" with value "1".
    How should I do it. Should I append it to the Path directly like
    Path: /api/company_codes?bulk=1
    or enable Apply URL Parameters under Adapter Specific MJessage Attributes and fill in
    Parameter 1 : bulk=1
    Could somebody clarify this please?
    Thanks
    Karthik

    When the parameter is fix, so apply it to the path.
    Regards
    Stefan

Maybe you are looking for

  • Issues with POWL action buttons and row selection after Support Packs

    We recently applied ECC 603 Support Stack 16 to our environment and are having problems with some SAP standard POWL lists (example is KYKOP-OPS-MM-PO-W: Purchase Orders for Goods Receipt).  In fact all of the POWL lists that we are using are behaving

  • How does labview detect end of file?

    Hello! My question is how labview detects the end of file at the Read from Spreadsheet File VI.  What I would like to do is basically to read from a  text file a number of numeric values and afterwards build an array containing these values. Till now

  • Disk Repair Concern

    Hello,should any of this be of concern after running "Verify Disk Permissions"I then Repair Disk Permissions and Verify Disk says seems to be o.k. but is it really? Warning: SUID file "System/Library/CoreServices/Finder.app/Contents/Resources/OwnerGr

  • Using VIDBOX NW03 (from Honest Technology) with Adobe Premiere Elements 3.02

    Can I find a driver for using the Honest Technology 's USB VIDBOX NW03 with Adobe Premiere video software? Because, the driver I've found on the installation CD is only for using the HT VIDBOX NW03 with VHS to DVD 3.0 Deluxe software. Naturally, I tr

  • Account reflection in balance sheet

    Hello everyone, We are implementing SAP Business One 2005 PL05. We are come across a problem, we have created few more bank accounts and respective chart of accounts. Once the payment transaction is done, the amount is not reflecting in the balance s