Redevelop oracle forms login screen in adf

hi i have the login screen in my oracle forms application which do the following
-able the user to login in the application,by the username,password which are store in the table
-in my screen i got the following username and password column and the login button.
-the login button got two trigger> when-button-pressed and when-new-item-instance
-i also have an option for new user to type new password and confirm the password when they start,every new user got default password and is force to change the password before login in the application
-when the application start it does not show the new password column only if the user is new and when user password has been resert which is done by system admistrator.
-i have one screen which list all the user in the application where system administrator can resert the password by clicking the button
-i also have change password button which come if the user is new under this button i only have one trigger when-button-pressed which got
-the user is the only person who enter the new password the system admistrator only resert the password he does not have option to enter new password
if :logon.pwd is null then
sms_code.error_message('SMS-'||to_char(0000002)||': '||'Password must be specified','', 'E', 'SMS');
end if;
login_pwd_title;
perform_sdms_new_password;
under my when-button-pressed trigger i got
:logon.logon_ind := 1;
perform_sdms_logon;
and under my when-new-item-instance trigger i got
if nvl(:logon.logon_ind,0) = 1 then
     :logon.logon_ind := 0;
else     
if :logon.usr_id is not null
and :logon.pwd is not null then
:logon.logon_ind :=1;
perform_sdms_logon;
end if;
end if;
and my perform_sdms_logon sp is below. which is in the form programm unit
PROCEDURE perform_sdms_logon IS
error_message varchar2(100);
usr_id integer;
fail_cnt integer;
fail_limit integer;
pwd sms_users.pwd%type;
pwd_dt date;
pwd_dt_period integer;
sysdt date;
msg_lvl varchar2(20) := :system.message_level;
cursor usr is
select id,pwd_change_dt,sysdate,pwd,login_failure_count
from sms_users
where user_id = :logon.usr_id
-- and pwd = sms_secure.crypt('USR',id,:logon.pwd)
BEGIN
set_clnt_details;
if :logon.usr_id is null then
     error_message := 'User id must be specified';
sms_code.error_message('SMS-'||to_char(0000001)||': '||error_message,'', 'E', 'SMS');
end if;
if :logon.pwd is null then
     error_message := 'Password must be specified';
sms_code.error_message('SMS-'||to_char(0000002)||': '||error_message,'', 'E', 'SMS');
end if;
pwd_dt_period := sms_global.ref_code('SMS','PWD_PERIOD',30,1);
fail_limit := sms_global.ref_code('SMS','PWD_FAIL_LIMIT',3,1);
open usr;
fetch usr into usr_id,pwd_dt,sysdt,pwd,fail_cnt;
if usr%NOTFOUND then
close usr;
          sms_alog.record(:global.clnt_user
,:global.clnt_host_name ||':'||:global.clnt_ip_addr
,'Logon'
,:logon.usr_id
,'Not SMS User'
,:logon.usr_id
,'sms0000');
     error_message := 'Logon to SMS Denied';
sms_code.error_message('SMS-'||to_char(0000003)||': '||error_message,'', 'E', 'SMS');
end if;
close usr;
if fail_cnt > fail_limit then
               sms_alog.record(:global.clnt_user
,:global.clnt_host_name ||':'||:global.clnt_ip_addr
,'Logon - PWD'
,:logon.usr_id ||':'||fail_cnt||':'||fail_limit
,'Password retry limit exceeded'
,:logon.usr_id
,'sms0000');
     error_message := 'Password error limit have been exceeded contact the Administrator';
sms_code.error_message('SMS-'||to_char(0000014)||': '||error_message,'', 'E', 'SMS');
end if;      
if pwd <> sms_secure.crypt('USR',usr_id,:logon.pwd) then
sms_global.set_user_id(:logon.usr_id);
     update sms_users
     set login_failure_count = nvl(login_failure_count,0) + 1
     where id = usr_id
     :system.message_level := 15;
               sms_alog.record(:global.clnt_user
,:global.clnt_host_name ||':'||:global.clnt_ip_addr
,'Logon - PWD Error'
,:logon.usr_id ||':'||:logon.pwd
,'Wrong user Password'
,:logon.usr_id
,'sms0000');
     commit;
     :system.message_level := msg_lvl;
     error_message := 'Logon to SMS Denied';
