JUNIT in Oracle Forms 6i

Hi
We are using Oracle Forms 6i to develop Oracle Applications form extensions.
Wanted to know if we use JUnit in Oracle Forms for testing?
Thanks
Rahul

Hi there
Thanks for the response.
I was thinking of Forms Data Loader to use as an option for unit testing in Oracle Forms since it does capture the events like button submit , but I dont think it does any verification of data like JUnit.
Please let me know what do you think of same.
Thanks
Rahul

Similar Messages

  • Calling web service from oracle forms 10g

    Problem Description:
    I'm following the steps as per the doc:
    http://www.oracle.com/technology/products/forms/htdocs/10gr2/howto/webservicefromforms/ws_10_1_3_from_forms.html
    to create a java stub to call external web service and then use java importer in oracle forms to call this web service from oracle forms.
    WSDL for external web service used is http://gend:83/DesignService.svc?wsdl
    The service was developed by us.
    Calling the web service using JDeveloper works fine but when I complie in Oracle Forms it returns wrong number of types of arguments in call SENDHELLO.
    The code from oracle form to call web service is as below:
    DECLARE
    jo ora_java.jobject;
    xo ora_java.jobject;
    rv varchar2(2000);
    ex ora_java.jobject;
    str varchar2(100);
    BEGIN
    jo := GendServiceClient.new;
    rv := GendServiceClient.sendHello('Nora');
    EXCEPTION
    WHEN ORA_JAVA.JAVA_ERROR then
    message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
    WHEN ORA_JAVA.EXCEPTION_THROWN then
    ex := ORA_JAVA.LAST_EXCEPTION;
    message(Exception_.toString(ex));
    END;
    Any help/ideas on this is greatly appreciated. Thanks.
    Edited by: KE Nora Loera on Jun 1, 2012 1:24 PM

    My primary skill is PL/SQL but the only information I found on Oracle's site to call a web service from a 10g Form was creating a jar file and importing the java class. Since I don't want to ask our corporate IT to make changes on the UNIX box for the jar files I went a different route.
    I use UTL_HTTP.BEGIN_REQUEST to call a URL then load I load the data to a table as a CLOB since we have more than 4000 characters. Now I need to parse the XML and load it into a form. I have never done this so if there is a helpful site please let me know. I have looked at several sites but none do what I want.
    Thanks

  • ASK - How to delete line space in Word document using oracle form

    Hi,
    I have 1 template word document.
    Inside the word document template :
    abcdefg
    [START_TERMS]
    [END_TERMS]
    bbbbbbbbbbbbbbbb
    currently, my program only can delete the statement [START_TERMS] and [END_TERMS].
    so the result
    abcdefg
    ----> space area
    ----> space area
    bbbbbbbbbbbbbbbb
    My expected result is
    abcdefg
    bbbbbbbbbbbbbbbb
    How to replace that two space area in oracle form ?
    Please advise.
    Thanks for your help.
    regards,
    Iwan

    Hi
    Here my code :
    Function DeleteWord(MyOwnSelection OLE2.OBJ_TYPE, MyWord VARCHAR2) Return Boolean Is
    MyArgs OLE2.LIST_TYPE;
    vReturn boolean;
    Begin
    vReturn := FindWord(MyOwnSelection , MyWord);
    -- Can't Find The word
    if vReturn = False Then
         Return False;
    End if;
    OLE2.INVOKE(MyOwnSelection, 'Delete');
    MyArgs := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(MyArgs, '0');
    OLE2.ADD_ARG(MyArgs, '0');
    OLE2.INVOKE(MyOwnSelection, 'SetRange', MyARgs);
    OLE2.DESTROY_ARGLIST(MyArgs);
    Return True;
    End;
    returnValue := WordFunction.DeleteWord(MySelection, '[START_TERMS]');
    Thanks and regards,
    Iwan
    Edited by: user1888509 on Jun 7, 2011 10:34 PM

  • Oracle Forms 6i and database oracle 11g

    Hello!
    Today we have Oracle Forms 6i running against databse 9i. We are in the process of upgrading our db to 11g.
    Will our Forms application still work? What steps do we need to do to make it work?
    Any input is valuable.
    We have the same quetsion oabout Oracle reports 6i.

    Hello,
    I you follow the Note:338513.1 on Metalink, you can see the following:
    Forms / Reports 6i patchset 16 or patchset 17 was certified to work against Oracle Server (RDBMS)+
    +10g Rel 1 (10.1.x)+
    Forms / Reports 6i has never been certified, nor will it ever be certified against Oracle Server (RDBMS) 10g Rel 2 (10.2.x) or Oracle Server (RDBMS) 11g (11.x).
    +(This is because Forms / Reports 6i is now de-supported - see important note below)+
    Important Note: Forms / Reports 6i is now de-supported e.g.
    - If running in client-server mode, Forms / Reports 6i was desupported at end of January 2005
    - If deploying over the web, Forms / Reports 6i (Oracle 9iAS Rel 1 Forms / Reports Services) was desupported at the end of June 2004
    This means that Forms / Reports development will no longer provide an error correction service for Forms / Reports 6i (unless an organisation has purchased extended maintenance support) Therefore, Oracle strongly recommends that customers using desupported versions upgrade to a supported version e.g upgrade to Oracle Developer Suite 10g Rel 1 or 2 / Oracle Application Server 10g Rel 1 or 2
    Francois

  • Stopping a Query taking more time to execute in runtime in Oracle Forms.

    Hi,
    In the present application one of the oracle form screen is taking long time to execute a query, user wanted an option to stop the query in between and browse the result (whatever has been fetched before stopping the query).
    We have tried three approach.
    1. set max fetch record in form and block level.
    2. set max fetch time in form and block level.
    in above two method does not provide the appropiate solution for us.
    3. the third approach we applied is setting the interaction mode to "NON BLOCKING" at the form level.
    It seems to be worked, while the query took long time to execute, oracle app server prompts an message to press Esc to cancel the query and it a displaying the results fetched upto that point.
    But the drawback is one pressing esc, its killing the session itself. which is causing the entire application to collapse.
    Please suggest if there is any alternative approach for this or how to overcome this perticular scenario.
    This kind of facility is alreday present in TOAD and PL/SQL developer where we can stop an executing query and browse the results fetched upto that point, is the similar facility is avialable in oracle forms ,please suggest.
    Thanks and Regards,
    Suraj
    Edited by: user10673131 on Jun 25, 2009 4:55 AM

    Hello Friend,
    You query will definitely take more time or even fail in PROD,becuase the way it is written. Here are my few observations, may be it can help :-
    1. XLA_AR_INV_AEL_SL_V XLA_AEL_SL_V : Never use a view inside such a long query , becuase View is just a window to the records.
    and when used to join other table records, then all those tables which are used to create a view also becomes part of joining conition.
    First of all please check if you really need this view. I guess you are using to check if the records have been created as Journal entries or not ?
    Please check the possbility of finding it through other AR tables.
    2. Remove _ALL tables instead use the corresponding org specific views (if you are in 11i ) or the sysnonymns ( in R12 )
    For example : For ra_cust_trx_types_all use ra_cust_trx_types.
    This will ensure that the query will execute only for those ORG_IDs which are assigned to that responsibility.
    3. Check with the DBA whether the GATHER SCHEMA STATS have been run atleast for ONT and RA tables.
    You can also check the same using
    SELECT LAST_ANALYZED FROM ALL_TABLES WHERE TABLE_NAME = 'ra_customer_trx_all'.
    If the tables are not analyzed , the CBO will not be able to tune your query.
    4. Try to remove the DISTINCT keyword. This is the MAJOR reason for this problem.
    5. If its a report , try to separate the logic in separate queries ( using a procedure ) and then populate the whole data in custom table, and use this custom table for generating the
    report.
    Thanks,
    Neeraj Shrivastava
    [email protected]
    Edited by: user9352949 on Oct 1, 2010 8:02 PM
    Edited by: user9352949 on Oct 1, 2010 8:03 PM

  • Oracle Forms 11

    When Oracle Forms 11 ?

    When is Oracle Forms 11 going to be released?
    It is going to be released with Fusion Middleware Applications Server 11 which is scheduled for fiscal year 2008. For Oracle that is June-07 through May-2008.

  • Bell Procedure in Oracle Forms 10G

    Does
    BELL; SYNCHRONIZE; work for Oracle Forms 10G

    Rodolfo Ferrari wrote:
    Quiet=YES is the default, so you MUST go to your server's $ORACLE_HOME/forms/server/formsweb.cfg and change it to YES NO.
    Correction, I got confused for a second, it was the other way around.
    Edited by: Rodolfo Ferrari on Jun 23, 2009 7:27 PMI did that , but I''m still not hearing any sound!
    FOR i in 1..3 LOOP
    BELL;
    SYNCHRONIZE;
    END LOOP;
    I'm use DB10g & DEV10g .... last release for both.

  • Icons not displaying in oracle forms.

    Hi All,
    I am trying to display icons on Oracle forms 10g.I just brought over these forms from another system and I am trying to display the icons like next record, clear form etc..
    I have done the following steps so far. The icons are still not displaying. Appreciate any help.
    Created a folder in D:\oracle\oracleas\forms\java called icons.
    Copied all gif files and jpeg files into icons. Then created a jar file.
    D:\oracle\oracleas\forms\java>jar -cvf my_icons.jar icons
    It created the jar file in the same directory D:\oracle\oracleas\forms\java
    Also changes were made to these files as shown below each file.
    forms.conf
    AliasMatch ^/forms/icons/(..*) "D:\oracle\oracleas\forms\java\icons/$1"
    registry.dat
    default.icons.iconpath=http://servername:7778/forms/java/
    formweb.cfg
    # Forms applet parameter
    codebase=/forms/java
    # Forms applet parameter
    imageBase=codebase
    # Forms applet archive setting for JInitiator
    archive_jini=frmall_jinit.jar,frmmain.jar, frmjdapi.jar, my_icons.jar
    # Forms applet archive setting for other clients (Sun Java Plugin, Appletviewer, etc)
    archive=frmall.jar,frmmain.jar, frmjdapi.jar, my_icons.jar
    Also added this line under orion-web-app in orion-web.xml file.
         <virtual-directory virtual-path="/icons" real-path="D:\oracle\oracleas\forms\java\icons" />
    Restarted the OC4J forms server after any change.

    To test your configuration, you can try building an URL:
    i.e.
    http://localhost:8889/forms/frmservlet/icons/iconname.gif
    Does it show the icon ?
    If that does not work, I would try re-generating the my_icons.jar file, but instead of going directly to the forms/java/icons folder, copy the icons folder to the root directory i.e. c:\icons and execute the command to jar the icons folder, then redeploy the my_icons.jar file.
    Then try again with the URL... if the URL does not work, you still have configuration issues.
    PS: Don't forget to clear the cache in your browser so that the new .jar files is loaded?
    Furthermore:
    ========
    Remove the changes made to the forms.conf and orion-web.xml, they are only needed if the icons are
    not stored in a .jar file.
    forms.conf
    AliasMatch ^/forms/icons/(..*) "D:\oracle\oracleas\forms\java\icons/$1"
    orion-web.xml
    <virtual-directory virtual-path="/icons" real-path="D:\oracle\oracleas\forms\java\icons" />
    Edited by: Rodolfo Ferrari on Jun 17, 2009 6:14 PM
    To double check your configuration, follow steps in metalink note 232413.1 - How to Deploy Iconic Images via a JAR File in Forms 9i/10g?.
    Edited by: Rodolfo Ferrari on Jun 17, 2009 7:19 PM
    Edited by: Rodolfo Ferrari on Jun 17, 2009 7:24 PM

  • Display Blob image in oracle forms

    i have an application in which i have to store all the employee's photos.
    i created the Photo column in database with datatype Blob.
    I created the form to store image that successfully stores image in database.
    bUt now what should i Do to display that image on Image Item when i execute_query.
    I m using Oracle forms 6i version & oracle 10 g database

    my image item contains all default properties set that are done when i create a database block PHOTO.
    i didnt set any property.
    Edited by: rupearlkaushal on Jun 8, 2012 6:33 AM

  • Reference book for oracle forms and reports???

    any one knows any good book 2 learn oracle forms and reports 10g?
    Edited by: rupearlkaushal on Jun 7, 2012 3:26 AM

    Oracle tutorial..
    Although the first two of the following links are for older Forms versions, the concepts are still valid across all Forms versions.
    A Tutorial on Oracle9i Forms and Reports
    iSelfSchooling - Basic Introduction to Forms
    Oracle Forms 10g: Demos, Tips and Techniques
    http://www.dotnetspider.com/resources/22433-Triggers.aspx---Different Trigger types
    http://sheikyerbouti.developpez.com/index_en/
    http://www.slideshare.net/magupta26/oracle-forms-tutorial
    http://www2.cs.uh.edu/~ceick/3480/Customized_Oracle_Forms.pdf ---Creating Customized Oracle Forms
    http://www.youtube.com/watch?v=0BBiHvHzPYE -- video
    Hope this helps,
    Oracle Reports Tutorial...
    Here few link...
    1. http://docs.oracle.com/html/B14364_01/title.htm
    2. http://www.scribd.com/doc/3960412/Basic2-Oracle-Reports-10g-Tutorials
    Video Tutorial
    http://www.youtube.com/watch?v=Fum3MJm5yKU
    Hope this helps
    If someone's response is helpful or correct, please mark it accordingly.

  • Would like to ask about Pros&Cons betwwen Oracle Forms, OAF and ADF

    Hi,
    Is there some material about the pros&cons between Oracle Forms, OAF and ADF, from angles like technical architecture, performance, network efficiency, etc...
    Asking this becuase EBS cusotmer is familiar with Oracle Forms and OAF, when we talking about ADF to them, it is quite confused especially about OAF and ADF, finding material to elaborate these 3 technology clearly, thanks
    - Liang Yi

    Thanks, I check the comparison of OAF and ADF document downloaded from Oracle Support, but it is for ADF10g, I believe ADF11g is much better, and anyone check the comparison table between ADF 10g and OAF R12 would choose OAF.
    And, from the document, I saw one line that is very confused, check it out, do not understand what does it mean with "if your application does not need to integrate with EBS... ... you should use ... ... integration with EBS" -_-!
    "If your application does not need to integrate with the
    E-Business Suite, or doesn't require any of the E-Business Suite-specific
    capabilities enumerated above, you should use ADF 10g with SOA based
    integration with E-Business Suite."
    - Liang Yi
    Edited by: lymath on Jun 1, 2011 12:41 AM

  • Oracle Forms events coming to city near you in 2008....

    Details on my blog.
    http://groundside.com/blog/GrantRonald?title=some_events_you_might_be_interested_in&more=1&c=1&tb=1&pb=1
    I've also added a new link to the Forms home page on OTN which points to the new Oracle Forms events page.
    Any feedback please let me know
    Thanks
    Grant

    Hi Grant,
    Can I put a summary here which will help users not to navigate to many URLs.
    Dates Country
    ===================
    21st February 2008 Ireland
    13th February 2008 Finland
    12th February 2008 Norway
    29th January 2008 Denmark
    18th January 2008 Sweden
    13th December 2007 Portugal
    3rd July 2007 UK
    19th June 2007 UK
    30th May 2007 Faroe Islands
    Rajesh ALex

  • SSO to Oracle Forms 6.0 and Oracle Reports 6.0

    Hi,
    Could somebody please explain how I should implement the SSO so that I can log on a forms application?
    Should I use external partner app. ??
    How can I parse the right parameters to the forms server ??
    thanks,
    Jerome

    Hi,
    Oracle Forms 6i does not support Advances Security for SQL*Net if this is what your question is. ASO is supported with Forms 9i and above
    Frank

  • Calling web service from oracle forms fails with ORA_JAVA.JAVA_ERROR

    Problem Description:
    I'm following the steps as per the doc:
    http://www.oracle.com/technology/products/forms/htdocs/10gr2/howto/webservicefromforms/ws_10_1_3_from_forms.html
    to create a java stub to call external web service and then use java importer in oracle forms to call this web service from oracle forms.
    WSDL for external web service used is http://www.webservicex.net/CurrencyConverter.asmx?wsdl
    Calling the web service using JDeveloper works fine but from Oracle Forms returns ORA_JAVA.JAVA_ERROR; Unable to call out to Java, Invalid object type for argument 1
    The code from oracle form to call web service is as below:
    DECLARE
    jo ora_java.jobject;
    rv ora_java.jobject;
    ex ora_java.jobject;
    outString varchar2(2000);
    BEGIN
    jo:= CurrencyConvertorStub.new;
    --This will get the exchange rate from US Dollars to UK Sterling.
    rv:= CurrencyConvertorStub.ConversionRate(jo,'CAD','USD');
    message (float_.floatValue(RV));
    EXCEPTION
    WHEN ORA_JAVA.JAVA_ERROR then
    message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
    WHEN ORA_JAVA.EXCEPTION_THROWN then
    ex := ORA_JAVA.LAST_EXCEPTION;
    outString := Exception_.toString(ex);
    message(outString);
    END;
    Any help/ideas on this is greatly appreciated. Thanks.

    Yes, it is the message line - so basically this call fails => rv:= CurrencyConvertorStub.ConversionRate(jo,'CAD','USD'); and control goes in the exception block
    WHEN ORA_JAVA.JAVA_ERROR then
    message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
    Below is the code from java stub that was generated using JDeveloper by using web services stub/skeleton and associating the WSDL
    public Double ConversionRate(String FromCurrency, String ToCurrency) throws Exception
    URL endpointURL = new URL(endpoint);
    Envelope requestEnv = new Envelope();
    Body requestBody = new Body();
    Vector requestBodyEntries = new Vector();
    String wrappingName = "ConversionRate";
    String targetNamespace = "http://www.webserviceX.NET/";
    Vector requestData = new Vector();
    requestData.add(new Object[] {"FromCurrency", FromCurrency});
    requestData.add(new Object[] {"ToCurrency", ToCurrency});
    requestBodyEntries.addElement(toElement(wrappingName, targetNamespace, requestData));
    requestBody.setBodyEntries(requestBodyEntries);
    requestEnv.setBody(requestBody);
    Message msg = new Message();
    msg.setSOAPTransport(m_httpConnection);
    msg.send(endpointURL, "http://www.webserviceX.NET/ConversionRate", requestEnv);
    Envelope responseEnv = msg.receiveEnvelope();
    Body responseBody = responseEnv.getBody();
    Vector responseData = responseBody.getBodyEntries();
    return (Double)fromElement((Element)responseData.elementAt(0), java.lang.Double.class);
    }

  • List Item problem in oracle forms

    Hi,
    I am using list item in oracle forms 6i and facing one problem. I am populating list using following built-in.
    Clear_list()
    Create_Group_From_Query( )
    Populate_list()
    The problem I am facing is when list gets populate it keep the cursor at last element of list with null value. I want cursor to go at first item in the list. Is this thing is possible. The list item I am using is pop-list. In combo its showing list perfectly but I have to use pop-list only. Please help to come out of this problem.
    Thanks in advance
    Shweta.

    Hi Shweta,
    Please post your query in Oracle Forms discussion forum.
    Thanks,
    Wilson.

Maybe you are looking for

  • MRP group field can not be displayed in MRP1 view

    Hi all MRP group field can not be displayed in MRP1 view please guide me thx

  • Look Up API through JCO

    Hi all, I m using look up through JCO and calling a RFC on backend R/3 for the particular validation.I m using UDF for that.In the UDF i have specified imports as:- imports :-java.util.;java.lang.obj.;com.sap.aii.mapping.lookup.;com.sap.mw.jco.;java.

  • Sale order table to bi

    I want to bring the sale order table to BI. What are the activities required to be done in r/3 as well as in bi.

  • Cross word puzzle widget for iBooks Author

    I'd like to have a widget to add to a iBook in iBook Author of a cross word puzzle. Is that something that could built in Dashcode or is there a better way?

  • Firefox icons problem.

    I create and run my application in Forms 10.1.2. Running it using MSIE it works fine, using Firefox I've a problem with "greyed" menu icons. When I run it all disabled icons in my menubar are crunched. I prefer firefox because it's, by far, faster. I