chalie001
asked on
re-write 6i code in 11g forms
hi how can i re-write this code in 11gR2 as set_input_focus is absolute
procedure PROC_FLD is
BEGIN
if name_in('system.current_field') = 'SCR_NOHLP_FIRST_FIELD' then
set_input_focus (menu);
end if;
END;
As an addition to johnsone's answer you can also use Migration Assistant - frmplsqlconv.bat (it is a part of Forms installation).
ASKER
i did i replace it with null but how can i replace as it is absolute and how can i do batch compile of library and forms
ASKER
am geting this error when i run migration assistance
Log written into File - C:\MigrationLog\logliib209 22
processing ....
Log - C:\migrationform\CALMAIN.F MB touched : Mon Feb 02 14:55:46 CAT 2015
ERROR opening C:\migrationform\CALMAIN.F MB :oracle.forms.jdapi.JdapiE xception: FRM-10102: Cannot attach PL/SQL library LSPL_SET_LOV_VALID_USER_UN IT. This library attachment will be lost if the module is saved.
FRM-10102: Cannot attach PL/SQL library LGNL0001. This library attachment will be lost if the module is saved.
Check subclass and library dependencies
Log - C:\migrationform\CALMAIN.F MB released : Mon Feb 02 14:55:47 CAT 2015
-------------------------- ---------- ---------- ---------- ----
[End of Log]
Log written into File - C:\MigrationLog\logliib209
processing ....
Log - C:\migrationform\CALMAIN.F
ERROR opening C:\migrationform\CALMAIN.F
FRM-10102: Cannot attach PL/SQL library LGNL0001. This library attachment will be lost if the module is saved.
Check subclass and library dependencies
Log - C:\migrationform\CALMAIN.F
--------------------------
[End of Log]
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
According to that documentation:
** Built-in: SET_INPUT_FOCUS
** Example: Directs the users input focus to the Menu when
** used with the only support parameter, MENU.
** Only has an effect on character-mode or
** block-mode devices.
*/
As this is cross posted in web development and java areas, I'm guessing your forms are not being run in character mode. I believe that you can just remove the call to the function without changing functionality.
That is backed up by the last comment in this post -> https://community.oracle.com/thread/943276