sms_code.error_message('SMS-'||to_char(0000003)||': '||error_message,'', 'E', 'SMS');
else
     if fail_cnt > 0 then
     update sms_users
     set login_failure_count = 0
     where id = usr_id
               sms_alog.record(:global.clnt_user
,:global.clnt_host_name ||':'||:global.clnt_ip_addr
,'Logon - PWD Correct'
,:logon.usr_id
,'Reset Failed count'
,:logon.usr_id
,'sms0000');
     :system.message_level := 15;
     commit;
     :system.message_level := msg_lvl;
end if;           
               sms_alog.record(:global.clnt_user
,:global.clnt_host_name ||':'||:global.clnt_ip_addr
,'Logon - PWD Correct'
,:logon.usr_id
,'Success'
,:logon.usr_id
,'sms0000');
end if;
if trunc(pwd_dt + pwd_dt_period) < sysdt then
     login_pwd_title;
hide_an_item('logon.new_pwd1',1);
hide_an_item('logon.new_pwd2',1);
               sms_alog.record(:global.clnt_user
,:global.clnt_host_name ||':'||:global.clnt_ip_addr
,'Logon - PWD Expired'
,:logon.usr_id
,'Password use Expired'
,:logon.usr_id
,'sms0000');
     error_message := 'Password Expired. Please change password.';
sms_code.error_message('SMS-'||to_char(0000004)||': '||error_message,'', 'E', 'SMS');
end if;      
sms_global.set_user_id(:logon.usr_id);
:global.User := :logon.usr_id;
validate_usr_profiles (:logon.usr_id);
END;
and my validate_usr_profiles is
PROCEDURE validate_usr_profiles (i_usr varchar2) IS
cnt number := 0;
clnt_user varchar2(80);
clnt_ip_addr varchar2(30);
clnt_host_name varchar2(80);
novell_user number;
single_terminal number;
found boolean;
l_usr_id integer;
BEGIN
select count(*) ,usr.id
into cnt,l_usr_id
from sms_user_roles urol
,sms_users usr
where user_id = i_usr
and usr.id = usr_id
group by usr.id
if cnt = 0 then
     sms_code.error_message('SMS-'||to_char(0000020)||':No profiles have been granted.', '', 'E', 'SMS');
     exit_form;
end if;     
novell_user := sms_global.ref_code('SMS','NOVELL_USER',1,1);
if novell_user = 1 then
     if lower(:global.clnt_user) <> lower(i_usr) then
          sms_alog.record(:global.clnt_user
,:global.clnt_host_name ||':'||:global.clnt_ip_addr
,'Logon'
,i_usr ||':'||novell_user
,'Not Novell User'
,i_usr
,'sms0000');
          sms_code.error_message('SMS-'||to_char(0000019)||':User id not same as Host User.', clnt_user, 'E', 'SMS');
     end if;
end if;      
single_terminal := sms_global.ref_code('SMS','SINGLE_TERMINAL',1,1);
if single_terminal = 1 then
     found := false;
     for c_uscon in (select * from sms_user_session_controls
     where usr_id = l_usr_id ) loop
     found := true;      
     if c_uscon.status = 0 then -- not logged on
     update sms_user_session_controls
     set status = 1
     ,status_date = sysdate
     ,computer_name = :global.clnt_host_name
     ,ip_addr = :global.clnt_ip_addr
     ,connections = 1
     where usr_id = l_usr_id
     commit;
     else
     if c_uscon.computer_name = :global.clnt_host_name
     and c_uscon.ip_addr = :global.clnt_ip_addr then
     update sms_user_session_controls
     set status_date = sysdate
     ,connections = connections + 1
     where usr_id = l_usr_id
     commit;
     else
          sms_alog.record(:global.clnt_user
,:global.clnt_host_name ||':'||:global.clnt_ip_addr
,'Logon'
,c_uscon.computer_name ||':'||:global.clnt_host_name||':'||c_uscon.ip_addr||':'||:global.clnt_ip_addr
,'Multiple Session Failure'
,i_usr
,'sms0000');
          sms_code.error_message('SMS-'||to_char(0000021)||':User Logged onto computer ', c_uscon.computer_name, 'E', 'SMS');
     end if;
     end if;
