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

Similar Messages

  • How to do so would not open the page with the same address that is already open?

    When I click on a link twice it opens two identical tabs. Sometimes I really want to block the opening of the same address.

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    ''(to the-edmeister: Tuesday is April 2th)''

  • Using web.show_document to open xml file

    I have successfully created an xml file and saved it to a directory on my hard drive. I was tyring to find answers to Client_OLE2 and stumbled upon Web.Show_Document to open this file. Essentially the file is in a spreadsheet format so when I manually open using IE then Excel is launched. Anyway, currently I am running forms locally and have set a virtual-directory virtual-path in my orion-web.xml file. My virtual path is /report_tmp/. So in my form I have issued the following call to launch a browser and display the file:
    Web.Show_Document('/report_tmp/'||v_filename, '_BLANK');
    This call does not produce any errors nor does it display the file. What am I doing wrong?
    Thanks,
    c

    Is the browser launching?
    If it is have you tried a show source on the browser window?
    Sometimes if you open an XML file in a browser you get a blank page but the XML is there. Something to do with the XML format I think. I'm no expert on XML just a behaviour I have observed.

  • When i try to open a web page, a blue screen appears and it is telling me " safari cannot open the page because i am not connected to the internet. i have an iphone, no problem and a laptop with connection - no problem - not sure what the trouble is.

    when i try to open a web page, a blue screen appears - message says - sarfari cannot open the page because it is not connected to the internet. i have an iphone - no proble and a laptop - no problem as well.
    what is wrong?

    There are other things that need attention:
    Your above posted system details show outdated plugin(s) with known security and stability risks that you should update.
    *Shockwave Flash 10.0 r32
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/

  • Safari cannot open the page ~ The error was: "There was a problem communicating with the web proxy server (HTTP)

    Help!  I was cruzing along just fine and went out tonight only to receive the message above:
    Cannot open Page
    Safari cannot open the page
    The error was: "There was a problem communicating with the web proxy server (HTTP)."
    I have had all the Apple iPhone phone.  Have never encountered anything like this. 
    All systems are GO as soon as I log on to wifi. 
    Can anyone help, please. 

    I am also fixed.  I also loaded Onavo, but that was the other day ... this is what I did with the help of online chat with AT&T ...
    I went to:
    Settings
    Wifi
    I selected the network I was working on by hitting the blue arrow located on right side
    At the detail page of that network I scolled down to the bottom to find HTTP Proxy boxes
    I was on Off and changed it to Auto and it worked! 
    I was soo jazzed!!
    Instructions said if it was already on AUTO, to change it to Manual and make your Port = 80 but I didn't have to do that!
    YIPPIE!!  I'm a new man!!
    Go to settings -----> WI-FI  -----> select the network you're using  ------> hit the blue arrow located on the right-side of the network name (ie: show details of that network), this takes you to another page.  
    --------> at the bottom of the page you'll see "HTTP Proxy" boxes (located below the "renew lease" button) ---------------> change the proxy to AUTO.   Note: if you're already at AUTO, change it to "Manual" and make your Port = 80.

  • 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.

  • Adobe keeps crashing, you can be on a web page reading and the browser opens the page in a new browser. I did not have this problem the older versions. What can I do to fix this problem.

    adobe keeps crashing, you can be on a web page reading and the browser opens the page in a new browser. I did not have this problem the older versions. What can I do to fix this problem.

    See [[Firefox keeps opening many tabs or windows]]

  • HELP! Safari says cant open the page, too many redirects occurred trying to open (web address) when trying to access research paper sites - doesnt happen elsewhere

    Hi there,
    Ive been trying to open research articles through google scholar, when i click to open the page it doesnt load and comes up with Safari cant open the page, too many redirect occured trying to open (then the web address). This might occur if you open a page that is redirected to open another page which is then redirected to open the original page.
    This also happens when i access the databases through my universitys library web page - and it still wont let me load even the actual webpage let along particular article.
    This is happening on my ipad as well - but this is not happening on my iphone or on my other lap top which is not an APPLE.
    i know its not my internet as i used the same internet on the other comp and i also used it as wifi and without out wifi on my iphone.
    PLEASE HELP! i need to study!!
    thanks

    Safari 6
    Empty Caches
    Safari > Preference > Advanced
    Checkmark the box for "Show Develop menu in menu bar".
    Develop menu will appear in the Safari menu bar.
    Click Develop and select "Empty Caches" from the dropdown.
    Remove website data.
    Safari > Preferences > Privacy > "Remove All Website Data".
    http://support.apple.com/kb/TS3320

  • I am using Ipad 2, Wi-Fi is connected but cant open any web-site " error : Safari cannot open the page because it is not connected to the internet "

    I am using ipad 2, Wi-Fi is connected but cant open any web-site " error : safari cannot open the page becasue it is not connected to the internet "
    need support please

    You haven't provided much information, such as what type of router you have?  If you entered the encryption key as the password as opposed to the router name you have selected?  If you have WEP or WPA?  What you've tried that didn't work, other than saying it doesn't work?  So, below is a link to some assistance.  Follow this and see if it helps you.........
    http://www.apple.com/support/ipad/assistant/wifi/

  • I just purchased the iPad mini 3 and keep getting messege Safari could not open the page because stopped responding.just purchased it today and can't surf web please help.thanks

    purchased a ipad mini3 keep getting messege Safari could not open the page because the server stopped responding.

    Is this a wi-fi iPad? Is it connected to wi-fi? It sounds as if you're not connected to the Internet.

  • Having trouble this evening loading web pages in safari message I'm getting is Safari could not open the page because the server stopped responding

    Safari could not open the page because the server stopped responding can anyone help me please

    Hi ..
    Restart your router then try Safari.
    If that doesn't help, reset the device:
    Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears.
    If that doesn't help, tap Settings > General > Reset > Reset Network Settings
    You may have to re enter your Wi-Fi password.
    If nothing above has helped, try here >  iOS: Troubleshooting Wi-Fi networks and connections

  • "cannot decode raw data" - Safari (3.1) can't open the page..

    Hi all,
    I've been experiencing continuing issues with the Safari browser (3.1). I have emptied cache and reset safari, but to no avail!
    Every time i try to load certain web pages, ie. eBay, You Tube, i receive the following message:
    +Safari can’t open the page “http://k2b-bulk.ebay.co.uk/ws/eBayISAPI.dl?MyEbaySellingActiveListings&ssPageNam e=STRK:ME:LNL”. The error was: “cannot decode raw data” (NSURLErrorDomain:-1015) Please choose Report Bugs to Apple from the Safari menu, note the error number, and describe what you did before you saw this message.+
    Has anyone else experienced similar problems? Webpages i try to load in Safari work fine in Firefox and Flock!
    Many thanks

    Yes, all of a sudden I have a very similar error trying to access www.macworld. ie Safari can’t open the page “http://www.macworld.com/”. The error was: “cannot decode raw data” (NSURLErrorDomain:-1015)
    Just started happening out of the blue! And then on one other shopping web page.
    Gavin

  • "safari cannot open the page because it could not connect to the server"

    As stated above. I have had this problem for the last 2-3 days. I have always been able to connect to the internet over wi-fi using my iphone but this problem had persisted these few days. This is a problem because my iPhone shows that I do have connection to the internet. ( I assume this from looking at the internet signal stregth bar at the top of the screen.) My laptop and computer have no problem but the message "safari cannot open the page because it could not connect to the server," keeps on appearing on my phone whenever I try to access the internet.
         If it is of any relevance I use an iPhone 4s, reasonably new, practically 2 months. I have never had problems before this. Thank you for your help in advance.

    The connection strength icon you are referring to has nothing to do with the Internet. It simply indicates the strength of your connection to your local WiFi network. However, even when this icon appears you may not really be connected to your WiFi network.
    Your router may not have given your iPhone a valid local network IP address. To check on this go to Settings > Wifi > your network name and touch the ">" to the right to see the network details. If the IP address starts with 169 or is blank then your router didn't provide an IP address and you won't be able to access the Internet.
    Sometimes the fix for this can be as simple as restarting your router (remove power to it for 30 seconds and restart). Next, reset network settings on your iPhone (Settings > General > Reset > Reset network settings) and then attempt to connect. In other cases it might be necessary to update the router's firmware with the latest from the manufacturer's support web pages.
    If you need more help please give more details on your network, i.e., your router make, model and version, the wifi security being used (WEP, WPA, WPA2), etc.

  • Hotspot login cannot open the page because the network connection was lost. Why?

    Everyttime I try to connect to the wifi, all I get is about a second of the phone saying it is connected, before I get a login page, with the web adress of "captive.apple.com".
    The login page is black, and after about a second I get the message,
    "Error Opening Page: Hotspot login cannot open the page because the network connection was lost"
    I've tried restarting the phone, resetting the network data, everytihng I can think of but no luck.
    How can I fix this?

    Good day everybody. I had the same issue and I got crazy but keep up work on it about 1 week to have the resolution.
    Here is the simple steps to overcome this problem:
    1. Choose your Wifi and get connected
    2. On Wifi page at the bottom Turn On 'Ask to Join Networks'
    3. Connect to your Wifi,
    4. After connecting, you will see a blue next to your selected Wifi
    5. Press the blue and get into the connection detail of your wifi
    6. Turn on Auto-Join
    7. Turn Off Auto-Login
    8. Close settings
    9. Go to Safari log with Hotel, Business wifi page
    Trick is the Auto-Login must be turned off

  • "Safari can't open the page because it can't find the server"

    I just bought my iPhone. The first time I attempted to log onto my home wireless network (US Robotics Wireless Router) the iPhone performed perfectly. However, the next time I attempted to logon and surf it gave me the "Safari can't open the page because it can't find the server" error message. I tried a variety of things which didn't work. I called the Apple Tech Support. Turning off the router and rebooting it was the only thing that worked. I thought my problem was resolved because after cycling the router the iPhone worked great once again. But . . . later the same day I attempted to connect to the router and the same thing happened and I got the error message. I attempted to power cycle the router just like before but this time it did not work! Help! Bad router? Wrong settings on router or iPhone?

    Do you have other wireless devices connected to this same router? Do they work?
    I really can't help you much but to say that when my router exhibited this issue it was accross the board (all notebooks would connect immediately following a router restart, but would loss connectivity until I rebooted the router again). In my case the only solution that was permanent was to replace the router.
    You may also try restarting the phone and the router, setup security - WEP - (or disable security) on the router and phone, and/or try a different wi-fi channel (may actually help).

