Thursday, November 30, 2006
Tuesday, November 28, 2006
Demo Script (Win) - Migrating & compiling forms application
@ECHO OFF
REM WINDOWS Migrate FORMS
Echo migrating Forms....
del E:\Logs\*.log
Echo *************************** start ******************************************
set forms_path=D:\oracle\OraMT\forms;E:\apps\forms;E:\apps\lib;E:\apps\menu;E:\apps\pll;E:\apps\template
del E:\apps\pll\*.plx
del E:\apps\pll\*.err
e:
cd E:\apps\pll
for %%f IN (*.pll) do frmcmp Module_type=LIBRARY Module=%%f userid=username/password@database upgrade=yes batch=yes window_state=minimize compile_all=yes
ECHO FINISHED Migrating PLL
del E:\apps\template\*.fmx
del E:\apps\template\*.err
e:
cd E:\apps\template
for %%f IN (*.fmb) do call frmplsqlconv mode=batch module=%%f userid=username/password@database log=e:\logs\%%f.log
for %%f IN (*.fmb) do frmcmp Module_type=form Module=%%f userid=username/password@database upgrade=yes batch=yes window_state=minimize compile_all=yes
ECHO FINISHED Migrating Temaplate
del E:\apps\menu\*.mmx
del E:\apps\menu\*.err
e:
cd E:\apps\menu
for %%f IN (*.mmb) do call frmplsqlconv mode=batch module=%%f userid=username/password@database log=e:\logs\%%f.log
for %%f IN (*.mmb) do frmcmp Module_type=menu Module=%%f userid=username/password@database upgrade=yes batch=yes window_state=minimize compile_all=yes strip_source=NO
ECHO FINISHED Migrating Menus
del E:\apps\forms\*.fmx
del E:\apps\forms\*.err
e:
cd E:\apps\forms
for %%f IN (*.fmb) do call frmplsqlconv mode=batch module=%%f userid=username/password@database log=e:\logs\%%f.log
for %%f IN (*.fmb) do frmcmp Module_type=form Module=%%f userid=username/password@database upgrade=yes batch=yes window_state=minimize compile_all=yes strip_source=NO
ECHO FINISHED Migrating Forms
Echo *************************** end *****************************************
REM WINDOWS Migrate FORMS
Echo migrating Forms....
del E:\Logs\*.log
Echo *************************** start ******************************************
set forms_path=D:\oracle\OraMT\forms;E:\apps\forms;E:\apps\lib;E:\apps\menu;E:\apps\pll;E:\apps\template
del E:\apps\pll\*.plx
del E:\apps\pll\*.err
e:
cd E:\apps\pll
for %%f IN (*.pll) do frmcmp Module_type=LIBRARY Module=%%f userid=username/password@database upgrade=yes batch=yes window_state=minimize compile_all=yes
ECHO FINISHED Migrating PLL
del E:\apps\template\*.fmx
del E:\apps\template\*.err
e:
cd E:\apps\template
for %%f IN (*.fmb) do call frmplsqlconv mode=batch module=%%f userid=username/password@database log=e:\logs\%%f.log
for %%f IN (*.fmb) do frmcmp Module_type=form Module=%%f userid=username/password@database upgrade=yes batch=yes window_state=minimize compile_all=yes
ECHO FINISHED Migrating Temaplate
del E:\apps\menu\*.mmx
del E:\apps\menu\*.err
e:
cd E:\apps\menu
for %%f IN (*.mmb) do call frmplsqlconv mode=batch module=%%f userid=username/password@database log=e:\logs\%%f.log
for %%f IN (*.mmb) do frmcmp Module_type=menu Module=%%f userid=username/password@database upgrade=yes batch=yes window_state=minimize compile_all=yes strip_source=NO
ECHO FINISHED Migrating Menus
del E:\apps\forms\*.fmx
del E:\apps\forms\*.err
e:
cd E:\apps\forms
for %%f IN (*.fmb) do call frmplsqlconv mode=batch module=%%f userid=username/password@database log=e:\logs\%%f.log
for %%f IN (*.fmb) do frmcmp Module_type=form Module=%%f userid=username/password@database upgrade=yes batch=yes window_state=minimize compile_all=yes strip_source=NO
ECHO FINISHED Migrating Forms
Echo *************************** end *****************************************
Demo script (Linux) - Compiling forms application
setenv FORMS_PATH=$ORACLE_HOME/forms;/apps/forms;/apps/lib;/apps/menu;/apps/pll;/apps/template
export FORMS_PATH
rm /apps/pll/*.plx
rm /apps/pll/*.err
cd /apps/pll
for file in *.pll do frmcmp_batch.sh Module_type=LIBRARY Module=$ff userid=username/password@database upgrade=yes batch=yes window_state=minimize compile_all=yes
done
rm /apps/template/*.fmx
rm /apps/template/*.err
cd /apps/template
for file in *.fmb do frmcmp_batch.sh Module_type=form Module=$ff userid=username/password@database upgrade=yes batch=yes window_state=minimize compile_all=yes
done
rm /apps/menu\*.mmx
rm /apps/menu/*.err
cd /apps/menu
for file in *.mmb do frmcmp_batch.sh Module_type=menu Module=$ff userid=username/password@database upgrade=yes batch=yes window_state=minimize compile_all=yes
done
rm /apps/forms/*.fmx
rm /apps/forms/*.err
cd /apps/forms
for file in *.fmb do frmcmp_batch.sh Module_type=form Module=$ff userid=username/password@database upgrade=yes batch=yes window_state=minimize compile_all=yes
done
export FORMS_PATH
rm /apps/pll/*.plx
rm /apps/pll/*.err
cd /apps/pll
for file in *.pll do frmcmp_batch.sh Module_type=LIBRARY Module=$ff userid=username/password@database upgrade=yes batch=yes window_state=minimize compile_all=yes
done
rm /apps/template/*.fmx
rm /apps/template/*.err
cd /apps/template
for file in *.fmb do frmcmp_batch.sh Module_type=form Module=$ff userid=username/password@database upgrade=yes batch=yes window_state=minimize compile_all=yes
done
rm /apps/menu\*.mmx
rm /apps/menu/*.err
cd /apps/menu
for file in *.mmb do frmcmp_batch.sh Module_type=menu Module=$ff userid=username/password@database upgrade=yes batch=yes window_state=minimize compile_all=yes
done
rm /apps/forms/*.fmx
rm /apps/forms/*.err
cd /apps/forms
for file in *.fmb do frmcmp_batch.sh Module_type=form Module=$ff userid=username/password@database upgrade=yes batch=yes window_state=minimize compile_all=yes
done
Tuesday, November 07, 2006
Fonts in Web Forms
How to control fonts in web form?:
There are 2 relevent config files:
1.\forms\java \oracle\forms\registry\Registry.dat
There are 2 relevent config files:
1.
server side file - no deployment problems
2. C:\Program Files\Oracle\JInitiator 1.3.1.22\lib\font.properties
client side file - instaled with the JInitiator and we will need to distribute the new file to the clients
The first file map font names from the forms application to java forn name:
default.fontMap.appFontnames=Courier New,Courier,courier,System......
default.fontMap.javaFontnames=MonoSpaced,MonoSpaced,Dialog,Serif.....
so that courier new will become monospace in the web application
and Courier =MonoSpaced
courier = Dialog
System = Serif
and so on.
If there is a font in the form that we want to change to another font then we need to add the font name and the java font name to the list.
Default Java fonts (case sensitive):
Monospaced (fixed length fonts)
Dialog
Serif
SansSerif
Now the second file: font.properties OR font.properties. (depends on the client's "regional setings")
In this file the first part maps jave font names to local font names.
For each java font there is maping to a local font with all different situations he might face (bold, Italic..).
e.g.
dialog.plain.0=Arial,DEFAULT_CHARSET
Dialog Java font will become Arial at the local machine.
monospaced.plain.0=Courier New,DEFAULT_CHARSET
MonoSpaced Java font will become Courier New at the local machine.
Later in this file we need to define where to find those fonts on the client:
filename.Arial=ARIAL.TTF
filename.Courier_New=COUR.TTF
Now the only problem is how to distribute this files to all client (hint - we use the JInitiator installation for it).
This will be coverd in a different post.
Cheers
2. C:\Program Files\Oracle\JInitiator 1.3.1.22\lib\font.properties
client side file - instaled with the JInitiator and we will need to distribute the new file to the clients
The first file map font names from the forms application to java forn name:
default.fontMap.appFontnames
default.fontMap.javaFontnames
so that courier new will become monospace in the web application
and Courier =MonoSpaced
courier = Dialog
System = Serif
and so on.
If there is a font in the form that we want to change to another font then we need to add the font name and the java font name to the list.
Default Java fonts (case sensitive):
Monospaced (fixed length fonts)
Dialog
Serif
SansSerif
Now the second file: font.properties OR font.properties.
In this file the first part maps jave font names to local font names.
For each java font there is maping to a local font with all different situations he might face (bold, Italic..).
e.g.
dialog.plain.0=Arial,DEFAULT_CHARSET
Dialog Java font will become Arial at the local machine.
monospaced.plain.0=Courier New,DEFAULT_CHARSET
MonoSpaced Java font will become Courier New at the local machine.
Later in this file we need to define where to find those fonts on the client:
filename.Arial=ARIAL.TTF
filename.Courier_New=COUR.TTF
Now the only problem is how to distribute this files to all client (hint - we use the JInitiator installation for it).
This will be coverd in a different post.
Cheers
Subscribe to:
Posts (Atom)