end loop;
     if not found then
          insert into sms_user_session_controls
          (usr_id,computer_name,ip_addr,status,status_date,connections)
          values
          (l_usr_id,:global.clnt_host_name,:global.clnt_ip_addr,1,sysdate,1);
          commit;
     end if;
end if;      
check_application_system;
END;
if there is more information you like from me ,you can ask
my login_pwd_title sp is
PROCEDURE login_pwd_title IS
BEGIN
set_item_property('logon.CHANGE_PWD',label,'Login & Change Password');
END;
and my perform_sdms_new_password sp ;
PROCEDURE perform_sdms_new_password IS
error_message varchar2(100);
usr_id integer;
fail_cnt integer;
fail_limit integer;
pwd_dt date;
pwd varchar2(50);
pwd_dt_period integer;
pwd_history sms_users.pwd_history%type;
sysdt date;
pwd_length integer;
pwd_special integer;
pwd_numeric integer;
pwd_alpha integer;
pwd_list integer;
o_aplha integer;
o_number integer;
o_special integer;
new_pwd sms_users.pwd%type;
prev_pwd sms_users.pwd%type;
new_pwd_history sms_users.pwd_history%type;
msg_lvl varchar(20) := :system.message_level;
cursor usr is
select id,pwd_change_dt,sysdate,pwd,pwd_history,login_failure_count
from sms_users
where user_id = :logon.usr_id
--and   pwd     = sms_secure.crypt('USR',id,:logon.pwd)
BEGIN
set_clnt_details;     
if get_item_property('logon.new_pwd1',visible) = 'FALSE' then
hide_an_item('logon.new_pwd1',1);
hide_an_item('logon.new_pwd2',1);
else
if :logon.usr_id is null then
     error_message := 'User id must be specified';
sms_code.error_message('SMS-'||to_char(0000001)||': '||error_message,'', 'E', 'SMS');
end if;
if :logon.pwd is null then
     error_message := 'Password must be specified';
sms_code.error_message('SMS-'||to_char(0000002)||': '||error_message,'', 'E', 'SMS');
end if;
pwd_dt_period := sms_global.ref_code('SMS','PWD_PERIOD',30,1);
fail_limit := sms_global.ref_code('SMS','PWD_FAIL_LIMIT',3,1);
open usr;
fetch usr into usr_id,pwd_dt,sysdt,pwd,pwd_history,fail_cnt;
if usr%NOTFOUND then
close usr;
          sms_alog.record(:global.clnt_user
,:global.clnt_host_name ||':'||:global.clnt_ip_addr
,'Logon'
,:logon.usr_id
,'Not SMS User'
,:logon.usr_id
,'sms0000');
     error_message := 'Logon to SMS Denied';
sms_code.error_message('SMS-'||to_char(0000003)||': '||error_message,' Password can only change after a successful logon', 'E', 'SMS');
end if;
close usr;
if fail_cnt > fail_limit then
               sms_alog.record(:global.clnt_user
,:global.clnt_host_name ||':'||:global.clnt_ip_addr
,'Logon - PWD'
,:logon.usr_id ||':'||fail_cnt||':'||fail_limit
,'Password retry limit exceeded'
,:logon.usr_id
,'sms0000');
     error_message := 'Password error limit have been exceeded contact the Administrator';
sms_code.error_message('SMS-'||to_char(0000014)||': '||error_message,'', 'E', 'SMS');
end if;      
if pwd <> sms_secure.crypt('USR',usr_id,:logon.pwd) then
     error_message := 'Logon to SMS Denied';
sms_global.set_user_id(:logon.usr_id);
     update sms_users
     set login_failure_count = nvl(login_failure_count,0) + 1
     where id = usr_id
                    sms_alog.record(:global.clnt_user
,:global.clnt_host_name ||':'||:global.clnt_ip_addr
,'Logon - PWD Error'
,:logon.usr_id ||':'||:logon.pwd
,'Wrong user Password'
,:logon.usr_id
,'sms0000');
     :system.message_level := 15;
     commit;
     :system.message_level := msg_lvl;
