Forms web.show_document replace & in url

Hi all
i am trying to replace & in varchar for web_show.document
v_params := v_params || '&name='
                   || replace(replace(replace(NAME, '"', ''''), '&', '%26'), ' ', '%20');
Name ='es & tu'
On debug all is correct Like es%20%26%20tu , but after web.show_document(v_params,'_blank') the link is ......es%20&%20tu........ WHY ?
Why again symbol & is back ?
Thanks
ID
Edited by: 1D10T on Feb 8, 2013 7:16 AM
Edited by: 1D10T on Feb 8, 2013 7:20 AM

Hi
Are some configs who are changing a web.show_document ? The problem is still active
On Debug varchar2 are correct es & tu replaced with es%20%26%20tu
v_params := v_params || '&name='
                   || replace(replace(replace(NAME, '"', ''''), '&', '%26'), ' ', '%20');But in browser when calling a report ....es%20&%20tu why ?
Thanks !

Similar Messages

  • Executing a sql in web.show_document before opening the page with URL

    Hi,
    I have a function that returns a varchar2 into web.show_document in the form. Is there a way that web.show_document executes the varchar2 and get the output and open the URL. The result of the varchar2 execution is a URL.
    CREATE TABLE MIS_TBL (MIS_COD VARCHAR2(10), MIS_VAL VARCHAR2(100) );
    insert into MIS_TBL(MIS_COD,MIS_VAL) values ('RPTURL','/print');
    Create or replace FUNCTION Get_String_MIS
    in_v_MIS_Cod IN MIS_Tbl.MIS_Cod%TYPE ) RETURN VARCHAR2     
    IS
    l_v_String          MIS_Tbl.MIS_val%TYPE;
    BEGIN
    SELECT MIS_Val INTO l_v_String
    FROM MIS_Tbl
    WHERE MIS_Cod = in_v_MIS_Cod;
    RETURN l_v_String;
    END;
    In the forms I have the following code in a trigger, uniform across many forms.
    web.show_document(Get_String_MIS('RPTURL') || '/' || l_v_File_Name);
    I can set any value to RPTURL from a reference data form. I want the above statement to execute the varchar returned by Get_String_MIS('RPTURL') and send the result of the execution to show_document.
    The result of get_string_mis should be 'http://'||sys_context('userenv','host')||':9999/print' and this when executed gets the actual servername from sys_context('userenv','host')
    At this time, I cannot change the function and many forms. I only have control of changing the value in MIS_TBL.
    Any solution to my problem is greatly appreciated.
    Thanks,
    Ravi

    Maybe you could rename your table and use a view pointing to that table instead? Then you could do the resolution directly in the database.
    Something like
    SELECT MIS_COD, MIS_VAL FROM MIS_TBL_NEW WHERE MIS_COD!='RPTURL'
    UNION ALL
    SELECT 'RPTURL',  'http://'||sys_context('userenv','host')||':9999/print' MIS_VAL FROM DUAL

  • Show a blob( pdf ) from db-table  in the clients browser/ web.show_document

    my env:
    Database R11_2 on one windows-host-machine
    AS 10 g on another windows-host-machine
    I can show files in Forms10g from inside the AS with web.show_document,
    that works fine
    but now I want to show a ( pdf or text ) File from a BLOB in a Table inside in the Database
    to the Browser running in Forms on AS,
    I do not want to create a extra Form for this reason, but want to show it in browser - windows
    ( how ) can I use web.show_document against a URL on the Database R11 ?
    what other tool , java ?
    regards

    Easiest way is probably to use mod_plsql and wpg_docload.download_file. If you retrieve the blob content from some table, than you can show it with a generic procedure like:
    procedure show_webdoc(io_blob          in out nocopy blob
                         ,i_mimetype       in varchar2
                         ,i_filename       in varchar2)
    is
    begin
       if dbms_lob.getlength(io_blob) >0 then
          owa_util.mime_header(nvl(i_mimetype,'application/octet'),false);
          htp.p('Content-length: ' || dbms_lob.getlength(io_blob));
          htp.p('Content-Disposition:  attachment; filename="'||i_filename|| '"');
          owa_util.http_header_close;
          wpg_docload.download_file(io_blob);
       end if;
    end show_webdoc;

  • Web.show_document cannot display file with Chinese char in IIS 6

    Dear all,
    There is a problem that web.show_document cannot display file with Chinese char in IIS 6, but works fine in IIS 5.
    Is it a server problem or is there any setting in server? Do you know how to solve it?
    Big Thanks
    JY

    Hi,
    As Francois mentioned, this issue has nothing to do with forms / web.show_document. web.show_document, just opens the URL specified as parameter. So, if you run the URL (that you've passed as argument for web.show_document), directly in the browser, you would be getting the same issue.
    So, as you said, if it works fine in IIS 5 and does not in IIS 6, it would be an issue with the IIS and not forms. You might want to check out the IIS 6 release notes / documentation for any known issues / raise an issue in that.
    -Arun

  • Calling a report with web.show_document and put pdf in temp directory

    Hi,
    I need to call a report 10g with web.show_document in order to generate a .pfd file (not viewed by the user) as soon as the user press a button in a form.
    I have two problems. Firstly, after generate .pdf, it's opened a undesirable windows "process succefully" (I don't want that window). Secondly, in url parameter, I put:
    (...)DESTYPE=File&DESFORMAT=pdf&DESNAME=' || client_win_api.get_temp_directory
    the target directory to .pdf file might be the user temporary directory, and not c:\temp, because in Windows XP the user haven't some writing privileges.
    How there is spaces in temporary directory, like:
    C:\Documents and Settings\<user>\Local Configurations\Temp
    I supose that Get_temp_directory returns something that:
    C:\Documen~1\<user>\Local~1\Temp
    And web.show_document don't understand.
    Can anyone help me?
    Thanks a lot,
    medina.

    Hi Maahjoor,
    i have install windows xp on vmware having loop back adapter configure with ip 192.168.10.1.i am using oracle developer 10g suite and oracle 10g r2 database.
    i want to call a report using the following code on a button.i have attached the report to the form.
    i have started the report server by issuing rwserver server=repsrv.
    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status varchar2(20);
    BEGIN
    repid := FIND_REPORT_OBJECT('ALL_EXPENSES');
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := RUN_REPORT_OBJECT(v_rep);
    WHILE rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED')
    LOOP
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    END LOOP;
    IF rep_status = 'FINISHED' THEN
    WEB.SHOW_DOCUMENT('http://192.168.10.1:8889/reports/rwservlet'||substr(v_rep,'_',-1)+1||'?'||'server=repsrv','_blank');
    ELSE
    Message('Error when running report');
    END IF;
    end;now when i run the command, i get this error
    frm-41214: unable to run the report
    frm-41219: cannot find the report.invalid id.
    argument 1 to builtin run_report_object acnnot be null.
    i thin the problem is with this line. WEB.SHOW_DOCUMENT('http://192.168.10.1:8889/reports/rwservlet'||substr(v_rep,'_',-1)+1||'?'||'server=repsrv','_blank');
    can anyone help? or a better piece of code?>
    I think you are mixing up the web.show_document usage for URL and with RUN_REPORT_OBJECT.
    I hope you have studied this document http://www.oracle.com/technetwork/products/migration/frm10gsrw10g-132606.pdf . It has the required examples and code.
    Cheers,

  • Web.show_document - mailto

    Hi,
    I am using this command to send e-mail within Forms.
    web.show_document('mailto:[email protected]&subject=test&body=Hello','blank');
    This command opens an outlook window message and the user have to press send to send the e-mail. Is it possible, using the same command, to have e-mail sent automatically without the user seing it?

    it looks like you need to use a ? to replace the first &. I.e., right after your email address you need to use ? instead of &, the rest of & is needed.
    If subject and body have more than one words, then need use the %20 for space, %2C for comma, %2E for period.

  • Simple question: calling URL link with WEB.SHOW_DOCUMENT is not working

    Hi folks,
    this should be an easy question, but I have no idea why it's not working :-(.
    In one of my form, I would like to place an URL link behing button.
    For this purpose I'm using below code:
       WEB.SHOW_DOCUMENT('http://www.google.com','_blank');But when above code is executed, nothing happens :-(.
    Could it be because I'm using it within modal type of window?
    Thanks,
    Tomas
    I'm using Oracle Forms 10g

    have you checked with using self instead of blank to see if it will replace your current page with the one you are tyring to call?
    Have you got any other firefox plugins running such as Ad block? can you try disabaling all addons and even the internal pop-up blocker jus to see if this will work?
    if self works but blank does not how about having the main app called from a multi frame page. one frame with the app in and the other frame with some javascript that can be called to open a new window? dont know if that will work and its late so probably not thought it thorugh fully :)

  • Unable to open the reports as url using web.show_document

    Hi experts,
    I am trying the access the oracle reports from oracle forms. my forms is running at port 9001 and my report is configured at port 9002.
    While trying to open the report using web.show_document(), the web page opens with port 9001 and returns 404 error. But when i change the port number to 9002 in the url it opens the report sucessfully.
    Please find the forms and reports link below:
    http://10.180.218.158:9001/forms/frmservlet?config=kvb11g
    http://10.180.218.158:9002/reports/rwservlet/getjobid97?server=rptsvr_mohadam-in_adam2unst
    i tried changing the machine name to ip address in the forms.conf and reports_ohs.conf as suggested in the link below. but it dint work out.
    url -
    https://forums.oracle.com/thread/1105289
    http://prasadmadhasi.com/2011/11/19/changing-presentation-services-port-number-in-obiee-11g/
    my reports_install.properties is given below,
    #Reports Install Properties
    #Fri Sep 13 16:10:59 IST 2013
    WLS_USER=weblogic
    USE_REPORTS_BUILDER=true
    OHS_COMPONENT_NAME=ohs1
    REPORTS_MANAGED_WLS_PORT=9002
    SERVER_NAME=RptSvr_MOHADAM-IN_adam2unst
    REPORTS_MANAGED_WLS_HOST=10.180.218.158
    FORMS_CONFIGURED=true
    ORACLE_INSTANCE_NAME=adam2unst
    REPORTS_APP_DEPLOYMENT_DIR=C\:\\Oracle\\Middleware\\user_projects\\domains\\kvbdomain\\servers\\WLS_REPORTS\\tmp\\_WL_user\\reports_11.1.2\\uxabaw
    INPROCESS_SERVER_NAME=RptSvr_MOHADAM-IN_adam2unst
    MANAGED_SERVER_NAME=WLS_REPORTS
    OHS_PORT=8891
    DOMAIN_HOME=C\:/Oracle/Middleware/user_projects/domains/kvbdomain
    COMMON_COMPONENTS_HOME=C\:\\Oracle\\MIDDLE~1\\ORACLE~1
    ORACLE_INSTANCE=C\:\\Oracle\\Middleware\\adam2inst
    REPORTS_APP_CONFIGURATION_DIR=C\:\\Oracle\\Middleware\\user_projects\\domains\\kvbdomain\\config\\fmwconfig\\servers\\WLS_REPORTS\\applications\\reports_11.1.2\\configuration
    OHS_HOST=MOHADAM-IN.in.oracle.com
    DOMAIN_NAME=kvbdomain
    ORACLE_HOME=C\:\\Oracle\\Middleware\\Oracle_FRMHome
    USE_OID=false
    REPORTS_APP_VERSION=11.1.2
    USE_SSL_FOR_APP_LDAP=false
    INSTALL_MODE=deployment
    SSO_CONFIGURED=false
    Looking forward for your help.
    Regards,
    Syl

    Hello,
    this is the forum space
    SQL Developer (Not for general SQL/PLSQL questions)
    Please mark this thread as answered and post your question in Reports
    Regards
    Marcus

  • Form calling Report with web.show_document caught by SSO

    A 10g form button calls a 10g report via web.show_document.
    In the dev environment it works, but in the full app server SSO is enabled and stops & prompts for a login/password.
    I'm trying to include the SSOCONN parameter in the URL. I've tried the db userid & the sso userid without success.
    Any help is much appreciated.

    How are you calling the report with Web.Show_Document (what's the URL you're passing)? The application I'm working on uses SSO and I call Reports from Forms and don't have this issue. You should just have to pass the return value of RUN_REPORT_OBJECT() in the URL along with the server name - at least that is how we do it. For example (bare in mind this is an abbreviated example):
    DECLARE
         v_rep_rtn   VARCHAR2(4000);
         v_repsvrname      VARCHAR2 (100);  /* This is a CONSTANT and used here as an example */
         v_paramlist  paramlist;
    BEGIN
         v_rep_rtn := Run_Report_Object(v_report, v_paramlist);
         Web.Show_Document('/reports/rwservlet/getjobid'||substr(v_rep_rtn,Instr (v_rep_rtn, '_', -1) + 1)||
                          '?server=' || v_repsvrname);
         v_report    := Find_Report_Object('REP1');
         Set_Report_Object_Property(v_report, report_execution_mode, batch); 
         Set_Report_Object_Property(v_report, report_comm_mode,      synchronous);
         Set_Report_Object_Property(v_report, report_destype,        CACHE);
         Set_Report_Object_Property(v_report, report_desformat,      'pdf');
         Set_Report_Object_Property(v_report, report_server,         v_repsvrname);
         v_rep_rtn := Run_Report_Object(v_report, v_paramlist);
         rep_status := Report_Object_Status(v_rep_rtn);
         WHILE rep_status IN ('RUNNING', 'OPENING_REPORT', 'ENQUEUED')     LOOP           
              rep_status := Report_Object_Status(v_rep_rtn);        
         END LOOP;   
         IF rep_status <> 'FINISHED' THEN
              msg_box('Error when running report. Status = '||rep_status);  
         else
              Web.Show_Document('/reports/rwservlet/getjobid'||substr(v_rep_rtn,Instr (v_rep_rtn, '_', -1) + 1)||
                          '?server=' || v_repsvrname); -- || '&authid=orcladmin/admin999');
         END IF;
    END;Hope this helps.
    Craig...
    -- If my response or the response of another is helpful or answers your question please mark the response accordingly. Thanks!

  • Web.show_document  spaces in the URL problem

    Hi,
    I am using Web.Show_document to call the report from the form. Here some of the parameters having a spaces. It is giving a problem and report is not running. Pl guide me in this issue.
    Thanks & Regards,
    Gangi Reddy

    Try using %20 in place of the space in the URL.

  • Unable to create a reports server to test web.show_document in Forms 10.1.2

    Hi all,
    In Forms 10.1.2 DS, I'm trying to use the web.show_document built-in to 'generate' a report from a .jsp file. This JSP file was created by wizard through creating a report object in the Object Navigator. The code I'm using from a push button is as follows:
    web.show_document('http://<hostname>:8889/reports/rwservlet?report=<dirpath>\Sales.jsp&userid=<username/password@connectstring&server=<server_name>'
    As far as I am aware no 'reports server' has been created so I've tried the following command in a dos window:
    rwserver -install <server_name>
    but this just raises an 'alert' indicating that I should consult an installation guide to setup and install the server. So my questions are:
    (1) Is what I'm trying to do supported in DS?
    (2) What installation guide should I consult?
    Any information on this would be gratefully appreciated,
    Kevin.

    Hi Inol,
    Thanks for the response. I agree with the comment about exposing user details, I'm just doing a bit of experimenting at the moment! I tried to do what you suggest in terms of changing the URL but whether I reference the server or leave it out, the subsequent browser session seems to hang and then eventually I get a 'Page Not Found' response. On using the URL 'http://127.0.0.1:8889/reports/rwservlet/showenv?', I get an 'Access Denied' Error Page. Is there something additional I need to set up with regards to Reports to get this to work?
    regards,
    Kevin.

  • Web.SHOW_DOCUMENT('URL', '_blank') doesn't work for Internet Explorer 7

    Hello,
    In my company, we are using Oracle Forms 10.1.2.0.2.
    After inserting a URL, users are logged in. There is one page in the application that uses a button to open a PDF in a new page.
    Code behind this button:
    web.SHOW_DOCUMENT('URL', '_blank');
    For internet explorer 6, there is no problem, but last week, some users have upgraded their browser to Internet Explorer 7. When they now push the PDF button, nothing happens. No error is given.
    Could someone please help me..

    Actually, I think a couple of my colleagues have seen this with IE7 recently... It seemed to be related to individual PCs rather than anything in our software, and was sort-of sporadic. I think on one of the PCs, there'd been an update to the Google toolbar and that had caused problems (and of course, if you have Google toolbar, that has its own popup blocker that you need to disable for the site in question.)
    Sorry to be vague, but I would look for any other browser plug-ins on the machine that might be causing issues.
    James

  • Can I use web.show_document with forms name parameter ?

    Hi All,
    I need to pass URL to web.show_document but with form name too. Is it possible?
    I'd like to do something like web.show_document('url?report=myReport','_blank')
    Thanks in advance
    Edited by: _blackjack on Dec 13, 2012 2:17 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Yes, you can use any valid URL within web.show_document

  • Can web.show_document use a Windows filesystem-style URL?

    Hi,
    I need to open Word documents from Forms9i.
    The docs are on a Win2k fileserver located on the same LAN with the user desktops, while the Forms 9iAS server (a Win2k box itself too) is remote, over a WAN link.
    The folder in the fileserver where the docs reside is mapped as a network share in the 9iAS server.
    The mechanism currently envisaged for viewing the Word docs is:
    - use the show_document built-in for launching a second Internet Explorer window, from the Forms JInitiator main window on the desktop.
    - the URL passed to show_document is http://9iAS_IP_address:port/path_to_fileserver_share/document_name.doc
    In this way, each Word document to be viewed on a desktop will have to go through a round-trip from the fileserver over the WAN to the 9iAS Forms server, then back over the WAN from the 9iAS webserver to the desktop running the main window of the application.
    Assuming that the same document folder in the fileserver is mapped as a network drive for all desktops (e.g. as N:), could we pass to show_document a Windows-style URL like "N:\document_name.doc" or "file://N:\document_name.doc"?
    Will the browser (which is MS IE) then open the document from the local LAN share, rather than through http and the WAN roundtrip?
    We cannot upgrade to 10g and adding any other add-in such as WebUtil to the forms triggering the viewing of Word docs is out of the question (at this time); this is a COTS packaged application.
    Note: I am not a Forms developer, have no experience and no access to a Forms development environment, so I can't try for myself.
    Thank you very much,
    Gabriel

    Gabriel,
    Francois has a good point! Try Frank's example. It will work. I use it quite often.
    web.show_document('file://h:\documents\ref\abcde123.doc','_BLANK');
    Regards,
    Martin Malmström

  • Passing parameter to Called form through Web.Show_document.

    i am calling a form say 'form2.fmx' from 'form1.fmx' using web.show_document. the parameter is concatenated with the URL string properly but this parameter is not accessible in the called form.
    Please Help
    thanks

    i am running forms Of 10G developer suit. i want to call and pass a parameter
    'emp_no'(employee no) to a form say 'form2.fmx' from the form say 'form1.fmx' on button
    click. so i have created a parameter named "emp_no" in the object navigator of "form2.fmx".
    in form1.fmx, i am using web.show_document(URL) function as given below.
    web.show_document('http://111.111.111.11:8889/forms90/f90servlet?form=form2.fmx&emp_no=7156&userid=scott/tiger@mysid','_blank');
    This function successfully call the "form2.fmx" but in this form the value of parameter
    "emp_no" is null even when i have passed it in the URL (as shown in the above code line)
    i.e; the value of emp_no is null.
    Note :
    7156 is the value of emp_no parameter.
    111.111.111.11 is the supposed ip address. etc.

Maybe you are looking for

  • Office 2013: can't retrieve the Product Key via Belarc Advisor

    Hi, Isn't it possible anymore to retrieve the Office Product Key installed on a computer via third party inventory software such as Belarc Advisor? I used to do that to see the Microsoft Office Product Key installed on a computer for previous Office

  • How to response polling event during dll call

    Hello, There is a long time dll call in my program. The program doesn't response to mouse click in the front panel during the dll call when I want to display other page in Tab control. It only response after the call. How to solve the problem? Thanks

  • Wrongly charged on itunes app store

    Hi, I have not made any transaction through my authorised credit card - i.e have not purchased any application. Still I got charged INR 110 to my credit card. What and why did this happen, Apple - what are you doing? Please help!

  • SDO_UNION AGGREGATION ROUTINE

    I am in search of a routine to perform aggregations of grouped data using the sdo_union function. Using the procedure below, a recordset is created from my ZIP_TEMP table WHERE State='NY'...(basically I'm trying to create a New York object from all o

  • Iphone and gmail calendar issues

    My gmail account is no longer connect to my iphone 5. My previous employer uses corporate gmail. I am with a new employer and when I create an event, it sends it to my old employer. I have tried several things. There contact information is not stored