misterimran
Programmer
hi,
i am using forms6i and 9iAS for deployment of forms.
i tried to use d2kwutility and the code i used is:
DECLARE
OS_USER_NAME VARCHAR2(60);
MACH_NAME VARCHAR2(100);
BEGIN
OS_USER_NAME := win_api_environment.get_windows_username(toBoolean('Y'));
MACH_NAME := WIN_API_ENVIRONMENT.Get_Computer_Name(toBoolean(MACH_NAME));
INSERT INTO COMMON.COM_USER_INFO VALUESGLOBAL.G_EMPLOYEE_ID,:GLOBAL.G_MODULE_ID,SYSDATE,
'SETUP > COMPANIES', 'F', :GLOBAL.G_USER_IP, MACH_NAME, OS_USER_NAME);
COMMIT;
CALL_FORM('COMPANIES_FRM',NO_HIDE,NO_REPLACE);
END;
BUT NO RESULTS..
library is attached but it doest work...
what to do now.. how to get IP address and machine name of the user?? i have also tried..
SELECT SYS_CONTEXT('USERENV','IP_ADDRESS'),
SYS_CONTEXT('USERENV','HOST'),
SYS_CONTEXT('USERENV','OS_USER') from dual;
but this show the IP and Machine name of the server where aplication resides and application server installed.
Please help its very urgent..
thanks, Imran Baig
i am using forms6i and 9iAS for deployment of forms.
i tried to use d2kwutility and the code i used is:
DECLARE
OS_USER_NAME VARCHAR2(60);
MACH_NAME VARCHAR2(100);
BEGIN
OS_USER_NAME := win_api_environment.get_windows_username(toBoolean('Y'));
MACH_NAME := WIN_API_ENVIRONMENT.Get_Computer_Name(toBoolean(MACH_NAME));
INSERT INTO COMMON.COM_USER_INFO VALUESGLOBAL.G_EMPLOYEE_ID,:GLOBAL.G_MODULE_ID,SYSDATE,
'SETUP > COMPANIES', 'F', :GLOBAL.G_USER_IP, MACH_NAME, OS_USER_NAME);
COMMIT;
CALL_FORM('COMPANIES_FRM',NO_HIDE,NO_REPLACE);
END;
BUT NO RESULTS..
library is attached but it doest work...
what to do now.. how to get IP address and machine name of the user?? i have also tried..
SELECT SYS_CONTEXT('USERENV','IP_ADDRESS'),
SYS_CONTEXT('USERENV','HOST'),
SYS_CONTEXT('USERENV','OS_USER') from dual;
but this show the IP and Machine name of the server where aplication resides and application server installed.
Please help its very urgent..
thanks, Imran Baig