Using get_application_property(CONFIG) in 6i and 10g
492384Jul 3 2008 — edited Jul 5 2008Hi,
for a short time, our application has to run with 6i and 10g at the same time. We have to use the new constant CONFIG also in 6i. How can I mask this constant that it works correctly. Implementing it like this doesn't work:
PROCEDURE gui$new_session
IS
pl_id ParamList;
form_name varchar2(100);
lo_connect varchar2(250);
lo_url varchar2(200);
lo_conf varchar2(50);
co_config CONSTANT NUMBER := 'CONFIG';
BEGIN
form_name := replace(pdb_anwendung.get_anw_exe('PRAG_MENUE45'), '.FMX','');
IF get_application_property(USER_INTERFACE) <> 'WEB' THEN
RUN_PRODUCT(FORMS, form_name, ASYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id, NULL);
ELSE
lo_connect := get_application_property(USERNAME)||'/'||get_application_property(PASSWORD)||'@'||get_application_property(CONNECT_STRING);
lo_conf := get_application_property(co_config);
lo_url := 'javascript:window.open("/forms/frmservlet?config='||lo_conf||'&form='||form_name||'&userid='||lo_connect||'","","location=no,toolbar=no,menubar=no,status=no,");self.close();';
WEB.SHOW_DOCUMENT(lo_url,'_blank');
END IF;
END;
Unfortunately, I can't set the constant CONFIG directly into get_application_property (what is working properly used directly in 10g) because then I get a compilation error in 6i. Can somebody help me?
Regards,
Heike