Home » Developer & Programmer » Forms » How to load a form referring other modules by API?
icon8.gif  How to load a form referring other modules by API? [message #124662] Mon, 20 June 2005 17:21 Go to next message
jeffrey_li
Messages: 2
Registered: June 2005
Junior Member
I am trying to write a migration process for Oracle Forms
(6i and 9i) by API. However, some forms refers other module
types,such as Object library and/or PL/SQL library.
Before loading these forms, the referred modules must be
loaded into memory. Because all forms are processed in batch
mode, I have following issues.
1. How to identify a form if referring other modules
before loading?
For example, loading a form without any reference module
will be failed if loading reference modules in force
because my process is a batch mode.
2. If a form contains other reference modules, I guess
the reference modules must be loaded into memory
before loading the form.
METHOD-1: Form and reference modules use a common API
context. Here is a sample code.(6i)
-- NOTE: ctx is same for all modules
--------------------------------
attr.mask_d2fctxa = (ub4)0;
//create a common context
status = d2fctxcr_Create(&ctx, &attr);
if(status == D2FS_SUCCESS){
status = d2fctxcn_Connect(ctx, (text *)db_connect_str, NULL);
}
/* load pll before loading form */
if(status == D2FS_SUCCESS){
status = d2folbld_Load(ctx, &pll_ptr, (text *)pll_file_name, FALSE);
}

/* load olb before loading form */
if(status == D2FS_SUCCESS){
status = d2folbld_Load(ctx, &olb_ptr, (text *)olb_file_name, FALSE);
}

/* load form */
if(status == D2FS_SUCCESS){
// ******** FAILED AT HERE
status = d2ffmdld_Load(ctx, &fm_ptr, (text *)form_file_name, FALSE);
}
METHOD-2: Create different context for different modules.
However, how can I establish an internal relation
before loading a form?
-------------------------------------------------
Million thanks for any help.

Jeffrey Li
Re: How to load a form referring other modules by API? [message #124678 is a reply to message #124662] Mon, 20 June 2005 20:47 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
I am unable to answer the question you ask. However, why not use the Oracle conversion tool? If you want to work with APIs look at ForsmAPI Master from http://www.orcl-toolbox.com/.

David
Previous Topic: How to load a form referring other modules by API?
Next Topic: how to run form web server
Goto Forum:
  


Current Time: Thu Sep 19 11:11:01 CDT 2024