BEAN AREA CLANDER

HELLO
I NEED TO OPEN JAVA BEAN RAEA TO OPEN CLANDER
TO CHOOSE A DATE FROM CLANDER
AND PUT IN FIELD SUCH AS HIREDATE
1- I PUT BEAN AREA IN MY BLOCK
2-
IN TRIGEER WHEN-CUSTOM-ITEM-EVENT
I PUT THIS CODE
declare
     hBeanEventDetails paramList;
     eventName varchar2(80);
     ParamType number;
     eventType varchar2(80);
     newDateval varchar2(80);
     newDate date :=null;
begin
          hbeaneventdetails :=get_parameter_list(:system.custom_item_event_parameters);
          eventName := :system.custom_item_event;
          if
               (eventName='datechange')
               then
               get_parameter_attr(hbeanEventDetails,'DateValue',paramType,newDateVal);
               newDate :=to_date(newDateVal,'DD.MM.YYYY');
               end if;
               :WF_PROCESS.PRCS_DATE := newDate;
               end;     
3-THE CLANDER NOT APPEAR
WHEY ???
THANK YOU

which version of forms you are using. Is it client server (6i) or web based (9i or 10g) ??

Similar Messages

  • How to fetch data in a grid format in a bean area in forms 6i?

    Hi,
    I need help from all the gurus and experienced persons in forms 6i. I am trying to build form which will have some text fields and a bean area which will display the records that I had entered. Basically following is the basic form structure I am trying to develop
    1. There will be a search form which will have two text fields 'Emp ID' and 'Emp Name' and two buttons 'New' and 'Find'.
    2. Let there be another form which will have a bean area which will display the following columns in it in the form of a GRID
    a. Emp ID
    b. Emp Name
    This form will also have two text fields 'Emp ID' and 'Emp Name'.
    3. When I press 'New' in the search form then the second form should open and it will be blank. I can enter data in the text fields and save the form. The grid area (bean area) should be blank.
    4. When I open the search form again and enter the 'Emp Id' I just created in the above step and click the 'Find' button then the next form should open and the 'Emp Id' and the 'Emp Name' text fields should be populated with the data I created in the step 3 and the bean area should also display the record in the form of a grid.
    I am ok with all the parts except for the bean area part. Can you help me hpw to develop the form with the bean area and fetch data when searched for and display it in the form of grid?

    But still I would like to learn about the Bean being used in the Oracle Forms. I am not familiar with Java at all. So it would be very helpful from your side if you can give me some sample on how to use bean area in forms and fetch records in that in the form of a Grid.You don't need to know anything about Java in order to implement a Java Bean in your form. You simply need to know how Oracle Forms interacts with Java Beans and the When-Custom-Event trigger used to interact with Java Beans.
    Francois Degrelle has a great web site (Oracle Forms PJCs/Java Beans) for learning how to use Java in Forms. I recommend you get started here. The biggest hurdle you will encounter is setting up your App Server or your local Forms Builder installation to use Java Beans. For some reason, Oracle has retired many of the documents on OTN that walked you through this setup. However, I can assume that you have access to My Oracle Support (MOS) since you are working with EBS 11.5.9. You should be able to find everything you need in MOS to help you set up your environment.
    Craig...

  • Stateful Session Beans are not passivated / serialized when cache idle time

    Technology: Sun Application Server version 7.0.0_01; JDK 1.4.1; developed on Windows 2000; Tested on Sun Solaris.
    Initial error on Sun Solaris:
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr: Exception in thread "service-j2ee-25" org.omg.CORBA.OBJ_ADAPTER: vmcid: SUN minor code: 1015 completed: No
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at com.sun.corba.ee.internal.POA.GenericPOAServerSC.preinvoke(GenericPOAServerSC.java:389)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at com.sun.corba.ee.internal.POA.ServantCachePOAClientSC.initServant(ServantCachePOAClientSC.java:112)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at com.sun.corba.ee.internal.POA.ServantCachePOAClientSC.setOrb(ServantCachePOAClientSC.java:95)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at com.sun.corba.ee.internal.iiop.CDRInputStream_1_0.createDelegate(CDRInputStream_1_0.java:760)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at com.sun.corba.ee.internal.iiop.CDRInputStream_1_0.internalIORToObject(CDRInputStream_1_0.java:750)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at com.sun.corba.ee.internal.iiop.CDRInputStream_1_0.read_Object(CDRInputStream_1_0.java:669)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at com.sun.corba.ee.internal.iiop.CDRInputStream_1_0.read_abstract_interface(CDRInputStream_1_0.java:890)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at com.sun.corba.ee.internal.iiop.CDRInputStream_1_0.read_abstract_interface(CDRInputStream_1_0.java:884)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at com.sun.corba.ee.internal.iiop.CDRInputStream.read_abstract_interface(CDRInputStream.java:307)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at com.sun.corba.se.internal.io.IIOPInputStream.readObjectDelegate(IIOPInputStream.java:228)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at com.sun.corba.se.internal.io.IIOPInputStream.readObjectOverride(IIOPInputStream.java:381)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:318)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at com.sun.enterprise.iiop.IIOPHandleDelegate.getStub(IIOPHandleDelegate.java:58)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at com.sun.enterprise.iiop.IIOPHandleDelegate.readEJBObject(IIOPHandleDelegate.java:38)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at com.sun.ejb.portable.HandleImpl.readObject(HandleImpl.java:91)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at com.sun.corba.se.internal.io.IIOPInputStream.readObject(Native Method)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at com.sun.corba.se.internal.io.IIOPInputStream.invokeObjectReader(IIOPInputStream.java:1298)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at com.sun.corba.se.internal.io.IIOPInputStream.inputObject(IIOPInputStream.java:908)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at com.sun.corba.se.internal.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:261)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at com.sun.corba.se.internal.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:247)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at com.sun.corba.se.internal.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:209)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at com.sun.corba.ee.internal.iiop.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:981)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at com.sun.corba.ee.internal.iiop.CDRInputStream.read_value(CDRInputStream.java:287)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at com.sun.corba.ee.internal.javax.rmi.CORBA.Util.copyObject(Util.java:598)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at javax.rmi.CORBA.Util.copyObject(Util.java:314)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at com.telstra.nodeman.ejb._NodeMaint_Stub.getHandle(Unknown Source)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at com.telstra.nodeman.arch.NMAViewBeanProxy.checkBeans(NMAViewBeanProxy.java:631)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at com.telstra.nodeman.view.html.NMAStandardButton.handleRequest(NMAStandardButton.java:143)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at com.telstra.nodeman.arch.NMAViewBeanBase.handleRequest(NMAViewBeanBase.java:1573)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at com.iplanet.jato.view.ViewBeanBase.dispatchInvocation(ViewBeanBase.java:824)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at com.iplanet.jato.view.ViewBeanBase.invokeRequestHandlerInternal(ViewBeanBase.java:637)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at com.iplanet.jato.view.ViewBeanBase.invokeRequestHandler(ViewBeanBase.java:595)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at com.iplanet.jato.ApplicationServletBase.dispatchRequest(ApplicationServletBase.java:772)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at com.iplanet.jato.ApplicationServletBase.processRequest(ApplicationServletBase.java:446)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at com.iplanet.jato.ApplicationServletBase.doPost(ApplicationServletBase.java:324)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at com.telstra.nodeman.view.ViewServlet.doPost(ViewServlet.java:243)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at java.security.AccessController.doPrivileged(Native Method)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:158)
    [10/Aug/2004:08:04:57] WARNING (17227): CORE3283: stderr:      at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)
    The above error caused the server to use all available memory and required a reboot to proceed.
    Subsequent testing against the Sun Appliucation Server 7 on Windows 2000 dev environment using the Sun Studio IDE for debugging and trace statements inserted in the code indicate that the Application Server is removing the Stateful Session Beans when they time out without an ejbPassivate event and without serializing the beans to the data-store. cache-idle-timeout-in-seconds set to 180 and removal-timeout-in-seconds set to 1800.
    The server.log indicates that the beans are timing out:
    [19/Aug/2004:18:15:10] WARNING ( 1664): [NRU-com.telstra.nodeman.ejb.AddressMaintBean]: IdleBeanCleanerTask finished after removing 2 idle beans
    Trace statements inserted in ejbPassivate do not appear in the log.
    It is my understanding that the above timeout should have caused an ejbPasssivate and serialization of the beans.
    The beans have been validated using Sun Java Studio Enterprise 6 with 'EJB validate'.
    My reading of the problem is that the beans are not being serialized and the error occurs when the application attempts to reference (getHandle) the bean after timeout.
    Any suggestions would be appreciated.

    Thanks Thorick.
    I am using NRU caching. WL 7.0 SP2.
    I have not defined idle-timeout-seconds in my weblogic-ejb-jar.xml. As I understand
    the default value for this is 600secs. So the ejbs should be removed after this
    time. Below is the
    weblogic-ejb-jar.xml that I am using.
    <!DOCTYPE weblogic-ejb-jar PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 7.0.0 EJB//EN'
    'http://www.bea.com/servers/wls700/dtd/weblogic-ejb-jar.dtd'>
    <!-- Generated XML! -->
    <weblogic-ejb-jar>
    <weblogic-enterprise-bean>
    <ejb-name>Cart</ejb-name>
    <stateful-session-descriptor>
    <stateful-session-clustering>
    <home-is-clusterable>true</home-is-clusterable>
    <replication-type>InMemory</replication-type>
    </stateful-session-clustering>
    </stateful-session-descriptor>
    <transaction-descriptor>
         <trans-timeout-seconds>
              60
         </trans-timeout-seconds>
    </transaction-descriptor>
    <jndi-name>CartHome</jndi-name>
    </weblogic-enterprise-bean>
    </weblogic-ejb-jar>
    "thorick" <[email protected]> wrote:
    >
    The idle-timeout-seconds property controls the timeout/removal behavior.
    which stateful session cache type are you using ? LRUCache or NRUCache

  • How to disable and enable a java bean area's visability?

    I have a large javabean area on my initial canvas when first dispalying my form.
    When I use the SHOW_CANVAS('canvas name') to display another canvas, everything looks fine except that the javabean from my previous canvas is still visible and covering up portions of this new canvas.
    So I tried using the set_property visible for the javabean area in the form and it only got rid of the surrounding edge of the javabean area.
    Last I made some set_custom_property values to send to the bean that would then use java calls to enable and disable the beans visability.
    But once the beans visibility was disabled in Java then it wouldn't come back after the calls to enable the visibility and refresh the bean were made through Java calls.
    Is there any other ways of disabling and enabling a java bean area's visability?
    Thanks,
    Michelle

    Hello,
    Maybe the bean is always display because of its particular paint() method ?
    Anyway, without any reflexion, I could suggest you to set the bean item width and height to 1 pixel when you don't want to display it. (Set_Item_Property)
    Francois

  • How to embed excel in java bean area on oracle forms 9i?

    Hi,
    I am trying to embed excel in oracle forms 9i using java bean. I want to open excel sheet in the bean area not as seprate application. Means i donot want to excel running separately from forms on the machine.
    If any body knows the solution please reply.
    Best regrads,
    Shiraz

    Hi
    Is it possible to create a java bean, with a click event which populates data from database table to an excel sheet.
    The data(can be obtained in a string format with delimiters, but can anyone help me in exporting this into an excel sheet). and also to provide user to take prints of the data in the excel sheet.
    If Print of the JTable could be done(by settin printable as this), but this involves unwanted buttons to be printed, and entire table is not available in the spread sheet format.
    Thanks in Advance
    Deepa

  • How to call  servlet from applet residing in Oracle9i forms bean area.

    Dear Members
    I have an applet which is calls a servlet for database operations. If access this from a browser it works fine as the applet is signed. But When i place this applet in a bean area of Forms in Oracle 9i. It gives access control exception. Can anyone help me, as i feel this problem is with oracle9i forms.

    Dear Members
    I have an applet which is calls a servlet for database
    operations. If access this from a browser it works
    fine as the applet is signed. But When i place this
    applet in a bean area of Forms in Oracle 9i. It gives
    access control exception. Can anyone help me, as i
    feel this problem is with oracle9i forms.As far as I recall - Oracle 9i forms is operating on a top of another special/internal servlet. I can't really recall, since I've been working with Oracle 9i forms 2 yrs ago. So total procedure looks like following:
    applet -> Oracle 9i Forms servlet -> my servlet
    instead of
    applet -> my servlet
    I think this is an actual reason why your signed applet can't work with your servlet.
    Oracle 9i servlet has a number configuration files, I think among them you should change smth to get your construction working. Another approach would be to use servlet filtering before calling Oracle 9i servlet
    Hopefully it will help
    Paul

  • Rad-only Entity beans are replicated?

    Hi. I have just read the document "Failover and Replication in a cluster": http://edocs.bea.com/wls/docs81/cluster/failover.html#1008850
    I have no clear if read-only entity beans are replicated?
    I understand that replica-aware stub does not mean that stub objects are replicated in all the servers of the cluster. This seems to be only for statefull session beans.
    Thx.

    Hi,
    we use read only entity beans. It is beneficial if have findByPrimaryKey finders. but we also have finders on non primary key coloumn also. is there a way to cache such local references returned by such non primary key finders also.

  • A cmr-field and a cmp-field on the bean are using the same name. The names

    Hi:
    I am using weblogic 8.1 and MyEclipse 5.1.1. I am deploying my ear application through MyEclipse 5.1.1 as an ear file.
    When I ran the following EJB QL:
    SELECT OBJECT(p) FROM Product p.category = ?1
    I get the following error:
    n relation Category-Product, a cmr-field and a cmp-field on the bean are using the same name. The names of cmr and cmp fields must be unique.
    It is basically complaining that I have a field
    <cmr-field>
                             <cmr-field-name>category</cmr-field-name>
                        </cmr-field>
    in my ejb-jar.xml and also the same category in the
    <cmp-field><field-name>category</field-name></cmp-field>
    field. The problem is that if I changed the value of the cmr-field, I have to add a get and set in my productLocal.java and when you do that you have to do the same in the ejb-jar.xml.
    Here is my ejb-jar.xml:
    <?xml version="1.0"?>
    <!DOCTYPE ejb-jar PUBLIC
    "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
    "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar>
    <enterprise-beans>
    <entity>
    <ejb-name>CategoryEJB</ejb-name>
    <local-home>com.CategoryHomeLocal</local-home>
    <local>com.CategoryLocal</local>
    <ejb-class>com.CategoryBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.Integer</prim-key-class>
    <reentrant>False</reentrant>
    <cmp-version>2.x</cmp-version>
    <abstract-schema-name>Category</abstract-schema-name>
         <cmp-field><field-name>categoryId</field-name></cmp-field>
    <cmp-field><field-name>categoryName</field-name></cmp-field>
    <cmp-field><field-name>picture</field-name></cmp-field>
    <cmp-field><field-name>pictureWidth</field-name></cmp-field>
    <cmp-field><field-name>pictureHeight</field-name></cmp-field>
    <cmp-field><field-name>labelOn</field-name></cmp-field>
         <cmp-field><field-name>labelOff</field-name></cmp-field>
         <cmp-field><field-name>button</field-name></cmp-field>
    <primkey-field>categoryId</primkey-field>
    <security-identity><use-caller-identity/></security-identity>
              <query>
                   <query-method>
                        <method-name>findCategory</method-name>
                        <method-params></method-params>
                   </query-method>
                   <ejb-ql>
                        SELECT OBJECT(c) FROM Category c
                   </ejb-ql>
              </query>
         </entity>
         <entity>
    <ejb-name>ProductEJB</ejb-name>
    <local-home>com.ProductHomeLocal</local-home>
    <local>com.ProductLocal</local>
    <ejb-class>com.ProductBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.Integer</prim-key-class>
    <reentrant>False</reentrant>
    <cmp-version>2.x</cmp-version>
    <abstract-schema-name>Product</abstract-schema-name>
         <cmp-field><field-name>productId</field-name></cmp-field>
    <cmp-field><field-name>brandName</field-name></cmp-field>
    <cmp-field><field-name>productDescription</field-name></cmp-field>
    <cmp-field><field-name>purchasePrice</field-name></cmp-field>
    <cmp-field><field-name>category</field-name></cmp-field>
    <primkey-field>productId</primkey-field>
    <security-identity><use-caller-identity/></security-identity>
              <query>
                   <query-method>
                        <method-name>findProduct</method-name>
                        <method-params>
                        <method-param>com.CategoryLocal</method-param>
                        </method-params>
                   </query-method>
                   <ejb-ql>
                        SELECT OBJECT(p) FROM Product p.category = ?1
                   </ejb-ql>
              </query>
         </entity>
    </enterprise-beans>
    <relationships>
                   <ejb-relation>
                   <ejb-relation-name>Category-Product</ejb-relation-name>
                   <ejb-relationship-role>
                        <ejb-relationship-role-name>
                             Category-has-many-Product-numbers
                        </ejb-relationship-role-name>
                        <multiplicity>one</multiplicity>
                        <relationship-role-source>
                             <ejb-name>CategoryEJB</ejb-name>
                        </relationship-role-source>
                        <cmr-field>
                             <cmr-field-name>productNumbers</cmr-field-name>
                             <cmr-field-type>java.util.Collection</cmr-field-type>
                        </cmr-field>
                   </ejb-relationship-role>
                   <ejb-relationship-role>
                        <ejb-relationship-role-name>
                             Product-belongs-to-Category
                        </ejb-relationship-role-name>
                        <multiplicity>many</multiplicity>
                        <cascade-delete/>
                        <relationship-role-source>
                             <ejb-name>ProductEJB</ejb-name>
                        </relationship-role-source>
                        <cmr-field>
                             <cmr-field-name>category</cmr-field-name>
                        </cmr-field>
                   </ejb-relationship-role>
              </ejb-relation>
    </relationships>
    <assembly-descriptor>
    <security-role>
    <role-name>Employees</role-name>
    </security-role>
    <method-permission>
    <role-name>Employees</role-name>
    <method>
    <ejb-name>CategoryEJB</ejb-name>
    <method-name>*</method-name>
    </method>
    </method-permission>
    <container-transaction>
    <method>
    <ejb-name>CategoryEJB</ejb-name>
    <method-name>*</method-name>
    </method>
    <method>
    <ejb-name>ProductEJB</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>     
    Here is my weblogic-cmp-rdbms-jar.xml:
    <!DOCTYPE weblogic-rdbms-jar PUBLIC
    '-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB RDBMS Persistence//EN'
    'http://www.bea.com/servers/wls810/dtd/weblogic-rdbms20-persistence-810.dtd'>
    <weblogic-rdbms-jar>
    <weblogic-rdbms-bean>
         <ejb-name>CategoryEJB</ejb-name>
    <data-source-name>ShoeStore</data-source-name>
         <table-map>
              <table-name>category</table-name>
              <field-map>
              <cmp-field>categoryId</cmp-field>
              <dbms-column>categoryID</dbms-column>
              </field-map>
              <field-map>
              <cmp-field>categoryName</cmp-field>
              <dbms-column>categoryName</dbms-column>
              </field-map>
              <field-map>
              <cmp-field>picture</cmp-field>
              <dbms-column>Picture</dbms-column>
              </field-map>
              <field-map>
              <cmp-field>pictureWidth</cmp-field>
              <dbms-column>PictureWidth</dbms-column>
              </field-map>
              <field-map>
              <cmp-field>pictureHeight</cmp-field>
              <dbms-column>PictureHeight</dbms-column>
              </field-map>
              <field-map>
              <cmp-field>labelOn</cmp-field>
              <dbms-column>LabelOn</dbms-column>
              </field-map>
              <field-map>
              <cmp-field>labelOff</cmp-field>
              <dbms-column>LabelOff</dbms-column>
              </field-map>
              <field-map>
              <cmp-field>button</cmp-field>
              <dbms-column>Button</dbms-column>
              </field-map>
    </table-map>
    <automatic-key-generation>
    <generator-type>SQL_SERVER</generator-type>
    </automatic-key-generation>
    </weblogic-rdbms-bean>
    <weblogic-rdbms-bean>
         <ejb-name>ProductEJB</ejb-name>
    <data-source-name>ShoeStore</data-source-name>
         <table-map>
              <table-name>PRODUCT</table-name>
              <field-map>
              <cmp-field>productId</cmp-field>
              <dbms-column>productId</dbms-column>
              </field-map>
              <field-map>
              <cmp-field>brandName</cmp-field>
              <dbms-column>brandName</dbms-column>
              </field-map>
              <field-map>
              <cmp-field>productDescription</cmp-field>
              <dbms-column>productDescription</dbms-column>
              </field-map>
              <field-map>
              <cmp-field>purchasePrice</cmp-field>
              <dbms-column>purchasePrice</dbms-column>
              </field-map>
              <field-map>
              <cmp-field>category</cmp-field>
              <dbms-column>categoryId</dbms-column>
              </field-map>
    </table-map>
         <!-- Automatically generate the value of ID in the database on inserts using sequence table -->
    <automatic-key-generation>
    <generator-type>SQL_SERVER</generator-type>
    </automatic-key-generation>
    </weblogic-rdbms-bean>
    <weblogic-rdbms-relation>
         <relation-name>Category-Product</relation-name>
    <weblogic-relationship-role>
    <relationship-role-name>Product-belongs-to-Category</relationship-role-name>
              <relationship-role-map>
    <column-map>
    <foreign-key-column>categoryId</foreign-key-column>
    <key-column>categoryID</key-column>
    </column-map>
              </relationship-role-map>
    </weblogic-relationship-role>
    </weblogic-rdbms-relation>
    </weblogic-rdbms-jar>
    Here is my productLocal.java:
    package com;
    import javax.ejb.CreateException;
    import javax.naming.NamingException;
    import java.util.Date;
    import java.util.Vector;
    import java.util.Collection;
    public interface ProductLocal extends javax.ejb.EJBLocalObject
         public Integer getProductId();
         public void setProductId(Integer productId);
         public String getBrandName();
         public void setBrandName(String brandName);
         public String getProductDescription();
         public void setProductDescription(String productDescription);
         public Double getPurchasePrice();
         public void setPurchasePrice(Double purchasePrice);
    public CategoryLocal getCategory();
         public void setCategory(CategoryLocal category);
    Here is my ProductBean.java:
    package com;
    import javax.naming.InitialContext;
    import javax.ejb.EntityContext;
    import javax.ejb.CreateException;
    import javax.naming.NamingException;
    import java.util.Date;
    import java.util.Collection;
    import java.util.Iterator;
    import java.util.Vector;
    import java.lang.Integer;
    public abstract class ProductBean implements javax.ejb.EntityBean
         public Integer ejbCreate(Integer id)
              this.setProductId(id);
              return null;
         public void ejbPostCreate(Integer id)
         //public abstract Integer getCategoryId();
    //     public abstract void setCategoryId(Integer categoryId);
         public abstract CategoryLocal getCategory();
         public abstract void setCategory(CategoryLocal category);
         public abstract Integer getProductId();
         public abstract void setProductId(Integer productId);
         public abstract String getBrandName();
         public abstract void setBrandName(String brandName);
         public abstract String getProductDescription();
         public abstract void setProductDescription(String productDescription);
         public abstract Double getPurchasePrice();
         public abstract void setPurchasePrice(Double purchasePrice);
         public void setEntityContext(EntityContext ec)
              System.out.println("ProductBean setEntityContext");
         public void unsetEntityContext()
              System.out.println("ProductBean unsetEntityContext");
         public void ejbLoad()
              System.out.println("ProductBean ejbLoad");
         public void ejbStore()
              System.out.println("ProductBean ejbStore");
         public void ejbActivate()
              System.out.println("ProductBean ejbActivate");
         public void ejbPassivate()
              System.out.println("ProductBean ejbPassivate");
         public void ejbRemove()
              System.out.println("ProductBean ejbRemove");
    What do I needed to do to fix this problem.
    Any hint or help would be greatly appreciated!!!
    Yours,
    Frustrated

    cmr field which is "category" in ur mapping , u can't use as cmp field in abstract schema mapping. just remove category from cmp field . and every thing is fine

  • Stacked canvas and bean area

    Hi
    i have a bean area which display graph placed on a stacked canvas. i have set the stacked canvas to show the horizontal scrollbar. i want to allow user to scroll through the stacked canvas when the graph increase in width.
    in my program, the bean area width would be dynamically change - increase the width depending on the number of data using
    set_item_property('NAV.BA',WIDTH,690).
    but the bean area does not seem to increase in width even when i set the property. why is it so?
    appreciate any help. thx.
    Siti

    Hi,
    did you try to change the size of the bean display that runs in the BeanArea. The bean area should adjust to the size of the bean displayed. I didn't find a bug filed on the issue of not being able to set the width and height of a JavaBean container. But I could find one for Forms 6.0.5 that was fixed in 6i about not resizing the bean container according to the resize of the embedded bean area.
    If this doesn't solve the problem I recommend contacting customer support at metalink.oracle.com
    Frank

  • PJC and Bean Area

    Is it possible to use a bean area or a pjc in forms client server mode, I mean not via a browser?
    Kind regards
    Heinz
    null

    You can pull the 9i demos off OTN, this installs a whole bunch of PJCs for you.
    Some advice:
    Jar up your class - use the deployment options within JDev to do this. Then you can put the JAR file anywhere you want, but the location must be accessible as a virtual directory and you jhave to update the archive and archive_jini lines in your configs to point to the jar in the virtual directory where you've placed it.
    I generally throw the jar into forms90/java directory along with the f90all.jar, although you'll see with the demos wwe put them into a forms90/demos/jars directory which has a virtual address pointing to it in the OC4J Config.

  • Are EJB ( entity beans) are cached ?

    Are EJB ( entity beans) are cached ?
    I have a doubt here . As per my understanding , the entity beans are cached from the database. In that case , If I delete a row in the database by an external application ( say using TOAD tool) , how the Entity bean will be updated / reloaded ? Entity bean will be out of sync then .
    Application server : weblogic/webspehere .

    >
    You can use the refresh method of the EntityManager interface to read new values from the database (if you expect it to be out of sync), and use locks to prevent others from changing your data while the application is performing actions in a transaction.Did you mean I have to write code for this ? can't be made it automatic refresh by the container ? Is there any settings I can configure so that container can do it by itself proactively ?
    Also, using locks ...is this a container settings or I need to configure myself in ejb-jar.xml ? Could you please shed some light here ?

  • Applet, images and the Bean Area

    I've created a Java Swing Applet Bean that simply displays a GIF image that it receives via a URL. The Applet works well on its own, however, I have tried to register my Java Applet Bean with a Forms Bean Area and although I can see that something is happening (the bean area turns gray) I still cannot see the image etc.
    What I've done is:
    1)Created a Java Class that extends oracle.forms.ui.VBean and draws an image.
    2)Next I JAR-ed the class and placed it, as well as dependent JARs in the IDS_HOME/forms90/java directory and added the JAR to the formsweb.cfg
    3)Then I created a new form with a Bean Area.
    4)Then I created a button with a trigger that when pressed calls fbean.register_bean('CUSTOMERS.FORMSMAPBEAN',1,'oracle.forms.fbean.FormsMapBean')
    Does anyone have an idea what might be happening or how to make this work? Has anyone implemented an Applet within a Bean Area?
    Thank You In Advance,
    Justin

    My pleasure. The procedure and code that I used to create a dynamic image Bean is the following. Please note however, that I am in no way a Forms developer and will probably not be able to answer Forms questions. Here it is:
    1) I created a Java Class (Bean) called FormsImageBean using JDeveloper which extends oracle.forms.ui.VBean. The code looks like this:
    *FormsImageBean is a simple bean that takes 1 argument via the method, getImageURL,
    *which returns an ImageIcon from which to build a Swing Applet from.  FormsImageBean
    *extends Oracle Forms VBean such that the Swing applet can be used in a bean area.
    *Because FormsImageBean does use sockets to reach outside of the applet (and Form) it
    *must be signed or allowed via the java policy file in order to run in a public environment
    * @author Justin Lokitz
    * @version 1.0
    package oracle.forms.fbean;
    import java.net.URL;
    import javax.swing.ImageIcon;
    import oracle.forms.ui.VBean;
    import javax.swing.JPanel;
    import java.awt.BorderLayout;
    import javax.swing.JLabel;
    import java.awt.Image;
    public class FormsImageBean extends VBean
    private JPanel jPanel1 = new JPanel();
    private JLabel jLabel1 = new JLabel();
    public static ImageIcon img = null;
    public static String UrlStr = null;
    * default class constructor for FormsImageBean
    public FormsImageBean()
    try
    jbInit();
    catch(Exception e)
    e.printStackTrace();
    * Takes 1 argument and returns ImageIcon from URL.
         * @param name ID
         * @return Returns ImageIcon via URL parameters
    public ImageIcon getImageUrl(String id){
    try{
    //create image
    UrlStr = "http://www.foo.com?id=" + id;
    URL url = new URL(UrlStr);
    img = new ImageIcon(url);
    catch (Exception e)
    System.err.print("Something happened when trying to get get the image. Error: " + e);
    return img;
    * Initialization of the Swing applet
    private void jbInit() throws Exception
    jLabel1 = new JLabel(getImageUrl("135"));
    jPanel1.add(jLabel1, null);
    this.add(jPanel1, BorderLayout.CENTER);
    2) I deployed this code as a JAR file, along with dependent JARs to the $DEVELOPER_HOME/forms90/java directory and signed the JAR using the java keytool.exe. I also updated the formsweb.cfg with the new JARs.
    3) Next I created a form with a BeanArea called FormsBeanArea and referenced my full class, "oracle.forms.fbean.FormsImageBean", for the "Implementation class" property in the FormsBeanArea dialog.
    4) After many tests, it worked.
    Best Regards,
    Justin

  • Developer 6i,Item type "User Area" and "Bean Area"

    kindly I want to know how to use item type "user area" and "Bean Area",i never used them and i didnt find good help about them,and i appreciate any help with examples.

    Hello,
    I have forgotten what is the user area because it has disapear with the 9i version.
    The bean area allows you to put some java bean component inside your Forms module.
    Check out the demos available on the Forms OTN page
    http://www.oracle.com/technology/sample_code/products/forms/index.html
    Francois

  • Add listener in HTMLPANE BEAN AREA

    I have a Java class which interprets the HTML code (based on http://forms.pjc.bean.over-blog.com/article-1896785.html).
    On the other hand I have another class that captures the key down (based on the exemple keypressed.zip in the same web page http://forms.pjc.bean.over-blog.com).
    Both classes are in the same jar.
    In my form I have a bean area that implements the HTML class, but if the focus is on this element ignores the key pressed.
    The same thing happened with the buttons and adding the following code in the KEY class has been fixed.
    protected void getTextItems(Component component, int iter)
    if (component.getClass().getName().equals("oracle.forms.ui.VTextField"))
    oracle.forms.ui.VTextField vt = (oracle.forms.ui.VTextField)component ;
    vt.addKeyListener(kl);
    else if (component.getClass().getName().equals("oracle.forms.ui.VTextArea"))
    oracle.forms.ui.VTextArea ta = (oracle.forms.ui.VTextArea)component ;
    ta.addKeyListener(kl);
    else if (component.getClass().getName().equals("oracle.forms.ui.VBean"))
    oracle.forms.ui.VBean abe = (oracle.forms.ui.VBean)component ;
    abe.addKeyListener(kl);
    else if (component.getClass().getName().equals("oracle.forms.ui.VButton"))
    oracle.forms.ui.VButton btn = (oracle.forms.ui.VButton)component ;
    btn.addKeyListener(kl);
    if (component instanceof Container)
    Component components[] = ((Container)component).getComponents();
    iter++;
    for (int i = 0; i < components.length; i++)
    { if (components[i] != null)
    { getTextItems(components[i],iter);}
    The HTML class implements VBean, i don't understand why the next code hasn't effect
    else if (component.getClass().getName().equals("oracle.forms.ui.VBean"))
    oracle.forms.ui.VBean abe = (oracle.forms.ui.VBean)component ;
    abe.addKeyListener(kl);
    Some idea?
    Regards

    Hi,
    you will have to register this function as a custom ID and then handle the call in the set_property() method of the PJC.
    If this method is supposed to only return a value, then use the get_property() method.
    protected static final ID mTest = ID.registerProperty("MYTEST");
    public Object getProperty(ID p0){
    if (ID== mTest) then {
    return "my string";
    else
    return super.getProperty(p0);
    variable1 := get_custom_property('block.beanitem',1,'MYTEST');
    Note that the code could contain typos as I was writing it from the top of my head.
    Frank

  • Why is my applet not visible in the bean area?

    I have a simple test form with a bean area. I have set the implementation class of the bean area and added the .jar file to the formsweb.cfg archive parameter.
    When I load the form (no errors) I can see in the Java console that my applet works perfectly, all of the data is retrieved from the remote database as expected.
    My problem is that the bean area is grayed out and I see NOTHING there.
    What am I missing so that my applet will show up?
    I am using forms 10g.
    Thanks...
    Edited by: errodr on Dec 21, 2012 10:52 AM

    An applet is just a container for a java-application. If you have the source-code, there will be some main-class which puts the main-layout into the applet. This code has to be modified and included in your Bean-class.

Maybe you are looking for

  • Help Apple!

    I just bought a Dell U2412m 24inch monitor. Excited because I know how good this monitor is when connected to a MacBook Pro and then when it got here I hooked it up to my mid-2010 MacBook Pro and all I get is a flickering every 3-4 seconds. If I keep

  • All photos seem to be gone or corrupted

    I have been using iphoto 5.0.4 for a few years with no problems and had about 4000 photos. Today I went to open iphoto as usual, and I have blank squares where the photos used to be. If I right click on one of these squares to edit in separate window

  • Changing the filename prefix or setting the starting number

    I have two PowerShots. I have been using one for years. My newer one sets the filenames with the same prefix, IMG, and starts numbering at 0001. Can I change this so I don't get duplicate filenames in my photo library. I realize that having the new p

  • Preserving Folder Structure When Exporting

    Hello, I recently bought a fancy new hard drive and I would love to export my photos onto there. I have lovingly organised my photos within Aperture using its folders, projects etc, however, the same can not be said for the masters on the harddrive w

  • Active directory account lockout issue

    I have 1 main AD server which is on windows 2003 R2 and all users are authenticated from this server and second ADC i.e backup ADC which is on windows 2003 R2, we have 3rd ADC on windows 2008 R2 which is created for Exchange 2010 on windows 2008R2, U