jeannie322
Programmer
Hey everyone, we finally figured out how to place a button on a form that will call a web page (internally or externally) and now I have encountered a new problem..
A folder that is referenced in teh hyperlink has an " ' " in it. This is causing problems in the compilation of the form. I dont think I can use the REPLACE function, but if anyone has ANY ideas, please let me know!! Thanks!!
Here is the PL/SQL code for the link behind the button. The FSD Managers' Web Page is where we are having the problems. It doesnt matter about the spaces, only the apostrophe. Can anyone please take a look and let me know if you can help??
DECLARE
NS_ID PLS_INTEGER;
ConvID PLS_INTEGER;
BEGIN
ConvID := DDE.Initiate('NSShell',' -- Service,Topic
-- From Netscape 4.02 onwards the service is called NSShell instead of
--NETSCAPE
DDE.EXECUTE(ConvID,'"'||'\\XXXXXXXXX\XXXXXXXX\FSD Managers' Web Page\XXXXX\XXXXX.htm'||'"',5000);
EXCEPTION
WHEN DDE.DMLERR_NO_CONV_ESTABLISHED THEN -- If Netscape is not already open
NS_ID := DDE.APP_BEGIN('C:\PROGRA~1\NETSCAPE\Communicator\PROGRAM\netscape.exe', DDE.APP_MODE_NORMAL);
-- Replace this string with the complete path equired to execute netscape on your machine
ConvID := DDE.Initiate('NSShell',' DDE.EXECUTE(ConvID,'"'||'\\XXXXXXXXX\XXXXXXXX\FSD Managers' Web Page\XXXXX\XXXXX.htm'||'"',5000);
WHEN DDE.DDE_APP_FAILURE THEN
MESSAGE('Could not Open Netscape.');
WHEN DDE.DMLERR_SYS_ERROR THEN
MESSAGE('A system error has occurred. Shutdown
application and try again.');
WHEN DDE.DMLERR_NOTPROCESSED THEN
MESSAGE('Cannot Process Request');
WHEN DDE.DMLERR_DATAACKTIMEOUT THEN
MESSAGE('Data Ack. Timeout');
WHEN others then MESSAGE('Unknown failure');
END;
A folder that is referenced in teh hyperlink has an " ' " in it. This is causing problems in the compilation of the form. I dont think I can use the REPLACE function, but if anyone has ANY ideas, please let me know!! Thanks!!
Here is the PL/SQL code for the link behind the button. The FSD Managers' Web Page is where we are having the problems. It doesnt matter about the spaces, only the apostrophe. Can anyone please take a look and let me know if you can help??
DECLARE
NS_ID PLS_INTEGER;
ConvID PLS_INTEGER;
BEGIN
ConvID := DDE.Initiate('NSShell',' -- Service,Topic
-- From Netscape 4.02 onwards the service is called NSShell instead of
--NETSCAPE
DDE.EXECUTE(ConvID,'"'||'\\XXXXXXXXX\XXXXXXXX\FSD Managers' Web Page\XXXXX\XXXXX.htm'||'"',5000);
EXCEPTION
WHEN DDE.DMLERR_NO_CONV_ESTABLISHED THEN -- If Netscape is not already open
NS_ID := DDE.APP_BEGIN('C:\PROGRA~1\NETSCAPE\Communicator\PROGRAM\netscape.exe', DDE.APP_MODE_NORMAL);
-- Replace this string with the complete path equired to execute netscape on your machine
ConvID := DDE.Initiate('NSShell',' DDE.EXECUTE(ConvID,'"'||'\\XXXXXXXXX\XXXXXXXX\FSD Managers' Web Page\XXXXX\XXXXX.htm'||'"',5000);
WHEN DDE.DDE_APP_FAILURE THEN
MESSAGE('Could not Open Netscape.');
WHEN DDE.DMLERR_SYS_ERROR THEN
MESSAGE('A system error has occurred. Shutdown
application and try again.');
WHEN DDE.DMLERR_NOTPROCESSED THEN
MESSAGE('Cannot Process Request');
WHEN DDE.DMLERR_DATAACKTIMEOUT THEN
MESSAGE('Data Ack. Timeout');
WHEN others then MESSAGE('Unknown failure');
END;