Jdapi and InitializeValue

Hi,
I use jdapi to migrate some Forms (10g). But when the datatype of item is different of char, alpha or long, the xml file not contains InitializeValue information. It's strange. Have you some explication ?
Tanks

Hello Francois
Jdapi can be use to create xml file with main() method of oracle.forms.util.xmltools.Forms2XML.

Similar Messages

  • Oracle9iDS Forms Developer JDAPI and XMLTOOLS Javadoc Missing

    Oracle9iDS Forms Developer JDAPI and XMLTOOLS Javadoc ZIP file is missing. When you click on http://otn.oracle.com/documentation/9i_forms.html and scroll down to to Javadoc section, click on zip link moves you to http://otn.oracle.com/documentation/index.html which is wrong. Please take action and fix it!
    Cheers,
    Andrej Zabkar

    Hi Andrej,
    Thankyou for the feedback.
    I have fixed the link, please try once again.
    Regards,
    Les

  • JDAPI and XMLTOOLS javadoc

    Hi,
    Where can I find a javadoc description of the JDAPI and XMLTOOLS framework for Forms10g? I need it to change some properties in forms in batch. Some usage examples are welcome too.
    Regards,
    Roel

    Hello,
    <p>JDAPI documentation, and the list of JDAPI integer constants.</p>
    Francois

  • Forms jdapi and attached libraries

    using Jdapi to manipulate forms is an exciting experience, especially, when misterious things happen
    i wrote a simple code to list all the attached libraries (the reason for that is i want to migrate Forms application from Windows env to Unix and i wanted to change all attached libraries to lower case)
    JdapiModule.openModule("c:\\MODULE2.FMB");
    JdapiIterator fmbs = Jdapi.getModules();
    FormModule fmb = (FormModule)fmbs.next();
    //FormModule fmb = new FormModule("myform.fmb");
    JdapiIterator libs = fmb.getAttachedLibraries();
    while (libs.hasNext())
    AttachedLibrary lib = (AttachedLibrary)libs.next();
    // System.out.println(lib);
    System.out.println(lib.getLibraryLocation());
    // System.out.println(lib.getLibrarySource());
    System.out.println(lib.getName());
    This works only if the libarary is attached with library path included!
    When i run the same code against a form where the library is attached with path removed, the code above does not detect the attached library at all?
    ie libs.hasNext() return false
    Ammar Sajdi
    www.e-ammar.com
    www.palco-me.com
    founder and managing partner

    I created another form with an attached library on another PC.
    I ran the same program, and the program runs perfectly!!!!!!!
    i really do not understand this behaviour!
    The forms i am using is 9.0.4.19
    Glad it works on other pc's
    Ammar Sajdi

  • SOLVED JDAPI and block order

    Hi all,
    I'm running into the following problem whilst migrating some forms from 6i to 10g using JDAPI: the old set of forms reference items e.g. blocks from a form that was stored in the database. I'm modifying the forms to reference the same items from the form which is now saved to the filesystem. The problem is that when i rereference a block (by using the block.setSubclassParent() method) the newly subclassed block is moved to the first position in the block list causing the form to behave unexpectedly.
    The problem is easy to fix manually by opening the form in the builder and moving the newly referenced block to the end of the list but I have a large number of modules to migrate so I was wondering if there is a way to do this using JDAPI? I've tried experimenting with the destroy() method but don't seem to be making much progress.
    Any ideas?
    Lawrence
    Edited by: Lawrence Warnett on Sep 10, 2008 12:15 PM

    From JDAPI Javadoc:
    move
    public void move(JdapiObject next)
    Reorders an object with respect to its siblings in the collection it belongs to. This is similar to using drag and drop in Form Builder to move a block in a list. This method represents a way to do the same thing programmatically. For example, if you want a block appear immediately before Block5 in a list, you pass the object representing Block5 as the nextObject argument.
    Pass null to this method to move the object to the end of the list. If the specified object and the next_object do not share the same owner, or do not have the same type, the method throws an exception.
    You cannot use this method to move objects between parents. For example, it cannot be used to move an Item from one Block to another. If you want to move an object from one parent to another you will have to do something like:
    ...and so on...
    Specified by:
    move in interface JdapiObject
    Parameters:
    nextObject - the object next to which the specified object is to be moved.
    Throws:
    JdapiException - if you attempt to move an object next to an object that does not share the same owner or is not of the samme type.
    So this would be:
    FormModule Test = FormModule.open("c:\test.fmb");
    JdapiIterator lBlocksIterator = Test.getBlocks();
    while(lBlocksIterator.hasNext())
      Block lCurrBlock = (Block) lBlocksIterator.next();
      if(some_cirteria)
        lCurrBlock.move(null); //move it to the last position
    }I didn't try it, but give it a go...

  • JDAPI: add Object library or PLSQL libs

    Hi,
    I miss 2 things in JDAPI:
    there is a methods getAttachedLibraries() and getObjectGroups(). Fine, but how to add a library or ObjectGroup. There is no add-Method.
    What I want is the same as drag and drop a object library to a form in Forms Builder...
    Anybody there, who knows...
    Thanks a lot,
    Michael

    Hi Duncan,
    Thank you very much for your help! Works great!
    Another JDAPI question:
    I add webutil via JDAPI (and modify some ProgramUnits) to a 6i form and found a very strange behaviour: When try to compile the form I get incorrect compiler errors...
    I have to save form, Jdapi.shutdown() and then Reopen form. After that I can compile without any error?!
    Similar happens, when subclass webutil and use the Block.find(...): JDAPI can't find the before added webutil block! After saving, reinitializing and reloading the form the form find works correct...
    But these are minor problems...
    Thank's again,
    Michael

  • Power of JDAPI

    Hi Gurus
    We are in the process of exploring the possibility of using JDAPI for ui enhancements during migrating our Forms to 10g (from 6i). We re quite fascinated by the power and simplicity of JDAPI. We were able to dissect any information from the form using JDAPI and the besst thing is that the code is reusable for the next form. What was a manual task before is now simplified and can be automated using JDAPI.
    We are in the process of exploring the possibility of using JDAPI to enforce standards and do atomatic code review in forms. Has anyone done that before.
    any thoughts
    Rgds
    Arvind Balaraman

    We did the same thing with the JDAPI on converting 6i to 10g.
    I'm currently setting up version control (Subversion) combined with automatic builds using CruiseControl/ANT. It is my intention to enhance these automated builds with several automated checks. Simple things like if all database objects are valid, but also enforcing Forms standards using the JDAPI. For example checking if the size of a Form is not outside the limits set in our standard. Developer tend to use all available screensize on their monitor, but users might very well run lower resolutions.

  • Problems with JDAPI Samples

    We are having problems getting the JDAPI samples provided with FormsBuilder9i working correctly. There are a couple of problems that occur.
    1) When running GetFormName/GetModuleName the name of the form retrieved with the FormModule.getName() method always returns blank.
    2) When running Traverse the following error occurs:
    oracle.forms.jdapi.JdapiException: jniget_obj_prop failed
         at oracle.forms.jdapi.BaseAPI._jni_get_obj_prop(Native Method)
         at oracle.forms.jdapi.BaseFormsObject.getObjProp(Unknown Source)
         at oracle.forms.jdapi.BaseFormsObject.getChildObjectProperty(Unknown Source)
         at oracle.forms.jdapi.demo.Traverse.recurseObject(Traverse.java:110)
         at oracle.forms.jdapi.demo.Traverse.<init>(Traverse.java:63)
         at oracle.forms.jdapi.demo.Traverse.main(Traverse.java:162)
    and
    oracle.forms.jdapi.JdapiException: jniget_obj_prop failed
         at oracle.forms.jdapi.BaseAPI._jni_get_obj_prop(Native Method)
         at oracle.forms.jdapi.JdapiObjectListIterator.hasNext(Unknown Source)
         at oracle.forms.jdapi.demo.Traverse.recurseObject(Traverse.java:117)
         at oracle.forms.jdapi.demo.Traverse.<init>(Traverse.java:63)
         at oracle.forms.jdapi.demo.Traverse.main(Traverse.java:162)
    These errors occur with every form that we attempt to run them with.
    The only changes made to the samples is to provide a full stack trace when the error is thrown, otherwise they are unchnaged from the distributed versions.
    Any help resolving these problems would be appreciated.
    Thanks.

    check whether frmjapi.dll (in case of Windows) or frmjapi.so can be reconginsed by Java ClassLoader. The problem here is when Jdapi calls it epects JNI layer dll be found by class loader which is a glue between Jdapi and underlying capi.

  • How to remove and assign the subclsss in Migration.

    Hi All,
    I am migrating the form 6i appliaction form 6i to 10g with database as 9i.
    I am trying to migrate the form 6i files to 10g.
    I have get the referenced emb file (subclass file) from the database and made the Object library from this file. I have put the olb file in the registery path of the forms.After this I have open the form in the migration tool and migrate the form. I have done the changes according to the LOG file. But when I am opening the form it is not getting the subclass files so that it is asking the database connection.
    Can any body please advice me how to remove the subclss information at the time of migration from database to file so that after migration it will take the subclss refrence from the olb file.
    Can any body just advice how to migrate the forms 6i to 10g in steps OR any document, URL (Specially removing the referencce and taking the new reference from OLB)
    Thanks in advance.
    SUN
    Edited by: User SUN@ on May 13, 2010 4:31 PM

    Hi,
    Not eactly the same but there was a set of Forms that reference another Form for subclasses rather than the OLB. I've managed to sort that out using JDAPI and here is a sample bit of code. Basically , going through property classes and removing then and then adding the property classes object group from the OLB. It seemed to do the trick didn't upset the properties of the items using the class. It may be of help to you.
    There was no migration in this : just a fix on a Forms 10g module. I'd yes you could do the same, migrate to 10g and then use JDAPI to fix the form.
    HTH
    Steve
          for (JdapiIterator mods = Jdapi.getModules(); mods.hasNext(); ) {
             FormModule mod = (FormModule)(JdapiModule)mods.next();
             u.logger.info(mod.getAbsolutePath() + " " + mod.getTitle());
             for (JdapiIterator classes = mod.getPropertyClasses(); classes.hasNext(); ) {
                PropertyClass cls = (PropertyClass)classes.next();
                classes.remove();
             ObjectLibrary objLib = ObjectLibrary.open(p.getProperty(systemName + "pll.directory")+"/myapp.olb");
             for (JdapiIterator oTabs = objLib.getObjectLibraryTabs(); oTabs.hasNext(); ) {
                ObjectLibraryTab oTab = (ObjectLibraryTab)oTabs.next();
                if (oTab.getLabel().equals("Object Groups (Sub-Class these)")) {
                   for (JdapiIterator tabObj = oTab.getTabObjects(); tabObj.hasNext(); ) {
                      ObjectGroup objGrp = (ObjectGroup)tabObj.next();
                      if (objGrp.getName().equals("APP_PROPERTY_CLASSES")) {
                         ObjectGroup newObj = new ObjectGroup(mod, "APP_PROPERTY_CLASSES", objGrp);
                         u.logger.info(mod.getName() + " APP.OLB added in");
             objLib.destroy();

  • Jdapi ?

    What is JDapi and how is it useful in oracle forms 10g?

    The Oracle upgrade processes use jdapi for removing obsolete keywords. So, for example, you could search all program units for:
    show_menu;
    and replace it with:
    -- show_menu;
    regards,
    Steve

  • Forms 9i: Documentation, Samples

    Are there any documentation or samples on how to use the JDAPI and XMLTOOLS packages for Forms 9i that can be downloaded? Draft versions of books would be very nice (or are there published books already?) Thanks.

    The Demo Set for Forms 9i comes with a bunch of JDAPI samples. You should see this downloadable from the Forms Pages in the next day or so,
    There is fairly extensive documentation on the JDAPI and the XML tools in the online help. We don't have any specific papers published yet.

  • Other Language in Report

    Hi,
    i Require to include the Other then English Language in Report.
    How to done it?
    Please give me guidence in it.
    Regards,
    C V S
    Edited by: CVS_1984 on Aug 31, 2010 10:42 PM

    We (in "Istra informaticki inzenjering", Croatia, Pula) have developed our own solution
    for dynamical translation of Forms/Reports modules (including Forms/Reports 6i).
    First of all, database messages (RAISE_APPLICATION_ERROR) and Forms messages (ALERT etc...) have been extracted to a database table,
    and those messages are called using procedure that returns translation.
    Forms "labels" (prompts, hints in items, labels in menu items ...) and Reports boilerplates have been extracted
    into TXT files for Forms and XML files for Reports together with translation.
    TXT files are created using Forms JDAPI, and XML files using (our own) Java program that reads Reports modules converted to REX format.
    We use TXT/XML files in this way:
    - TXT: Forms PRE-FORMS trigger calls procedure (in Forms library) that reads related TXT file
    and translates Forms "labels" using SET_ITEM_PROPERTY (... PROMPT_TEXT ...), SET_MENU_ITEM_PROPERTY (... LABEL ...) etc.
    - XML: Reports BEFORE-PARAMETAR-FORM trigger calls procedure (in Reports library) that uses related XML file and SRW.APPLY_DEFINITION
    Regards

  • Set_custom_property FRM-93652

    Hello,
    I have a form with 3 windows and 3 canvas respectively and in each canvas I have severall buttons.
    All the buttos have the implementation class oracle.forms.fd.LAF_XP_Button and I'm trying to implement:
         Set_Custom_Property(item_id,1, 'SET_BACKGROUND_COLOR', 'r255g255b255');
         Set_Custom_Property(item_id,1, 'SET_BORDER', 'false');
    in the trigger *'when-timer-expired'* for each button.
    For the buttons that are associated to the first canvas in the first window, everything runs smoothly.
    But when the form start to set the properties to the buttons of the others windows I get the error FRM-93652.
    I've recompiled the form with shift+ctrl+k (compile all), close and opened the weblogic, the forms builder, the pc and nothing worked.
    So I've changed the trigger to:
    show_window('window1');
    show_view('canvas1');
    set_window1_buttons_properties;
    hide_window('window1');
    hide_view('canvas1');
    show_window('window2');
    show_view('canvas2');
    set_window2_buttons_properties;
    hide_window('window2');
    hide_view('canvas2');
    show_window('window3');
    show_view('canvas3');
    set_window3_buttons_properties;
    hide_window('window3');
    hide_view('canvas3');
    And it worked!
    My problem is that I was planing to implement this procedure dinamically trough object group and jdapi and if I have to specify this code for each window and canvas it's going to be a nightmare..
    So I ask... Any sugestion on how to do this?

    Here is a generic procedure:
    PROCEDURE init_laf_buttons IS
         LC$blockDeb     varchar2(60); -- start block
         LC$block          varchar2(60); -- current block name
         LC$item               varchar2(60); -- current item
         LC$itemdeb     varchar2(60); -- first item
    BEGIN
         LC$BlockDeb := get_form_property( NAME_IN('System.Current_Form'), FIRST_BLOCK ) ;
         LC$Block := LC$BlockDeb ;
         Loop -- For each block of the form
              LC$itemdeb := get_block_property(LC$BLOCK, FIRST_ITEM) ;
              Go_Block(LC$Block);
              Synchronize;
              LC$item := LC$BLOCK || '.' || LC$itemdeb ;
              While LC$itemdeb is not null loop -- For each item
                   -- visible item ? --
                   IF GET_ITEM_PROPERTY(LC$Item , VISIBLE) = 'TRUE' Then            
                        IF GET_ITEM_PROPERTY(LC$Item , ITEM_TYPE) = 'BUTTON' Then
                             IF GET_ITEM_PROPERTY(LC$Item , ITEM_CANVAS ) is not null THEN
                                  Set_Custom_Property(LC$item, 1, 'SET_BACKGROUND_COLOR', '100,100,200');
                             End if ;
                        End if ;
                   End if;
                   LC$itemdeb := get_item_property(LC$item, NEXT_NAVIGATION_ITEM );
                   LC$item := LC$BLOCK || '.' || LC$itemdeb ;
              End loop ;
              LC$Block := get_block_property( LC$Block, NEXTBLOCK ) ; -- next block
              exit when LC$Block is null ;
         End loop ;
    END init_laf_buttons;All you have to do is to call it from the When-Timer-Expired trigger, so easy to move it to your Object Library
    Francoid

  • Forms Translation

    Hello,
    I have couple of options other than the translation HUB to do my application translation. I am working with forms10g.
    1. Place the text in the database table and translation for each forms.
    2.use JAVA properties file to do the translation.
    With my experience i found that option one was much faster than the option two. But i am not sure why becuase the properties file was also downloaded to the client in the cache and ideally it should have been more faster than getting it translated from the database tables.
    Is it that the SET_ITEM_PROPERTY is making a call to the application server each time.
    Can somebody give me more understanding on this.
    Thanks.

    We (in "Istra informaticki inzenjering", Croatia) have developed our own solution
    for dynamical translation of Forms/Reports modules (including Forms/Reports 6i).
    First of all, database messages (RAISE_APPLICATION_ERROR) and Forms messages (ALERT etc...) have been extracted to a database table,
    and those messages are called using procedure that returns translation.
    Forms "labels" (prompts, hints in items, labels in menu items ...) and Reports boilerplates have been extracted
    into TXT files for Forms and XML files for Reports together with translation.
    TXT files are created using Forms JDAPI, and XML files using (our own) Java program that reads Reports modules converted to REX format.
    We use TXT/XML files in this way:
    - TXT: Forms PRE-FORMS trigger calls procedure (in Forms library) that reads related TXT file
    and translates Forms "labels" using SET_ITEM_PROPERTY (... PROMPT_TEXT ...), SET_MENU_ITEM_PROPERTY (... LABEL ...) etc.
    - XML: Reports BEFORE-PARAMETAR-FORM trigger calls procedure (in Reports library) that uses related XML file and SRW.APPLY_DEFINITION
    Regards,
    Zlatko Sirotic

  • Script to extract all the form labels

    HI,
    I was wondering if there is a utility that can read a ".fmb" file and output all the field "labels" present in that form (including labels within tabs, subtabs etc).
    Appreciate your help.
    Thanks

    Hi,
    Which version of forms you are using? If you are using Forms 10g and above, you can use the Forms2XML Utility to convert the form (fmb) to an xml file and from the xml file you can get the required data.
    Or else, you can write a custom java code useing JDAPI and get the desired output.
    HTH.
    Regards,
    Arun

Maybe you are looking for

  • The installation cannot be completed

    Hello, I have Macbook Pro- retina, and I was updating it from Marvericks to OS X Yosemite, but while I install it, it froze out and I shutdown the power then started up again. Then it reinstall OS X Marvericks, and suddenly, a message shows up that s

  • I need a simple button/movieclip interaction

    If I have a button named "b" and a movie clip named "mc" that has an internal timeline, what is the code in AS3 to make the mc play? The main timeline is only one frame. Thanks in advance!

  • Program with database

    When I buildserver,I got some error messages: error C2065:'EXEC' :undeclared identifier error C2146:syntax error:missing ';' before identifier 'SQL' error C2065:'SQL' :undeclared identifier error C2146:syntax error:missing ';' before identifier 'inse

  • Bridge CS4 Colour labels - compatible with OS X Tiger labels?

    Hi all, I use Photo Mechanic to cull images but want to start using Bridge CS4 too. When I colour code files/directories in OS X, these labels don't appear in Bridge, but they do in Photo Mechanic. Is there a way to get Bridge to recognise OS X Tiger

  • Links / Documentation On Project Systems

    Dear All Could you provide documentation / links for Project Systems Module. Thanks Suresh