Setting form method to POST to hide URL using WWW_GET_REPORT with webrfc

I want to hide the URL details when running webrfc reports. The link contains information that we want to hide form the user.
Is there a way of setting the form method to POST rather than GET when running a report using webrfc function WWW_GET_REPORT.
Thank you
Karen

yes its possible.
for example, if you have a report with a selection screen parameter called abc .
(parameters: abc(10) .)
then the code would be
form method="POST" action="http://abaphost.domain.com:1080/sap/bc/webrfc?sap-client=001" >
input name="PARC_ABC" size= 10 maxlength= 10 >
input type=hidden name= _FUNCTION  size= 30  value= WWW_GET_REPORT >                                                                      
input type=hidden name= _REPORT  size= 30  value= Y_TEST_WEBRFC > 
  input type="submit" value="Execute report">    
  /form>
Regards
Raja

Similar Messages

  • Hide URL using srw.run_report

    I called a report from a form 10g using RUN_REPORT_OBJECT which hides url.
    Now i called a report with in report using srw.run_report which shows hole url in the browser.
    I want to hide url.

    Can I use this build it to run itself? I mean in your case run report A?
    our report is launched from servelet. because of some security issues, I would like to use this built in to change it to command line after user enter all the parameters through the parameter form.
    thanks.

  • Attaching URL using GOS with 2 key fields

    I found a program to attach URL using GOS. I tried the program using his sample Business object (BUS2012) and supplied a valid PO and the program works.
    When I use the program using business object BUS1505 (Real Estate Contract) and put a valid contract number, the program didn't attached the URL. When I check the business object, I found out that the key fields are 2, Company Code and Contract Number. With this, how can attach it to the program.
    Please help me on this. Thanks in advance.
    Report  Z_RMTIWARI_ATTACH_DOC_TO_BO
    Written By : Ram Manohar Tiwari
    Function   : We need to maintain links between Business Object and
                 the attachment.Attachment document is basiclally a
                 business object of type 'MESSAGE'.In order to maintain
                 links, first the attachment will be crated as Business
                 Object of type 'MESSAGE' using Message.Create method.
                 Need to check if we can also use FM
                 'SO_DOC_INSERT_WITH_ORIG_API1' or SO_OBJECT_INSERT rather
                 than using Message.Create method.
    REPORT  Z_RMTIWARI_ATTACH_DOC_TO_BO             .
    Include for BO macros
      INCLUDE : <cntn01>.
    Load class.
      CLASS CL_BINARY_RELATION definition load.
      CLASS CL_OBL_OBJECT      definition load.
    PARAMETERS:
    Object_a
       P_BOTYPE LIKE obl_s_pbor-typeid DEFAULT 'BUS1505', " e.g. 'BUS2012'
       P_BO_ID  LIKE OBL_S_PBOR-INSTID DEFAULT '0000010000273',    " Key e.g. PO No.
    Object_b
       P_DOCTY  LIKE obl_s_pbor-typeid DEFAULT 'MESSAGE' NO-DISPLAY,
       P_MSGTYP LIKE SOFM-DOCTP        DEFAULT 'URL'     NO-DISPLAY,
    Relationship
       P_RELTYP  LIKE mdoblrel-reltype DEFAULT 'URL'.
      types: BEGIN OF TY_MESSAGE_KEY,
              FOLTP   TYPE SO_FOL_TP,
              FOLYR   TYPE SO_FOL_YR,
              FOLNO   TYPE SO_FOL_NO,
              DOCTP   TYPE SO_DOC_TP,
              DOCYR   TYPE SO_DOC_YR,
              DOCNO   TYPE SO_DOC_NO,
              FORTP   TYPE SO_FOR_TP,
              FORYR   TYPE SO_FOR_YR,
              FORNO   TYPE SO_FOR_NO,
             END OF TY_MESSAGE_KEY.
      DATA : LV_MESSAGE_KEY type TY_MESSAGE_KEY.
      DATA : LO_MESSAGE type SWC_OBJECT.
      DATA : LT_DOC_CONTENT type standard table of SOLI-LINE with header
    line.
    First derive the Attachment's ( MESSAGE )document type.
      P_DOCTY = 'MESSAGE'.
      CASE P_RELTYP.
      In case of URls
        WHEN 'URL'.
           P_MSGTYP = 'URL'.
      In case of Notes / Private Notes
        WHEN 'NOTE' OR 'PNOT'.
           P_MSGTYP = 'RAW'.
        WHEN 'ATTA'.
           P_MSGTYP = 'EXT'.
      Not implemented as yet...exit
         EXIT.
        WHEN OTHERS.
       ....exit
         EXIT.
        ENDCASE.
    Create an initial instance of BO 'MESSAGE' - to call the
    instance-independent method 'Create'.
      swc_create_object LO_MESSAGE 'MESSAGE' LV_MESSAGE_KEY.
    define container to pass the parameter values to the method call
    in next step.
      swc_container LT_MESSAGE_CONTAINER.
    Populate container with parameters for method
      swc_set_element LT_MESSAGE_CONTAINER 'DOCUMENTTITLE' 'Title'.
      swc_set_element LT_MESSAGE_CONTAINER 'DOCUMENTLANGU' 'E'.
      swc_set_element LT_MESSAGE_CONTAINER 'NO_DIALOG'     'X'.
      swc_set_element LT_MESSAGE_CONTAINER 'DOCUMENTNAME' P_DOCTY.
      swc_set_element LT_MESSAGE_CONTAINER 'DOCUMENTTYPE'   P_MSGTYP.
    'DocumentContent' is a multi-line element ( itab ).
    In case of URLs..it should be concatenated with &KEY& in the begining.
      CASE P_MSGTYP.
        WHEN 'URL'.
          LT_DOC_CONTENT = '&KEY&http://intranet.corpoff' .
          append LT_DOC_CONTENT.
    In case of Notes or Private Notes, get the data from files on appl
    server or from wherever(? - remember background).
         WHEN 'RAW'.
           LT_DOC_CONTENT = 'Hi How r u?' .
           append LT_DOC_CONTENT.
    In case of File attachments
         WHEN 'EXT'.
          Upload the file contents using open dataset in lt_doc_content .
          Some conversion ( Compress ) might be required.
          Not sure at this point
      ENDCASE.
      swc_set_element LT_MESSAGE_CONTAINER 'DocumentContent' LT_DOC_CONTENT.
      swc_call_method LO_MESSAGE 'CREATE' LT_MESSAGE_CONTAINER.
    Refresh to get the reference of create 'MESSAGE' object for attachment
      swc_refresh_object LO_MESSAGE.
    Get Key of new object
      swc_get_object_key LO_MESSAGE LV_MESSAGE_KEY.
    Now we have attachment as a business object instance. We can now
    attach it to our main business object instance.
    Create main BO object_a
      data: LO_IS_OBJECT_A type SIBFLPORB.
      LO_IS_OBJECT_A-INSTID = P_BO_ID.
      LO_IS_OBJECT_A-TYPEID = P_BOTYPE.
      LO_IS_OBJECT_A-CATID  = 'BO'.
    Create attachment BO object_b
      data: LO_IS_OBJECT_B type SIBFLPORB.
      LO_IS_OBJECT_B-INSTID = LV_MESSAGE_KEY.
      LO_IS_OBJECT_B-TYPEID = P_DOCTY.
      LO_IS_OBJECT_B-CATID  = 'BO'.
    *TRY.
    CALL METHOD CL_BINARY_RELATION=>CREATE_LINK
      EXPORTING
        IS_OBJECT_A            = LO_IS_OBJECT_A
       IP_LOGSYS_A            =
        IS_OBJECT_B            = LO_IS_OBJECT_B
       IP_LOGSYS_B            =
        IP_RELTYPE             = P_RELTYP
       IP_PROPNAM             =
       I_PROPERTY             =
    IMPORTING
       EP_LINK_ID             =
       EO_PROPERTY            =
    *CATCH CX_OBL_PARAMETER_ERROR .
    *CATCH CX_OBL_MODEL_ERROR .
    *CATCH CX_OBL_INTERNAL_ERROR .
    *ENDTRY.
    Check if everything OK...who cares!!
      commit work.

    HI
    You can look at object VBAP as an example.  It'sthe sales order item and has two keys - sales order number and item number. 
    the key was created:
    BEGIN OF KEY,
         SALESDOCUMENTNO LIKE VBAP-VBELN,
         ITEMNO LIKE VBAP-POSNR,
    END OF KEY,
         MATERIAL TYPE SWC_OBJECT,
         SALESDOCUMENT TYPE SWC_OBJECT,
         _VBAP LIKE VBAP.
    ND_DATA OBJECT. " Do not change.. DATA is generated
    Here is a object instantiation - just build the key with the two fields - then when you call the macro - you pass the one field that already has both keys in it.
    GET_PROPERTY SALESDOCUMENT CHANGING CONTAINER.
      SWC_CREATE_OBJECT
        OBJECT-SALESDOCUMENT 'VBAK' OBJECT-KEY-SALESDOCUMENTNO.
      SWC_SET_ELEMENT CONTAINER 'SalesDocument' OBJECT-SALESDOCUMENT.
    END_PROPERTY.

  • Post Moved Can-I-use-BTWiFi-with-FON-free-of-cha...

    Moved http://community.bt.com/t5/Other-BB-Queries/Can-I-use-BTWiFi-with-FON-free-of-charge-while-waiting-f...
    If you want to say thanks for a helpful answer,please click on the Ratings star on the left-hand side If the reply answers your question then please mark as ’Mark as Accepted Solution’

    JordanJJ12 wrote:
    I run multiple small online businesses and no internet for 4 weeks is a big issue for me.
    I doubt that BT would be swayed by that. This is what the residential broadband T&C say:
    You can click the white star next to this message if you think it was helpful.

  • Data is not refelct by Set_data method in post method of ME_PROCESS_PO_CUST

    Hi OO gurus,
    I'm calling Set_data method to set line item data of PO in POST method in ZME_PROCESS_PO_CUST.
    But data is not updating.
    Can any body give logic how to call set data method in POST method?
    Thanks in advance.
    Edited by: v bheem on Jan 27, 2010 12:51 PM

    Hi,
    Do like the below code...
    method IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM.
    DATA: re_data TYPE mepoitem.
    DATA: RE_HEADER TYPE MEPOHEADER.
    DATA: L_HEADER TYPE REF TO IF_PURCHASE_ORDER_MM.
    DATA: L_HEADDATA TYPE MEPOHEADER.
    CALL METHOD im_item->get_data
    RECEIVING
    RE_DATA = RE_DATA.
    L_HEADER = im_item->get_header( ).
    L_HEADDATA = L_HEADER->GET_DATA( ).
    next modify feilds  which you want to update of re_data and set values...
    CALL METHOD im_item->set_data
    EXPORTING
    IM_DATA = RE_DATA.
    Thanks,
    Shailaja Ainala.

  • How to specify warehouse in item object using set GL Method by Warehouse

    Hi all,
    </p>
    I have a sdk to import item master from excel using item object. In general setting, the default warehouse was not set. Therefore, when the program creates the item master, it will first set GL Method by Item Level in order to take in the warehouse code from the excel file and after the item master created, sdk will change the set GL Method from item level to warehouse using object cos customer wants item to manage by warehouse. This sdk was working fine until recently it upgraded to 2007 whereby the change of set GL Method is no longer available using object except thru B1 interface. 
    </p>
    Does anyone know any workaround?
    </p>
    The below is my sample coding.
    </p>
    <pre>
                Dim RetVal As Long
                Dim errCode As Long
                Dim errMsg As String
                Dim dr As System.Data.DataRow
                Dim objRows As DataRow() = dtHeader.Select
                If objRows.GetUpperBound(0) >= 0 Then
                    For Each objDataRow In objRows
                        oITM = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems)
                        oITM.ItemCode = objDataRow("Item")
                        oITM.ItemName = objDataRow("Descr")
                        oITM.ItemType = SAPbobsCOM.ItemTypeEnum.itItems
                        oITM.ItemsGroupCode = objDataRow("ItmGrp")
                        oITM.IssueMethod = objDataRow("IssMthd")
                        oITM.SalesItem = objDataRow("SlsItem")
                        oITM.InventoryItem = objDataRow("InvItem")
                        oITM.PurchaseItem = objDataRow("PurItem")
                        oITM.ManageSerialNumbers = objDataRow("ManageSerial")
                        oITM.ManageBatchNumbers = objDataRow("ManageBatch")
                        oITM.CostAccountingMethod = SAPbobsCOM.BoInventorySystem.bis_FIFO
                        oITM.ManageStockByWarehouse = SAPbobsCOM.BoYesNoEnum.tYES
                        oITM.InventoryUOM = objDataRow("InvUom")
                        oITM.PurchaseUnit = objDataRow("PurUom")
                        oITM.PurchaseItemsPerUnit = objDataRow("PerPurUnit")
                        oITM.SalesUnit = objDataRow("SlsUom")
                        oITM.SalesItemsPerUnit = objDataRow("PerSlsUnit")
                        oITM.ShipType = objDataRow("ShipTyp")
                        oITM.Properties(1) = objDataRow("StdPart")
                        oITM.Properties(2) = objDataRow("FabPart")
                        oITM.UserFields.Fields.Item("U_Materials").Value = objDataRow("Material")
                        oITM.UserFields.Fields.Item("U_Treatment").Value = objDataRow("Treatment")
                        oITM.UserFields.Fields.Item("U_ProdType").Value = objDataRow("PrdTyp")
                        If objDataRow("Manufacturer") <> String.Empty Then
                            oITM.Manufacturer = objDataRow("Manufacturer")
                        End If
                        oITM.GLMethod = SAPbobsCOM.BoGLMethods.glm_ItemLevel
                        'Get detail
                        Dim oRows As DataRow() = dtDetail.Select("LineNo = " & objDataRow("LineNo") & "")
                        If oRows.GetUpperBound(0) >= 0 Then
                            For Each dr In oRows
                                With oITM.WhsInfo
                                    .WarehouseCode = dr("Whs")
                                    .RevenuesAccount = "_SYS00000000209"
                                    .ExpensesAccount = "_SYS00000000003"
                                    .SalesCreditAcc = "_SYS00000000209"
                                    .PurchaseCreditAcc = "_SYS00000000003"
                                    .Add()
                                End With
                            Next
                        End If 'oRows
                        RetVal = oITM.Add()
                        'Check for error
                        If RetVal <> 0 Then
                            oCompany.GetLastError(errCode, errMsg)
                            Throw New Exception("[Import Item Master]: " & errCode & "-" & errMsg)
                        End If
                        'Change GLMethods from ItemLevel to Warehouse
                        If oITM.GetByKey(objDataRow("Item")) = True Then
                            oITM.GLMethod = SAPbobsCOM.BoGLMethods.glm_WH
                            If oITM.Update() <> 0 Then
                                oCompany.GetLastError(errCode, errMsg)
                                Throw New Exception("[Update Item Master]: " & errCode & "-" & errMsg)
                            End If
                        End If
                    Next
                End If 'objRows</pre>
    </p>
    Regards,</br>
    Cherine

    Hello,
    This code is working on 2007. What is the error message you get when you change the G/L method by WH?
    Try it to change in SAP B1 GUI  an item G/L Method tp WH which has been added via your code , I think settings of G/L Account is missing.....
    And check that the Addd all warehouse is not checked in the System Settings.
    Regards,
    J.

  • ERROR RENDERING PDF IN SERVLET WITH FORM method="post"

    Hello,
    we are trying to render a dinamic PDF document in a servlet building with XSL:FO apache or itext.
    The problem ocurs when we sending a Form data with method post, the output of the servlet is a blank page instead of the pdf document. Also if we send the form data with method "get" we can view the pdf document corretly.
    But we need to send amount information, and can?t use method get.
    Thank

    You can always use GET to send information by generating a dynamic URL in the query string (after the '?'). Granted, you don't want to send file data that way, but it will work for small numbers of arguments where privacy is not a concern.
    As to why you see the PDF in one instance and not another, I'm not sure. There is no difference from an HTTP standpoint. You sent a request, you are getting a response. The browser should treat the response the same, regardless of GET vs POST.
    Are you setting the content-type to application/pdf? Are you doing something fishy with Javascript? Do you have conditional logic in your code that fires on a POST but not on a GET that actually has a bug in it (since GET works but it was designed for POST)?
    - Saish
    "My karma ran over your dogma." - Anon

  • OC4J Form method="post" don't working

    Hello!
    I have a J2EE Application with Servlets and jsp's, with OC4J v.10.1.3 installed in my computer, with one page called index.jsp with this code:
    <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
    <%@page import="java.util.Enumeration"%>
    <%
    String auth = request.getHeader("Authorization");
    String usuario = "";
    if (auth == null) {
    response.setStatus(response.SC_UNAUTHORIZED);
    response.setHeader("WWW-Authenticate", "NTLM");
    return;
    if (auth.startsWith("NTLM ")) {
    byte[] msg =
    new sun.misc.BASE64Decoder().decodeBuffer(auth.substring(5));
    int off = 0, length, offset;
    if (msg[8] == 1) {
    off = 18;
    byte z = 0;
    byte[] msg1 =
    {(byte)'N', (byte)'T', (byte)'L', (byte)'M', (byte)'S',
    (byte)'S', (byte)'P', z,
    (byte)2, z, z, z, z, z, z, z,
    (byte)40, z, z, z, (byte)1, (byte)130, z, z,
    z, (byte)2, (byte)2, (byte)2, z, z, z, z, //
    z, z, z, z, z, z, z, z};
    response.setStatus(response.SC_UNAUTHORIZED);
    response.setHeader("WWW-Authenticate", "NTLM "
    + new sun.misc.BASE64Encoder().encodeBuffer(msg1).trim());
    return;
    else if (msg[8] == 3) {
    off = 30;
    length = msg[off+17]*256 + msg[off+16];
    offset = msg[off+19]*256 + msg[off+18];
    usuario = new String(msg, offset, length);
    //out.println(s + " ");
    else
    return;
    length = msg[off+1]*256 + msg[off];
    offset = msg[off+3]*256 + msg[off+2];
    usuario = new String(msg, offset, length);
    //out.println(s + " ");
    length = msg[off+9]*256 + msg[off+8];
    offset = msg[off+11]*256 + msg[off+10];
    usuario = new String(msg, offset, length);
    usuario = usuario.replaceAll(" ", "");
    usuario = usuario.trim();
    %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <script type="text/javascript">
         function enviarForm() {
              document.frmLogin.submit();
              return true;
    </script>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Mapfre Asistencia</title>
    </head>
    <body onload="javascript:enviarForm();return true">
    <form name="frmLogin" method="post" action="/mapfre_content/ConectorOCDB" enctype="application/x-www-form-urlencoded; charset=UTF-8">
    <%
         Enumeration num = request.getParameterNames();
         while (num.hasMoreElements()) {
              String param = (String) num.nextElement();
              String valor = request.getParameter(param);
              request.getSession().setAttribute(param, valor);
    %>
    <input type="hidden" name="<%=param%>" value="<%=valor%>"/>
    <% } %>
    <input type="hidden" name="user" value="<%=usuario%>"/>
    </form>
    </body>
    </html>
    The first part is to obtain the Windows username and last, the part to generate the form dinamically, because the number of parameters may vary, well, all works perfectly but when I send the form to the Servlet, the parameters value appears as NULL.
    Curiosly, the parameters arrives well if I change the form method to GET, ¿what's wrong with this code or with the server configuration?
    Thank You!!

    set the form to multipart/form-data (required for file uploads, as a little research could have told you) and use Apache FileUpload to parse the request.

  • Form method=post - Nevermind, I fixed it.

    I have a weird problem.
    If I make the form method=get, then everything works fine when I submit the form. However, when I make form method=post, I get this error message when I try to submit the form:
    Your request cannot be completed. The server got the following error:
    javax.servlet.jsp.JspTagException
    Does anyone have any idea why this would happen?
    Thanks for your time. Any help is greatly appreciated.
    Message was edited by:
    user449101

    Nevermind, I found my problem.

  • POST method not supported by this URL

    Hello gentlemen,
              We are trying to migrate our servlets from another Web Application
              Server (IBM WebSphere 2.02) to Weblogic 4.5.1.
              A servlet that did work fine with WebSphere, now produces the "POST
              method not supported by this URL" error under Weblogic.
              Of course, we implement doPost method in our servlet.
              Any idea to fix this problem? thank you.
              emanuele
              

              Emanuele--
              In the ICSessionServlet file you are posting the data to ICIdentification servlet which is
              again a servlet
              So you need to register this servlet in weblogic.properties file before you post something to
              this servlet.
              Also the way you are calling the servlet is totally wrong from weblogic standpoint
              You don't need to specify the package name in weblogic(this is OK in java web server) for e.g.
              icdoor.myservlet.session.ICIdentificationServlet.
              Because we are registering the servlet with full package name in properties file so we don't
              need to mention the package
              name here..
              Call the servlet in the following way or whichever way is suitable for you.
              Here is how i'm calling ICIdentificationServlet
              http://localhost:7001/ICIdentificationServlet
              Here is the output i'm getting after entering user name/password
              "Welcome Startfighter"
              Requested URL
              http://localhost:7001/Stupida
              Hope this helps
              Kumar
              emanuele wrote:
              > Here's the source code for a servlet producing "HTTP method POST is not
              > supported by this URL".
              >
              > I have registered servlet Stupida in the file weblogic.properties. This
              > servlet subclass the ICSessionServlet.
              > The service() method of ICSessionServlet ask for a userid and a password
              > (user and password are not verified, anyway) and then calls the doPost()
              > method of ICIdentification servlet. This one displays a sort of "Welcome
              > page" and then the calling URL. (if it works fine...).
              >
              > On WebSphere, it works. On Weblogic, it doesn't.
              >
              > Any idea?
              >
              > emanuele
              >
              > "Kumaraswamy A." wrote:
              >
              > > can you post the stacktrace , also if possible send your java file
              > > too!..
              >
              >
              

  • Error while posting xml file to URL using URLConnection

    Hello everyone,
    I am facing an issue from long time related to URLConnection. If this would be resolved by your help then I would be very grateful to you.
    One application which posts xml file to URL hangs and after waiting for 5 mins it throws 504 error:
    java.io.IOException: Server returned HTTP response code: 504 for URL: http:hostname.
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:715)
    Same application is running fine without error on another environment from last 5 years. But on another env it is erroring out from the day 1.
    We have many workarounds in place none worked.
    I tried to use HttpClient from apache but that too hanged at URLConnection.getInputStream() method call.
    App is running on iPlanet web server 6.1 using JDK 1.4.0_03
    We still dont know why this program hangs at that particular line in only one env but many times it runs fine. That means 30% of the times it posts xml file without error but 70% times it errors out. So our program logic is to retry until post is successful.
    Once this issue is resolved we will remove the logic of trying again and agian.
    Please provide inputs.
    Thanks,
    Nitin

    The HTTP response 504 means that the server, acting as a gateway, has not received a response from an upstream server in the time it expected.
    I think this is problem is due to the remote server that receives the XML and takes too long to return a response to the local application that posted the XML.
    Try HttpClient and set the timeout variable of the HttpClient instance used.
    Here http://svn.apache.org/viewvc/jakarta/commons/proper/httpclient/trunk/src/examples/PostXML.java?revision=480424&view=markup
    a Post XML sample.
    NB: HttpClient > setTimeout method is deprecated. See : http://jakarta.apache.org/commons/httpclient/apidocs/index.html for an alternative
    Hope That Helps

  • Hide URL in PDF output in hyperlink , Maintain History within reports

    hi
    i have some issues to discuss for report output in pdf format.
    we are using java application to call reports via AS 10g, my issue are
    1) Hide URL in PDF output for hyperlink created.(Using username/password in Key is not enough)
    2) Maintain history as i call second report from my parent report then i want to go back to parent report.(Note here go.history or history.go(-1) work in HTML output format but not in PDF)
    3)To Call Child PDF report in new window(here again working fine target="_blank" for HTML output but not for PDF)
    regards
    abid

    Hi Ram,
    Not sure if this is possible.
    However, one workaround might be the following:
    1. Write a javascript that submits the URL using, say a POST method, and does not show the parameters in the URL. You will have to write this javascript code in the "Before Report" Report Escape. For a generic example on how to use javascript in a report, see Metalink Note 125652.1. This note shows javascript to disable the right-click of the mouse on the report output.
    2. Use the Hyperlink peroperty of the report to call this javascript function, eg,
    javascript:myfunction('http://machine:port/reports/rwservlet?report=...+server=...+empno=&empno')
    I am not a javascript expert, so I cannot give you an example of the function, but I hope someone in your team can find out.
    Navneet.

  • URGENT-Dynamic News Application. Dynamic Servlet Change method to POST

    When I first logon to the Dynamic Servlet I get a form with USERNAME and PASSWORD and Categories and Subcategories to select with a "Create Profile" button. After enetering details I get the next html page which is the news detail page generated out of DynamicIE.xsl.
    The Form generated in DynamicServlet uses a defaullt method of GET to submit. I want to change it to POST and did it in the code but it does not work. After I changege the method to POST and I click the "Create Profile" button the next HTML with news detial is not displyed, it just displays the same HTML. I checked the syntax of POST looks fine. I followed the code, when the form is submitted RequestHandler.java reads the params and populates the Category,Subcategory and Types vectors and then the function servlethandler.sendDynamicHTML is called which in turn calls the applyXSLtoXML function. In this whole process I do not see why the next form is not generated when the method is POST and why it is displayed when the method is GET.
    I changed the methods to POST for the AdminServlet by making the changes in the Admin.xsl and it works fine.
    It is really confusing me as the logic of the code should not have any effect with the form submission method. Any quick help will be appreciated.

    We are passing the REQUEST_TYPE as part of the URL. If we use the POST method, those values are not able to catch from the java appalication. The servlet is written in such a way that based on different conditions we are displaying different pages. Since it is checking the value of REQUEST_TYPE there and not matching with the values, it ia again giving the same old page.

  • CF Set form.variable for query and Next/Previous pages error

    I have a CF form with a select that posts to a CF "action" page.
    On the action page I: CFSET ItemNumber=#form.ItemNumber#
    I CFOUTPUT the 'ItemNumber' into the CFQUERY (which is an Inner Join dependant on the '#ItemNumber#')...
    All of the above works just fine and displays the database fields in color alternating rows, per the rest of the code.
    Here's the problem:
    I'm displaying 40 rows on a page per "Next and Previous" code. (CFPARAM name="start" default="1" and CFPARAM name="disp" default="40" along with the rest of the NextN code in the header and body). This does display 40 rows on the page and puts a link at the bottom of the page "Next 40 Rows", etc.
    Note: I'm only querying the database once and using the query (query name="data") to populate the table rows And the NextN code (CFOUTPUT name="data") And (CFIF start + disp GREATER THAN data.RecordCount, etc)...
    The problem happens when you click the "Next 40 Rows" link to display the 2nd page of rows. Since (I'm assuming) this NextN code is 're-reading' the same page from top to bottom, an error is thrown when the code tries to read the CFSET ItemNumber=#form.ItemNumber# at the top of the page.
    With the #form.ItemNumber# on this action page Originally coming from the previous posting of the form to this action page, when the "Next 40 Rows" link is clicked and the NextN code re-reads this action page - the CFSET ItemNumber (#form.ItemNumber) is not getting populated and throws the error...
    I hope I've not made this sound confusing.
    I can get the NextN code to work when I'm just querying the database without "flying in" a form variable. But when I CFSET a variable (#form.ItemNumber#) that is inserted into the query, the second page of the NextN throws an error and doesn't display.
    I would include the page code here but it would be fairly lengthy and, as well, the NextN code is a 'standard' CF code -- I've narrowed the problem down to the above "Element is undefined" (when the page tries to reload from the "Next 40 Rows" link) and am hoping there's a simple fix or another way to display the records in Next and Previous pages.
    Thanks to anyone in advance for shedding light on this.
    - e

    Thank you for the reply, Owain.
    Yes - The Next/Previous at the bottom of the page are hyperlinks.
    <a href="ThisPage.cfm?start=#Evaluate("start + disp")#">
    The following is at the top of the page (and is the variable from the form that I CFOUTPUT in the query):
    <cfparam name="ItemNumberDropdown01" default="">
    <cfset ItemNumber = #form.ItemNumberDropdown01#>
    The error report showed that the "Next Page" hyperlink was reading an undefined variable... although when the "action page" first opens from the form posting to it, it populates the CFSET just fine (per the cfparam and cfset above)... As you mention, the hyperlink clearing the form scope is what causes the error in trying to display the next set of records...
    The form page and the 'action page' are both secure pages with an application page setting the session, etc. Am I at risk in using an URL scope?
    Where would this URL scope be put? (The href is shown above - would the URL scope go in this? - How would this be written?)
    The CFPARAM and CFSET would still exist at the top of the 'action page' and still throw an error wouldn't it or would this be replaced with something else to read the form.variable for this 'first' action page to be displayed?
    Thanks again for the 'education' on this...
    - ed

  • Using JSP to set form data and automatically submit

    I am using JSP to extract the authentication details form the header, and then set these values and automatically submit them them to a javascript cookie function. I can extract the information, but setting and submitting to javascript seems to be a problem. I don't want to modify the original code because that may change, and if it does change, they can just copy the jsp block to the new page. Plus there may be more pages where I will need to do the same. Any suggestions?

    I am making this a JSP and hosting it in Tomcat since I already have the authentication extracted and base64 decoded with this at the top:
    <%@page language="java"%>
    <%@ page import="com.Ostermiller.util.Base64 " %>
    <%
    String auth = request.getHeader("Authorization");
         auth = auth.substring(auth.indexOf(" "));
         String decoded = new String(Base64.decode(auth));
         int i = decoded.indexOf(":");
         String username = decoded.substring(0,i);
         String pwd = decoded.substring(i+1,decoded.length());
    %>
    Then it has a form with a field checker and then login function:
    function do_login()
    if (is_ie)
    window.document.authenticate.submitbutton.click();
    else
    window.document.authenticate.submit();
    <form method="post" name="authenticate" onsubmit="return check_fields();">
    Log in
    I was wrong about the cookie. It doesn't set it in that html file, it just checks to see if a cookie exists, if it does, it passes the user through. Normally I would use a cookie bean to do this, but again I have to do this for multiple sites which have different values and encryption. I just want to pass the credentials through and then let the back end do the rest. Do you know of a better way? Thanks for replying.

Maybe you are looking for