sms_code.error_message('SMS-'||to_char(0000003)||': '||error_message,'', 'E', 'SMS');
end if;
if :logon.new_pwd1 is null then
     error_message := 'New Password must be specified';
sms_code.error_message('SMS-'||to_char(0000005)||': '||error_message,'', 'E', 'SMS');
end if;      
pwd_length := sms_global.ref_code('SMS','PWD_LENGTH',6,1);
pwd_special := sms_global.ref_code('SMS','PWD_SPECIAL',1,1);
pwd_numeric := sms_global.ref_code('SMS','PWD_NUMERIC',1,1);
pwd_alpha := sms_global.ref_code('SMS','PWD_ALPHA',1,1);
pwd_list := sms_global.ref_code('SMS','PWD_LIST',24,1);
if length(:logon.new_pwd1) < pwd_length then
     error_message := 'New Password must be of length ';
sms_code.error_message('SMS-'||to_char(0000009)||': '||error_message,' ' || pwd_length ||' characters', 'E', 'SMS');
end if;
find_special(:logon.new_pwd1,o_aplha,o_number,o_special);
if o_special < pwd_special then
     error_message := 'New Password must contain at least ';
sms_code.error_message('SMS-'||to_char(0000010)||': '||error_message,' ' || pwd_special ||' special characters', 'E', 'SMS');
end if;      
if o_number < pwd_numeric then
     error_message := 'New Password must contain at least ';
sms_code.error_message('SMS-'||to_char(0000011)||': '||error_message,' ' || pwd_numeric ||' numeric(s)', 'E', 'SMS');
end if;      
if o_aplha < pwd_alpha then
     error_message := 'New Password must contain at least ';
sms_code.error_message('SMS-'||to_char(0000011)||': '||error_message,' ' || pwd_alpha ||' alphabetic charater(s)', 'E', 'SMS');
end if;      
if :logon.new_pwd1 = :logon.pwd then
     error_message := 'New Password can not be the same as old password';
sms_code.error_message('SMS-'||to_char(0000006)||': '||error_message,'', 'E', 'SMS');
end if;      
if :logon.new_pwd1 <> nvl(:logon.new_pwd2,:logon.pwd) then
     error_message := 'New password are not equal values - retry';
sms_code.error_message('SMS-'||to_char(0000007)||': '||error_message,'', 'E', 'SMS');
end if;      
for i in 1..pwd_list loop
     if utility.get_field(i,pwd_history||'~~','~') is null then
          exit;
     end if;
prev_pwd := sms_secure.decrypt('USR',usr_id,utility.get_field(i,pwd_history,'~'));
     if :logon.new_pwd1 = prev_pwd then
               sms_alog.record(:global.clnt_user
,:global.clnt_host_name ||':'||:global.clnt_ip_addr
,'Logon - PWD Used'
,:logon.usr_id
,'Password have been used'
,:logon.usr_id
,'sms0000');
     error_message := 'New password was found in history list - retry';
sms_code.error_message('SMS-'||to_char(0000012)||': '||error_message,'', 'E', 'SMS');
end if;           
end loop;
new_pwd := sms_secure.crypt('USR',usr_id,:logon.new_pwd1);
new_pwd_history := utility.put_hash(pwd_list,'~');
for i in 1..pwd_list loop
     new_pwd_history := utility.put_field(i+1,utility.get_field(i,pwd_history,'~'),new_pwd_history,'~');
end loop;
new_pwd_history := utility.put_field(1,new_pwd,new_pwd_history,'~');
update sms_users
set pwd = new_pwd
,pwd_history = new_pwd_history
,pwd_change_dt = sysdate
where user_id = :logon.usr_id
               sms_alog.record(:global.clnt_user
,:global.clnt_host_name ||':'||:global.clnt_ip_addr
,'Logon - PWD Change'
,:logon.usr_id
,'Success'
,:logon.usr_id
,'sms0000');
commit;
sms_global.set_user_id(:logon.usr_id);
:global.User := :logon.usr_id;
validate_usr_profiles (:logon.usr_id);
end if;
END;
i hope this will make it clear of what am trying to achive your help will be appriciated
Edited by: user603350 on 2012/01/04 10:48 AM

