This document provides a checklist of steps to convert forms from 4.5 to 10G including:
1. Changing properties of windows, canvases, and items.
2. Modifying triggers, fields, and commands.
3. Updating calls to scripts, reports, and other programs.
4. Creating parameter forms for shell scripts.
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
Checklist forms conversion
1. Checklist for Changes to be done in forms conversion from 4.5 to 10G
FMB Name : ______________________
1. In the Form property palette, change
a. Mouse Navigation limit to Item.
b. Menu Module to be erased (Change from DEFAULT to null)
2. Select ROOT_WINDOW and set following in Properties window.
a. Set Maximize allowed to Yes
b. Set All others to No
3. Select each of all other windows and set following in Properties window.
a. Set Window Style to Dialog _______________________
b. Set Modal to Yes _______________________
c. Set Maximize allowed to No _______________________
d. Set Window title appropriately _______________________
4. In Each of the canvases, do the following
a. Increase size of single character to make it properly visible
b. Align the text in the canvas
c. Note the initial value in the property palette for Items used for displaying
text ,Delete each item and add simple text in it’s place.
d. Change font style and size of text if necessary
e. Select number fields and from layout menu select justify right
f. Select application_name and form_name fields and from layout menu
select JUSTIFY CENTER.
g. Set view port x and y positions to 0.
5. In When-New-Form-Instance trigger do the following
a. Remove statements used for creating the centering-effect in
application_name and form_name fields
b. Add 2 lines
Set_Window_Property(FORMS_MDI_WINDOW,window_state,MAXIMIZE);
Set_Window_Property(‘ROOT_WINDOW’,window_state,MAXIMIZE);
6. Commands involving ‘_field’
a. Display_field/set_field to be converted to
i. Set_item_property in case of single record block
ii. Set_item_instance_property in case of multi record block
b. Go_field to be changed to go_item
c. Next_field to be changed to next_item
d. Previous_field to be changed to previous_item
e. Cursor_field to be changed to cursor_item
f. Trigger_field to be converted to trigger_item
7. Drag and drop ALERTS_VAS library into the form
8. search message and replace with suitable alert .
9. Search pause, change to alert wherever necessary, remove if not necessary
10.Search exit_form, change to stop-alert wherever necessary
11.Replace execute_trigger(‘key-nxtfld’) with execute_trigger(‘key-next-item’)
2. 12.Replace initial value $$DATE$$ with $$DATETIME$$ in data type DATETIME
13.Replace “date between d1 and d2” style with “date>=d1 and date<=d2”. Ensure
whether time portion is required or not.
14.Replace ‘key-startup’ with ‘when-new-form-instance’ in execute_trigger.
15.In POST-QUERY, use parameter.other_sql_error coupled with abort_query and
run execute_trigger(‘when-new-item-instance’) immediately after execute_query.
16.Search HOST command and do following
a. If there is call to SQLPLUS, set path to
/wd/app10gas01/ppc/sql_scripts/sales/<script_name>. See SQL Scripts
b. If there is call to shell-scripts,
i. Convert into a new form. See Shell Scripts
c. If there is call to pc or pco,
i. Bring all parameter-accepting code from pc/pco to form
ii. Bring all checking-before-printfile-generation to form
iii. Bring all print-the-file to form
iv. Bring all update-after-print-confirmation to form
v. Call with /wd/app10gas01/ppc/<pc or pco>/sales/run/<prgname>
along with parameters.
For changes to be made in pco, see PC/PCO
d. If there is call to report, replace it with
$ORACLE_HOME/bin/rwclient
REPORT=/wd/app10gas01/ppc/rdf/sales/<repname>.rdf
USERID=user/pw@netstring DESTYPE=File
DESFORMAT=/wd/app10gas01/ppc/rdf/sales/dflt.prt
DESNAME=/wd/app10gas01/mossm/rep/<outfile>.txt BATCH=Yes
MODE=character PAGESIZE=80X66 <all other parameters>
e. If there is call to lopr, do the following.
i. Host(‘/usr/bin/cp <filename>.txt <filename>.rrpt’,NO_SCREEN);
f. If there is call to lopr/pg do the following
i. change it to web.show_document(‘http://’||
server_name||’:7778/mossm/’||output name<.txt or .rrpt>,’_blank’);
17. Search for CALL command and replace with
call_form(‘/wd/app10gas01/ppc/fmx/sales/’<fmx name>,HIDE,NO_REPLACE) ;
18.LOVs : Click more on Column mapping property in LOVs property palette and
change the column width of required column and also change the headings.
19.Remove .plg from the desktop after Conversion is final in all respects.
3. SQL SCRIPTS
• If the script is generating the output using spool command, change the sql
script spool path to /wd/app10gas01/mossm/rep/<spool file name> with
extension as .txt.
PC/PCO
• Change printfile path to /wd/app10gas01/mossm/rep/
• Change printfile extension to .txt
• Forward declaration in pc programs
• Remove call to system for printing/viewing the outputfile
• Remove confirm-and-update portion if any.
• Remove ask-parameters if any and instead make provision to accept from
command line arguments.
SHELL SCRIPTS
• Create a parameter form for accepting parameters.
o Create Canvas, create window. Set appropriate sizes for canvas and
window. Set Window style dialog and modal, with all the properties
like maximize allowed, minimize allowed, close/move allowed set to
No.
o Write code for validating the parameters in the individual fields and
also insert the code in button firing the report, so that the inability to
stop the mouse navigation is taken care.