Maybe you are looking for

  • How to enable email notifications in a OracleAS Portal Approval Chain

    How can I setup my Portal (10gR2 -10.1.4) to send a notification email on events in a approval chain? I wish to send emails to approvers and to publishers, with the result of the approval chain.

  • How to get blank TV screen when playing music

    I am using Apple TV to stream my iTunes music to my television. What setting do I need to make my television screen completely blank when playing music? Thanks

  • Signaling E&M-FGB not supported in 3845

    I have the following problem: When I try to configurate the interface E1 "VWIC2-2MFT-T1/E1" with this command: "ds0-group 0 timeslots 1-15,17-31 type e&m-fgb" router don´t received it. GW-1(config-controller)# ds0-group 0 timeslots 1-15,17-31 type ?

  • Cant edit birthday calendar (read-only)

    Hello, im pretty new to iCal, just started today. i recognised it imports / offers a calendar for each location you have on your mac os X. in prefs i found the additional birthday calendar option. after enabling it, i was wondering why i cant edit it

  • Strange BEPLC compile error

    Hello, I am getting the following error when I attempt to compile a newly created BPEL process using version 10.0.1.2.: [bpelc] file:/C:/Java/cmsynergy/mmiller/ekc/Esmee~mmiller/Esmee/esmee-process/ESMEE_OrderStatus/ESMEE_OrderStatus.ws dl [bpelc] fi