On your login page have 2 fields for username and password. On the button click call a AM Impl method which calls your above procedure passing the required fields.
This is the way you can call a prodecure/function from AM IMPL
cstmt = getDBTransaction().createCallableStatement("{call pkg.procedurename(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}", getDBTransaction().DEFAULT);

Similar Messages

  • Oracle Forms Developer 11g - OAF - ADF ????

    Hi
    i am a newbie  in these terms and hence don't know much of the difference ....
    I completed OCA developer and now i don't know what to choose next ???
    what i have seen online about next certification path is
    http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=5001&get_params=p_exam_id:1Z0-151&p_org_id=&lang=
    that is Oracle Fusion Middleware 11g: Build Applications with Oracle Forms
    also i saw some hype about ADF and OAF well being newbie i dont know what is the difference or either i can't find each of these in the Certification lists.
    what i assumed is OAF is the same as Oracle Fusion Middleware 11g: Build Applications with Oracle Forms
    but where is the certification of ADF ??? any link 
    also what to choose regardless of what i have in mind.
    Thanks
    Regards
    Hassan Siddique

    Hassan,
    OAF is not forms and it's not ADF either. These are different products targeting different markets.
    OAF (Oracle Application Framework - Wikipedia, the free encyclopedia)
    Oracle Application Framework (OA Framework or OAF) is a proprietary framework developed by Oracle Corporation for application development within the Oracle E-Business Suite (EBS)
    ADF (Oracle Application Development Framework - Wikipedia, the free encyclopedia)
    In computing, Oracle Application Development Framework, usually called Oracle ADF, provides a commercial Java framework for building enterprise applications. It provides visual and declarative approaches to Java EE development. It supports rapid application development based on ready-to-use design patterns, metadata-driven and visual tools.
    Forms (Oracle Forms - Wikipedia, the free encyclopedia)
    Oracle Forms is a software product for creating screens that interact with an Oracle database. It has an IDE including an object navigator, property sheet and code editor that uses PL/SQL. It was originally developed to run server-side in character mode terminal sessions. It was ported to other platforms, including Windows, to function in a client–server environment. Later versions were ported to Java where it runs in a Java EE container and can integrate with Java andweb services.
    The primary focus of Forms is to create data entry systems that access an Oracle database.
    For more information you can use google and search for "oracle oaf" or "oracle adf" or "oracle forms"
    Timo

  • How to enable 'login assitance' in oracle apps login screen?

    Hi experts,
    I want to enable the login assitance option in oracle apps Initial screen(User login screen). Please guide me
    Thanks & Regards,
    Kanish

    Kanish wrote:
    It can be done through personalization for my version 12.1.1
    Thanks
    kanishYes.
    Tips For Personalizing The E-Business Suite R12 Login Page (MainLoginPG) [ID 741459.1]
    How to change text of "Login Assistance" link in login page for Oracle Applications R12 [ID 561403.1]
    Thanks,
    Hussein

  • Oracle forms login problem

    it asked me to log on, i typed:
    Username: oracle, Password: password, Database: orcl
    i get the error, TNS: could not resolve the connect identifier specifiec
    Can please some1 help
    Thanks

    is this how my file should look like now:
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.93.130)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = PLSExtProc)
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.93.130)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    )

  • Use formsweb.cfg to pre-populate database field on login screen?

    Hello,
    Is it possible to configure formsweb.cfg to pre-populate the 'Database' field on the Oracle forms login screen? I still want users to be able to overwrite what's entered there but just have it populated with something by default.
    Thanks,
    Andrew
    Edited by: Andrew V on Nov 16, 2011 12:33 PM

    Hi,
    In Forms 10g you can set the userid parameter to something like "@DATABASEID LOGON_SCREEN=YES", where databaseid is your database server.
    In Forms 11g this doesn't work so well, but I got round this by doing the following in our menu form, if you haven't got a single menu form then you may need to do this in all your forms where the user isn't already logged on when the form opens.
    First off you need to set the userid parameter to something like "@DATABASEID".
    Next an on-logon trigger is required in your menu or first form, I used the following:
    on-logon trigger
    DECLARE
    cn VARCHAR2(80);
    BEGIN
    ** Get the connection info
    ** If userid paramater in formsweb.cfg is set to '@<database>' or
    ** '@<database> login_screen=true' then this will put <database> into database field
    ** in default logon form
    cn := Get_application_property(CONNECT_STRING);
    if instr(cn,' ') > 0
    then
    cn := substr(cn,1,instr(cn,' ')-1);
    end if;
    LOGON(null,'@'||cn,TRUE);
    if form_success
    then :global.login_success := 'TRUE';
    end if;
    END;
    Also, to deal with the situation where a user decides to click cancel in the logon screen, you need to put the following at the start of your wnfi trigger.
    when-new-forms-instance trigger
    default_value('FALSE','global.login_success');
    if :global.login_success != 'TRUE'
    then
    erase('global.login_success');
    exit_form;
    end if;
    erase('global.login_success');
    Edited by: Ady Keeling on Nov 16, 2011 2:38 PM

  • ORACLE 11G: Embedding an ORACLE Form within an ADF JSF page

    We are currently reviewing the options available to allow us to embed an ORACLE 11G form within an ADF application (11.1.1.4), we are aware of the 'oraformsfaces' functionality but wanted to ask whether there were any other options available to us within ORACLE 11G?
    The reason for the question is that we were informed by ORACLE prior to upgrading to ORACLE 11G that the facility to embed an ORACLE form was 'standard' within ADF 11G hence the reason for upgrading.
    Thanks in Advance!
    Neil

    As I noted before, when you seamless, if you mean the user will be unaware that he has switched from a Forms app to an ADF app then I think he will notice - some clever integration of things like JS maps and Graphs might be seamless but a complete ADF app would be obvious to a user. Physically the Forms widgets are a different technology to ADF Faces - you can get the colors the same, you can event get the widgets the same size but it will pretty much be impossible to get the same because you are not comparing apples and apples.
    Regarding your questions
    1) Do you mean the time it takes to start up the applet? Possible longer than ADF but not necessarily
    2) Each form runtime process will have its own database connection and each user has his own applet.
    3) "Considerable" is subjective - it will involve some work but we specifically built the JS api to help
    Your last point - are you refering to "evolve core business logic into a common layer" what I mean here is that if you have a business process (e.g. hire_employee) which involves creating a new record,ordering a laptop and getting a security pass - then you could take that code out of Forms and put it somewhere else. You could then call that code from Forms (your old apps that you still need) and also call it from your new apps (so calll that code rather than calling the Forms application to do the job). - Of course, there is effort involved there...
    One final point to make ADF is NOT Forms - its not the "new" Forms and it doesn't replace Forms - so any change between Forms and ADF is by no means "go to the next version" - they are different technologies with different sweet spots - moving one to the other will be a considerable effort, and I would say one which should also accompany business process changes (if possible) as well..
    Hope this helps
    Grant

  • ORA-12560: TNS:protocol adapter error while running Oracle Form 10g over IE

    Hi,
    I am getting the following error message while running my form over Internet Explorer. What could be the error and the solution.
    ORA-12560: TNS:protocol adapter error
    I am using the same user id/password that i used to create the database.
    Plz help.
    thanks,
    RV

    unless you defined the TWO_TASK in your environment, you might need to provide it during the login. The typical Forms login screen has 3 fields, username/password and TWO_TASK , which is the alias used for the database server in the tnsnames.ora file on your end. If you are using iAS forms, then a proper RAD (Resource Access Descriptor) needs to be created by the DBA or whoever manages the iAS server. This is only if SSO is utilized, if not, then you need to provide TWO_TASK as well.
    Hope this proves useful
    R/ Zafer

  • Help: FORMS Oracle login screen

    Hi,
    I am working on an Oracle FORMS application. When this pass to the user, we do not want to know or to type which Oracle DB they are logging in, but the user name and password.
    Question: Is there are way to modify the FORMS default login screen to achieve the above task and allow me to modify the appearance to make it the way users want?
    Any suggestions are greatly appreciated.
    Thanks.
    Jimmy

    You can write your own "logon"-fmb. start if giving a "dummy-connection", retrieve the SID using GET_APPLICATION_PROPERTY(CONNECT_STRING) and offers the fields for username and password (and of course, the logon-button). When user clicks on Login, do a LOGOUT and LOGON again using the enterd values and the formerly retrievred SID.

  • Oracle Forms 11g Login Screen Not Appearing

    Environment:
    1 PC running RHEL5 (Red Hat Enterprise Linux version 5) Operating System 64-bit with Oracle Database 11g (64-bit)
    1 PC running RHEL5 (Red Hat Enterprise Linux version 5) Operating System 32-bit with Oracle Fusion Middleware 11g (64-bit), plus Oracle WebLogic Server 32-bit
    1 PC windows (work PC) is the client so just using any browser to connect to the application
    Trying to run a sample form, and have all processes started (nodemanager, weblogic, opmn, emagent, emctl), database listener, database started up, but when the Oracle Forms Services splash screen display comes up, it just hangs and the default Oracle login screen does not appear. I'm at a loss. I moved my 3 pcs thus got new IP addresses via the DHCP network. Setup the TNSNAMES.ORA with the IP address of the db machine in the file of the webserver machine. Can connect directly on the machine, can connect via TOAD, SQL+ but not when launching a form. Any clues?
    Thanks,
    GJ

    FormsEleven wrote:
    Did you start Managed servers like WLS_FORMS .. Well when I go to the AdminConsole for the FormsDomain, I see 3 servers with a status of "RUNNING": AdminServer, WLS_FORMS, WLS_REPORTS. Then when I go to the Enterprise Manager for the FormsDomain I see all domains with all the servers (AdminServer, WLS_FORMS, WLS_REPORTS), in a green status up and running (100%).
    I made sure I started the NodeManager, WebLogicServer scripts.
    FormsEleven wrote:
    What is the ports you are using to run the form.?8888
    FormsEleven wrote:
    Did the test Form came up fine?No. I even created a simple form to look at the default Oracle "emp" table, and nothing comes up.

  • Login Screen in Oracle forms builder 6i

    Hello everyone
    I am trying to create a canvas with a login screen and password in oracle forms builder 6i.
    So far I have create the following table:
    CREATE TABLE PASSWORD
    (USER_ID NUMBER(3)
    CONSTRAINT PASSWORD_USER_ID_PK PRIMARY KEY,
    PASSWORD VARCHAR2(20) NOT NULL);
    Inserted the following values:
    INSERT INTO PASSWORD (USER_ID,PASSWORD)
    VALUES (1,1010);
    INSERT INTO PASSWORD (USER_ID,PASSWORD)
    VALUES (2,2020);
    Created a MENU canvas with a LOGIN button TI_USER_ID and TI_PASSWORD text boxes.
    In the LOGIN button i have inserted the following WHEN-BUTTON-PRESSED trigger:
    BEGIN
    SELECT USER_ID
    INTO :GLOBAL.USER_ID
    FROM PASSWORD
    WHERE USER_ID = :LOGIN.TI_USER_ID
    AND PASSWORD= :LOGIN.TI_PASSWORD;
    GO_BLOCK('PASSWORD');
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    :GLOBAL.COUNT := :GLOBAL.COUNT + 1;
    IF :GLOBAL.COUNT = 1 THEN
    MESSAGE('wrong');
    MESSAGE('wrong');
    ELSIF
    :GLOBAL.COUNT = 2 THEN
    MESSAGE('wrong');
    MESSAGE('wrong');
    ELSIF
    :GLOBAL.COUNT = 3 THEN
    EXIT_FORM;
    END IF;
    END;
    When i try to compile that it gives an error Bad bind variable LOGIN.TI_USER_ID
    Bad bind variable LOGIN.TI_PASSWORD
    What am i doing wrong?

    989056 wrote:
    Ok i changed the button to contain only the following:
    BEGIN
    SELECT USER_ID
    INTO :GLOBAL.USER_ID
    FROM PASSWORD
    WHERE USER_ID = :PASSWORD.TI_USER_ID
    AND PASSWORD= :PASSWORD.TI_PASSWORD;
    GO_ITEM('GO_REVIEWS');
    END;
    when i now press login it gives an error FRM 40735: WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-01403
    i tried to reffer to several items in several blocksi suspect that when you removed the exception it ends up with the no data found error. you need not to remove the exception clause try to bring that back. then try in SQL*Plus to see if your query returns any rows with the same data that you are attempting to use in your TI_USER_ID and TI_PASSWORD block item. if it does not return that is the cause of your issue it will not execute the GO_ITEM() command it will simply go to the exception clause.

  • Calling Java screens from Oracle Forms application

    I am working with a client that has a large Oracle forms application. Since rewriting the entire application in Java is not an option at this time, the strategic direction is that any new modules that are to be created for the application are to be done in Java and called from the Forms menu. The decision as to what tool to use to develop the Java modules is still under debate. What is the best (most seamless) way to do this...calling a Java screen from a Forms application? If anyone has any experience in this, or can direct me to some literature on it, it would be greatly appreciated. Thanks.

    This is a web app in Forms/Reports 10g R2 running off Oracle AS and an Oracle db. The challenge for us is that the direction is that any new enhancements (screens) are to be built using Java (in either ADF Faces or Swing, another point for debate later) and then called from the Forms app. The business client is only paying for the enhancement. They don't care about moving off Forms to Java, so any extra work on the part of IT to do this, has to be fairly minimal and doable within the project budget. The movement to Java is an IT direction. Is there a way to do this without having to build a java framework for the entire Forms application (which I assume would take some time and involve retesting the entire app)?

  • How to convert oracle forms to adf

    I want to convert oracle forms to adf
    Edited by: user4435615 on 2013-3-22 下午8:23

    ADF Equivalents of Common Oracle Forms Triggers
    http://www.oracle.com/technetwork/developer-tools/jdev/index-092937.html
    Case Study: Redeveloping an Oracle Forms application using Oracle JDeveloper 11g and Oracle ADF 11g
    http://www.oracle.com/technetwork/developer-tools/jdev/redeveloping-forms-in-adf-11g-1-133095.pdf
    Migrating Forms to Java or ADF, the truth and no FUD
    https://blogs.oracle.com/grantronald/category/Oracle/Oracle+Forms+to+ADF
    Timo

  • Integration oracle forms with ADF

    Hi
    Please provide me the steps for integration of oracle forms with ADF or any live example.
    It is very urgent. Please help...

    Hi,
    Please watch the below video. This will help you to get started .
    ADF Insider - Redeveloping and Oracle Forms Application using Oracle ADF

  • ADF form login vs. press enter

    I use the default ADF form login, however, it requires a mouse click, and not responding to the "press enter/return". Any idea?
    Thanks,

    Thanks, Frank. I actually used a custom LoginPage.jspx, NOT the default HTML form login:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document title="Form Login" id="d1">
    <af:form id="f1">
    <af:message id="m1"/>
    <af:panelBox text="Login" id="pb1"
    inlineStyle="width:300px; height:200.0px;">
    <af:panelFormLayout id="pfl1">
    <f:facet name="footer">
    <af:panelBorderLayout id="pbl1"
    inlineStyle="height:20.0px; "
    styleClass="AFStretchWidth">
    <f:facet name="start">
    <af:commandButton text="Login" id="cb1"
    action="#{loginBean.doLogin}"/>
    </f:facet>
    </af:panelBorderLayout>
    </f:facet>
    <af:inputText label="User Name" id="it1" required="true"
    value="#{loginBean.username}"/>
    <af:inputText label="Password" id="it2" required="true"
    secret="true"
    value="#{loginBean.password}"/>
    </af:panelFormLayout>
    </af:panelBox>
    <f:facet name="toolbar"/>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>

  • Opening and Oracle Form (D2K) from ADF

    Hi, We have requirement for developing new module in ADF, in parallel with our Oracle Application instance.
    I would like to know, if there is any option to Open the Oracle Apps Sales Order form directly from the new ADF module, by clicking on a button.
    Thanks,
    Aneesh

    I could get the URL, but the URL contains an ICX_TICKET number, which is generated dynamically by Oracle Apps. So I can't use a static URL for this.
    Do you know how I can use or generate an ICX_TICKET in runtime? My user will have an active Oracle Application screen opened along with ADF web page. He want to navigate to Oracle Apps screen from ADF page. Hopes this makes the requirement more clear.
    Thanks for your time,
    Aneesh

Maybe you are looking for