PJC, Set_Custom_Property problem

I'm trying to use a PJC in a multi-record block to set the colour of a field depending on the data, but have run into a problem.
I can't find documentation for Set_Custom_Property but I always assumed that the second parameter referred to the record in the dataset, like in Set_Item_Instance_Property. It appears that the parameter might actually refer to the row in the physical block (unless my code's wrong), so setting the property for 'record' 11 in a block with 10 rows displayed gives a FRM-40741 error (unable to locate record <no> on block <block name>). Setting the colour of the 9th row is OK but when the data scrolls the colour stays put.
Does anyone know for sure what the parameters are, or have any decent documentation for pjc-related stuff, especially API's (google displays only 20 results for "oracle forms ui vtextfield")?
The code:package pjcs;
import oracle.forms.ui.VTextField;
import oracle.forms.properties.ID;
import java.awt.Color;
public class ColorTextItem extends VTextField {
  public static final ID FG_COLOR = ID.registerProperty("FG_COLOR");
  public static final ID BG_COLOR = ID.registerProperty("BG_COLOR");
  public ColorTextItem() {
    super();
  // expects r,g,b values separated by commas
  public Color getColor(String colourValue) {
    try{
      int r,g,b;
      int rPos, gPos;
      rPos = colourValue.indexOf(",");
      gPos = colourValue.indexOf(",", rPos + 1);
      if (rPos < 1 || gPos < 1 || gPos + 1 == colourValue.length()) {
        throw new Exception("Invalid colour");
      r = Integer.parseInt(colourValue.substring(0, rPos));
      g = Integer.parseInt(colourValue.substring(rPos + 1, gPos));
      b = Integer.parseInt(colourValue.substring(gPos + 1));
      if (r < 0 || r > 255 || g < 0 || g > 255 || b < 0 || b > 255) {
        throw new Exception("Invalid colour");
      return new Color(r,g,b);
    } catch(Exception e) {
      return new Color(0,0,0);
  public boolean setProperty(ID id, Object value) {
    if (id == FG_COLOR)
      this.setForeground(getColor(value.toString()));
      return true;
    if (id == BG_COLOR)
      this.setBackground(getColor(value.toString()));
      return true;
    return super.setProperty(id,value);
}This thread is for PJCs, please post any alternative solutions to the colours problem here:
Re: Colours controlled by user.

I can't find documentation for Set_Custom_Property
but I always assumed that the second parameter
referred to the record in the dataset, like in
Set_Item_Instance_Property. I can't find anything specific for it - other than the PJC info in forms help. (Serach on SET_CUSTOM_PROPERTY in the SEARCH tab).
Are there any Oracle PJC demos that do this?
It appears that the
parameter might actually refer to the row in the
physical block (unless my code's wrong), so setting
the property for 'record' 11 in a block with 10 rows
displayed gives a FRM-40741 error (unable to locate
record <no> on block <block name>). Setting the
colour of the 9th row is OK but when the data scrolls
the colour stays put.Ok - I would expect this. Your setting the field, not the record.
I would think that some sort of trigger that goes through the data
in the block that is displayed on the screen everytime the scroll bar
changes would then update current view with your code. I think
you'd have to catch cursor down/up too..and maybe a few others.
Does anyone know for sure what the parameters are, or
have any decent documentation for pjc-related stuff,
especially API's (google displays only 20 results for
"oracle forms ui vtextfield")?Not sure what depth of information you are looking for - but this might be a start:
Start up Oracle JDeveloper.
File->New, Client Tier->Java Beans, Item->PJC, Next
Extends->orace.forms.ui.vTextField, OK
Right click, class editor, then properties
This shows all the properites, and then you can display the inherited fields.

Similar Messages

  • PJC set_custom_property gives unable to communicate with runtime process

    Hi
    I am modifying a PJC that extends VTextItem to act as a hyperlink I have registered a property in the PJC with the following code:
    public static final ID activeColor = ID.registerProperty("ACTIVE_COLOUR");
    I then attempt to set the property from my form with the following code
    set_custom_property('icr_block1.icr_details',lv_rec_number,'ACTIVE_COLOUR','45,213,169');
    icr_block1.icr_details is a text item that has the PJC as its implementation class. The following error appears in the java console
    oracle.forms.net.ConnectionException: Forms session <5> aborted: unable to communicate with runtime process
    Anybody have any ideas?
    many thanks
    paul schweiger

    Permission granted - here is the full java code. When I set_custom_property in the form neither of the debug messages in the java fire
    package pjcs;
    //package totem.forms.extensions;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.StringTokenizer;
    import oracle.forms.properties.ID;
    import oracle.forms.ui.VTextField;
    public class TextLink extends VTextField
         public static final ID treatAsLink = ID.registerProperty("TREAT_AS_LINK");
    public static final ID activeColor = ID.registerProperty("ACTIVE_COLOUR");
    public static final ID visitedColor = ID.registerProperty("VISITED_COLOUR");
    private Cursor defaultCursor;
    private Cursor hoverCursor;
    private String pTreatAsLink = "YES";
    private Color pActiveColor;
    private Color pVisitedColor;
    private Color pNormalColor;
    private boolean m_debug = true;
    private boolean m_debugAll;
    private final String CLASSNAME = this.getClass().getName();
         public TextLink()
              try
                   jbInit();
              catch(Exception e)
                   e.printStackTrace();
         private void jbInit() throws Exception
              log("start text link");
    // Get reference to standard cursor
              defaultCursor = this.getCursor();
              // Create hand cursor for hover state
    hoverCursor = new Cursor(Cursor.HAND_CURSOR);
              // Add mouse listeners for changing cursor
              // Anonymous class used for simplicity
              this.addMouseListener(new MouseAdapter()
                   public void mouseEntered(MouseEvent me)
                        // Set hover cursor if field contains text
                        if (getText().length() > 0 && pTreatAsLink == "YES")
                             setCursor(hoverCursor);
    pNormalColor = getForeground();
    setForeground(pActiveColor);
                   public void mouseExited(MouseEvent me)
                        // Change cursor back
    if (pTreatAsLink == "YES")
                        setCursor(defaultCursor);
    setForeground(pNormalColor);
    * set the properties of the bean
    public boolean setProperty(ID property, Object value)
    log("set prop");
    if (property == treatAsLink)
    pTreatAsLink = value.toString();
    return true;
    else if (property == activeColor)
    pActiveColor = stripColour(value) ;
    return true;
    else if (property == visitedColor)
    pVisitedColor = stripColour(value) ;
    return true;
    else
    return super.setProperty(property, value);
    private Color stripColour(Object pColour) {
    String color = pColour.toString().trim();
    int r=-1, g=-1, b=-1, c=0 ;
    StringTokenizer st = new StringTokenizer(color,",");
    while (st.hasMoreTokens()) {
    c = new Integer((String)st.nextToken()).intValue() ;
    if( (c <0) || (c > 255) ) c = 0 ;
    if( r == -1 ) r = c ;
    else if( g == -1 ) g = c ;
    else if( b == -1 ) b = c ;
    return (new Color(r,g,b));
    public void log(String msg)
    if(m_debug||m_debugAll)
    System.out.println(CLASSNAME + ": " + msg);
    }

  • {PJC} set_custom_property

    Hello,
    I have a custom Oracle Form ( TEST1.fmb) installed into Oracle eBusiness Suite where this form contains a Bean Area referencing a PJC (Pluggable Java Component). The PJC extends oracle.forms.ui.VBean.I want to get value in a particular field using PJC.I'm able to communicate with PJC and get the required output.
    Now my requirement is to get value of a field in TEST2.fmb which is called by clicking "OK" button of TEST1.fmb.
    Just i want to know is that , when a Bean is called using SET_CUSTOM_PROPERTY, will Form instantiate a new bean object everytime?

    I want to know whether its possible to add a custom java bean in oracle form in Oracle E-business suite. Appreciate if someone can update me with a helpful URL which demonstrates how this is done.
    Have done the same thing for Oracle forms - in our in house built systems; but done know whether its possible in Ebusiness R12.

  • JavaBean PJC navigation problem

    Hello All,
    I'm using a calendar bean in my forms application. In the object navigator the bean is placed next to the text item to which it is to return a date value. My problem is I'm not able to navigate to the bean area and then pass on to the next item specified in the object navigator using the keyboard. Everytime I press the Tab key from the text item, the control vanishes, only to reappear in the same item upon pressing the tab key again. Do I've make changes in the property palette of the bean area. For your information I've set both the keyboard & Mouse navigate of the bean area to false. Is there a way to rectify this.
    Regards,
    Arun.V

    I'm using the Calendar PJC JavaBean supplied along with the forms10g demos in my own custom application. As far as the functionality of the returning a date to a particular date field it's working fine. But there are three issues, some of which I've mentioned in my previous posts that I'm facing again.
    1) Unable to navigate from and to the bean area using the Keyboard.
    2) I'm getting Java Console errors like
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    Forms Applet version is : 10.1.2.0
    CalendarWidgetWrapper: init()
    OUTERSIZE
    CalendarWidgetWrapper: init()
    OUTERSIZE
    CalendarWidgetWrapper: init()
    OUTERSIZE
    java.lang.ClassNotFoundException: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Unknown Source)
         at oracle.forms.handler.UICommon.instantiate(Unknown Source)
         at oracle.forms.handler.UICommon.onCreate(Unknown Source)
         at oracle.forms.handler.ButtonItem.onCreate(Unknown Source)
         at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Unknown Source)
         at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
         at oracle.forms.engine.Runform.onMessage(Unknown Source)
         at oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)
         at oracle.forms.engine.Runform.startRunform(Unknown Source)
         at oracle.forms.engine.Main.createRunform(Unknown Source)
         at oracle.forms.engine.Main.start(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    I'm using this particular piece of code in WHEN_CUSTOM_ITEM_EVENT by which I could retrieve the date.
    DECLARE
         hBeanEventDetails ParamList;
         eventName varchar2(80);
         paramType number;
         eventType varchar2(80);
         newDateVal varchar2(80);
         newDate date := null;
         dat varchar2(20);
    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;
         :testing_registration.test_dd_date :=newDate;
    end;
    Can anyone point tell me if there's any error in this code & hopefully the root cause of this error in the Java Console.

  • PJC EVENT PROBLEM

    Hi All,
    I have a PJC (pluggable Java Component) to dispatch an event every XX seconds.
    The problem is i don't want to dispatch CUSTOM-ITEM-EVENT since the bean is running in a background form
    and i will be opening multiple forms at the same time.....
    Is there any way that i can call a forms trigger or dispatch a "WHEN-BUTTON-PRESSED" event to a forms button from inside the java bean??
    Thank you..

    Hello,
    The only message you can send back to Forms from the Java Bean is the When-Custom-Item-Event.
    If you don't want to send message back when the module is not active, you could use the When-Window-Deactivated trigger to tell the Java Bean that it is not active any more, and When-Window-Activated to allow again the bean to send message back to Forms.
    Francois

  • Problems copying from PJC to system clipboard

    I am working on a PJC to allow for editing of large text fields (> 64K). I have most of the functionality working fine. However, I am having a problem using cut, copy, and paste.
    Some details, the PJC extends VBean and includes as JTextArea. Our users want a right click menu to provide functionality for cutting, copying, pasting, and spell checking. I was able to get the spell check working using JSpell. I am not able to get the menu entries for cut, copy, and paste to work. I construct a JPopMenu with the appropriate items. When the menu is activated, if the user selects cut, the actionPerformed method executed the cut method of the JTextArea. This does cut the text from the item, however it is not added to the clipboard for use in other items, except those that have the same implementation class of the original item. If the user uses the keyboard (CTRL-X, CTRL-C, or CTRL-V) the selected data is copied to the system clipboard
    Here is the method I used to create the menu items:
      private JMenuItem makeMenuItem(String label, char acceleratorKey)
        JMenuItem item = new JMenuItem(label);
        item.addActionListener(this);
        item.setMnemonic(acceleratorKey);
        item.addKeyListener(this);
        printDebugMessage("Horizontal text alignment = " + item.getHorizontalAlignment());
        item.setHorizontalAlignment(SwingConstants.LEFT);
        printDebugMessage("Horizontal text alignment = " + item.getHorizontalAlignment());
        return item;
      }Here is the actionPerformed method:
      public void actionPerformed(ActionEvent ae)
        String selection = ae.getActionCommand();
        if (selection.equals("Cut"))
          printDebugMessage("Cut selected");
          text.cut();
        else if (selection.equals("Copy"))
          printDebugMessage("Copy selected");
          text.copy();
        else if (selection.equals("Paste"))
          printDebugMessage("Paste selected");
          text.paste();
        else if (selection.equals("Spell Check"))
          printDebugMessage("Spell Check selected");
          doSpellCheck();
      }I read that jar files needed to be signed to interact with the desktop, but when I signed the jar file the results were the same.
    Platform
    10g AS on Solaris 10.1.2.2
    Windows XP (SP2)
    IE7
    Sun plugin 1.5.0_11 (problem also occurs with 1.4.2_06)
    Any insights would be helpful.
    Thanks

    will that create a problem?Try it and see.

  • Problem with PJC (Print Dialog) - Forms 10g

    I have a problem with my PJC for Forms 10g r2. When I try to connect and run my PJC (raise Print dialog and put printer name in some text item) I get following message:
    oracle.forms.net.ConnectionException: Forms session <2> aborted: unable to communicate with runtime process.
         at oracle.forms.net.ConnectionException.createConnectionException(Unknown Source)
         at oracle.forms.net.HTTPNStream.getResponse(Unknown Source)
         at oracle.forms.net.HTTPNStream.doFlush(Unknown Source)
         at oracle.forms.net.HTTPNStream.flush(Unknown Source)
         at java.io.DataOutputStream.flush(Unknown Source)
         at oracle.forms.net.StreamMessageWriter.run(Unknown Source)
    When I started application, on Java console I saw this message, so I think the server configuration is fine (I change everything I need in Default.env and FormsWeb.cfg files):
    Loading http://devsrv/forms/java/jESPrintDialog.jar from JAR cache
    What can I change with server configuration or deploying my project to this PJC can work normaly?
    Thanks....

    Hi and thanks!
    I resolve one part of my problem. Tt was about diferent compiler (in JDeveloper 10.1.3 compiler is 1.5 and in my oc4j server JRE is earlier version, so it can`t work normaly).
    I comiled PJC in 1.4 version of compiler and now I can start and run my PJC.
    But, there is another problem:
    this is my part of java code (note: everything work fine except one line when I want to get printer name from select printer dialog):
    try {
    boolean b;
    PrinterJob job = PrinterJob.getPrinterJob();
    b = job.printDialog();
    try {
    return job.getPrintService().getName();
    catch (Exception e) {
    System.out.println("Error: "+e.getMessage());
    return "My error:";
    } catch (Exception e) {
    System.out.println("ERROR: " + e.getMessage());
    return "Problem with PJC [esoft]";
    So, when pjc want to get back printer name
    return job.getPrintService().getName();
    i get following error (on Java console):
    java.lang.NoSuchMethodError
         at happypjc.PDialog.getProperty(PDialog.java:50)
         at oracle.forms.handler.UICommon.onGet(Unknown Source)
         at oracle.forms.engine.Runform.onGetHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Unknown Source)
         at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
         at oracle.forms.engine.Runform.onMessage(Unknown Source)
         at oracle.forms.engine.Runform.processEventEnd(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Can you give me some hint about it. Everything is OK now, except this (very important) peace of code!
    best regards
    mret

  • Timeout PJC - Problem exiting when Message box or LOV is displayed.

    I'm trying to integrate the Timeout PJC into my Oracle Forms. During testing, I noticed that although the timeout expires and Form A displays an expiry message, Form B will not exit if a Message Box or LOV is present requiring a response by a user. Once the user responds and these windows are closed, the user is returned to Form A and the timeout works as expected.
    All the code for the Timeout PJC including the Java Bean is in Form A. On Form
    B, I'm using the WHEN-TIMER-EXPIRED, WHEN-WINDOW-ACTIVATED and
    ON-ERROR triggers to handle the problem with the error message 41355
    (Cannot navigate to Form ...) which works fine. Any suggestions will be greatly appreciated.

    Does anyone have any suggestion to my question below?. Is there a way to exit a Form when the Timeout PJC expires and a Message Box or List of Value (LOV) requires a response by the user. I would like to exit the form and the application when there is no activity after a specified time but I'm having this issue. Thanks for you assistance.

  • Rollover button pjc problem

    I'm using this functionality but I have a problem with the images beeing set aligned to the right on the Push Button. The image aligns to the right and there is a border on the left and bottom side of the Push Button. Is there a way of setting the image alignment to the center of the Push Button?
    Also is it possible to change bevel on a Push Button?

    Hi,
    its not enough to just copy the PJC class only without knowing it class dependencies. I suggest to use the jar file we provide for this and for configuration in your Forms follow what is done in the demo Forms shipped with the demo.
    Frank

  • Jar signing problem? (continue with HOST PJC)

    <1> I've sign jar-file on Oracle9iAS server.
    <2> First form (with bean from that jar-file) loading asked me for "Granting", and after it runs without problem, bean is worked prefectly.
    <3> Second form loading shows me nothing, just explorer hanging.
    I've check JInitiator (1.3.1.9) Control Panel, Certificates tab... there is now any records. Maybe there is problem.
    (I also have(installed) Sun JSDK 1.4.1_01)
    Java Console also doesn't show any errors.
    Again form with bean doesn't loading at the second time.
    What is the problem ?
    Thank You

    Have you read the paper on Signing JAR files for JInitiator 1.3 - it details some changes that you'd be advised to make to your HTML template and the HOST bean code to get around this problem..

  • PJC tab-key navigation problem within bean  (FORMS intercepting tab key??)

    Using Forms 10.1.2.3, IE7, JRE 1.6
    When attempting to navigate within the bean area, it appears as if FORMS is suppressing the keyEvent when the tab key is pressed. This means that I cannot use tab or shift-tab to navigate within the PJC's editable fields/buttons. I can click on them, enter data within them, but tab is somehow intercepted. When I place my PJC within a normal (non-forms) Java window, everything works fine.
    Documentation that I've read seems to indicate that tab should navigate perfectly fine within the bean area.
    Any ideas?

    Hi,
    This is how I did it. Sorry about the formatting, it was OK when I pasted the code fragment in.
    My class contains this in the variable definitions.
    private AWTEventListener keyListener = new DoKey ();
    private class DoKey implements AWTEventListener {
    public void eventDispatched (AWTEvent e) {
    //System.err.println("eventDispatched " + e.toString());
    //System.err.println("eventDispatched source " + e.getSource().toString());
    if ((e instanceof KeyEvent) && (e.getSource() instanceof Component)) {
    * The event was a key pressed event and it was sourced from a Component.
    KeyEvent evt = (KeyEvent) e;
    if (evt.getID() == evt.KEY_PRESSED) {
    if (evt.getKeyCode() == evt.VK_TAB) {
    if (evt.isShiftDown()) {
    ((Component)e.getSource()).transferFocusBackward();
    else {
    ((Component)e.getSource()).transferFocus();
    The listener is enabled when on initialisation
    Toolkit.getDefaultToolkit().addAWTEventListener (keyListener, AWTEvent.KEY_EVENT_MASK);
    Regards, Tony C

  • PJC  froms run problem

    hi i am new to oracle forms PJC.
    I try to implement the following PJC http://forms.pjc.bean.over-blog.com/article-5177430.html
    but faild.
    i edit the formsweb file as
    archive_jini=frmall_jinit.jar,frmwebutil.jar,jacob.jar,pjc.jar,blink.jar
    archive=frmall.jar ,frmwebutil.jar,jacob.jar,blink.jar
    implementation class-->oracle.forms.fd.BlinkTextField
    But my textbox is not blinking.
    My Java console shows the followin exception:
    Oracle JInitiator: Version 1.3.1.22
    Using JRE version 1.3.1.22-internal Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\Administrator
    Proxy Configuration: Manual Configuration
    Proxy:
    Proxy Overrides:
    JAR cache enabled
    Location: C:\Documents and Settings\Administrator\Oracle Jar Cache
    Maximum size: 50 MB
    Compression level: 0
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    q: hide console
    s: dump system properties
    t: dump thread list
    x: clear classloader cache
    0-5: set trace level to <n>
    Loading http://polish_dap-2:8889/forms/java/frmall_jinit.jar from JAR cache
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    Forms Applet version is : 10.1.2.0
    java.lang.ClassNotFoundException: java.io.IOException: open HTTP connection failed.
    at sun.applet.AppletClassLoader.getBytes(Unknown Source)
    at sun.applet.AppletClassLoader.access$100(Unknown Source)
    at sun.applet.AppletClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.applet.AppletClassLoader.findClass(Unknown Source)
    at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at oracle.forms.handler.UICommon.instantiate(Unknown Source)
    at oracle.forms.handler.UICommon.onCreate(Unknown Source)
    at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)
    at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
    at oracle.forms.engine.Runform.processMessage(Unknown Source)
    at oracle.forms.engine.Runform.processSet(Unknown Source)
    at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
    at oracle.forms.engine.Runform.onMessage(Unknown Source)
    at oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)
    at oracle.forms.engine.Runform.startRunform(Unknown Source)
    at oracle.forms.engine.Main.createRunform(Unknown Source)
    at oracle.forms.engine.Main.start(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    I dont know what to do now?
    Please help me.
    Edited by: kaminanikamini on Jul 11, 2012 10:31 PM

    It is the second bean you are not able to run properly. Maybe you use a section[] where another archive_jini that is not updated. To be sure update ALL the archive_jini tags you find in your formsweb.cfg file.
    Francois

  • New auto fill pjc

    Hi
    I found this java code on the web to create a pjc for autofilling a combo box. It uses most of the regular features of the normal oracle combo box(for example it gets populated like normal), but it adds the autofill feature which is pretty cool. My problem is, for some reason I cannot get the value that I typed in the combo box. If I drill down with my mouse and select a value it works like normal. Its just when i'm typing. Is there any code (set_custom_property or get_custom_property) that can be added so I can capture the values I typed in? It doesn't seam to accept any of those functions.
    any help would be greatly appreciated.
    thanks
    package smartbox;
    import java.awt.event.KeyAdapter;
    import java.awt.event.KeyEvent;
    import oracle.ewt.lwAWT.lwText.LWTextField;
    import oracle.forms.ui.VComboBox;
    public class mycombo extends VComboBox
    //private String[] m_origItems;
    private char m_keyChar = 0;
    private final String CLASSNAME = this.getDefaultName();
    * Constructor for the mycombo PJC
    public mycombo() {
    super();
    try {
    jbInit();
    catch (Exception e) {
    e.printStackTrace();
    void predict(KeyEvent e)
    // get the textfield component of ComboBox
    LWTextField tf = this.getLWTextField();
    // list search flag
    boolean found = false;
    // found/selected index
    int selected = 0;
    // replace currently selected characters with acharacter that user has just typed
    tf.replaceRange(String.valueOf(m_keyChar),tf.getSelectionStart(),tf.getSelectionEnd());
    String currval = tf.getText();
    // get array of list items
    String[] origItems = this.getItems();
    // compare current text in the textfield to the list items,
    // find the first occurrence of an item that starts with what userhas typed
    for (int i = 0; i < origItems.length; i++)
    //if (m_origItems.toUpperCase().startsWith(currval.toUpperCase())) {
    found = origItems[i].toUpperCase().startsWith(currval.toUpperCase());
    if (found) {selected = i; break;}
    if (found)
    this.select(selected);
    tf.select(currval.length(),100);
    e.consume();
    private void jbInit() throws Exception {
    // Hook into the keyboard
    addKeyListener(new KeyPressAdapter());
    * Private class to intercept the keyboard actions and store the keystrokes away.
    class KeyPressAdapter extends KeyAdapter
    public void keyPressed(KeyEvent e)
    * KeyTyped is where we do the work
    http://www.sandidresources.com - Sandid Resources LLC Powered by Mambo Generated: 20 March, 2008, 23:36
    public void keyTyped(KeyEvent e)
    // we are only interested in keystrokes that result in a Unicode character;
    // other keystrokes will go default route
    int id = e.getID();
    if (id == KeyEvent.KEY_TYPED) {
    if (e.getKeyChar() != KeyEvent.VK_BACK_SPACE &&
    e.getKeyChar() != KeyEvent.VK_ENTER &&
    e.getKeyChar() != KeyEvent.VK_TAB) {
    m_keyChar = e.getKeyChar();
    predict(e);
    * Utility function to print out a debug message to the Java Console.
    * @param msg string to display, this will be prefixed with the classname of the PJC
    * @webmethod
    public void log(String msg)
    System.out.println(CLASSNAME + ": " + msg);

    Hi Marc
    First of all: Yes it is possible. It depends on how this ticket is created.
    If a ticket is created via a bridge there is a built in automatism. Each ticket has 3 sets of fields where address data can be stored:
     - Caller
     - Contactperson
     - CallerHelpDesk
    If you you do not provide a LastName and if you provide a ShortName and/or a PIN the system tries to find a user with this data and fills the address fields with the data of this user.
    If more than one user can be found the system uses the first it could find. So be careful when creating and maintaining users.
    If you create a ticket via an online interface (SD2 or Portal) you can configure a DetailButton in the mentioned Calldetail for address fields where you directly can search in the user table.

  • PJC CURSORPOS NOT WORKING CORRECTLY

    Hello
    I require cursor positioning control within a block item offered by the Forms
    Demo Cursorpos PJC. After a similar problem successfully resolved in a previous
    release Forms 9i, I followed the same steps for Forms10g. Using my
    local OC4J environment this did not appear to work correctly. The cursor
    appears at the start of the item instead of the end which had been specified.
    Please could you advise as I need to repeat the same solution on the 10gr2AS.
    These are the steps I followed
    Steps
    1. Download forms10gdemos9_0_4_2.zip
    2. Zip forms10gdemos9_0_4_2.zip into a staging area, e.g. c:\oracledemostage
    3. Copy directory c:\oracledemostage\demos\cursorpos to <oracle_home>\forms\demos\cursorpos
    4. Copy C:\oracledemostage\demos\cursorpos\classes\cursorpos.jar to <oracle_home>\forms\java
    5. In <oracle_home>\forms\server\formsweb.cfg
    Append ',cursorpos.jar' e.g. to line
    archive_jini=frmall_jinit.jar,cursorpos.jar
    6. Register the PJC e.g. in item property Implemenation class =
    oracle.forms.demos.enhancedItems2.CursorPosTextField
    7. USe code
    DECLARE
    FIELD_END CONSTANT NUMBER := -4;
    L_trigger_record NUMBER:=TO_NUMBER(:system.trigger_record);
    BEGIN
    set_custom_property('node_top_card.d_serial_number', L_trigger_record,
    'CARET_POSITION', FIELD_END);
    END;
    I've also noticed a bug when used in Forms9i. In a multi-row block, when
    performing NEXTREC after the next record set is reached I get error FRM-40741
    unable to locate record <no> on block <block name>
    Regards
    Ade

    Frank
    This code is from the Oracle demo, the constant values are correct and as mentioned before, managed to get this working in Forms9i. My issue is to do with the configurations steps using Forms10g. Any advise here will be appreciated.
    Regards
    Ade

  • Problem KeyEvent Java Bean  (Francois Degrelle)

    Hello !
    I have a problem with the KeyEvent Java Bean (keykressed.zip)
    from the Forms - PJC and JavaBean store !
    1.
    I call a forms-dialog and use the KeyEvent Java Bean.
    (Set_Custom_Property('BL.BEAN',1,'INIT','')
    2.
    I call a second forms-dialog and use the KeyEvent Java Bean too.
    Set_Custom_Property('BL.BEAN',1,'INIT','')
    3.
    Now i go back to the first forms-dialog and this dialog hangs...
    (No input over keyboard possible !)
    Maybe you can help me ?
    Many thanks in advance !
    Thomas

    Hello,
    Re-load the JAR file from the article.
    I still get an error in the Java console after closing the second dialog, but the key is correctly sent to the first form, so it seems to be OK.
    Francois

Maybe you are looking for

  • Email no longer working for my WordPress site

    Not sure when this happened, but my wordpress site will no longer send emails.  The only time I get an error back of any help is when i try the password recovery utility.  It displays The e-mail could not be sent. Possible reason: your host may have

  • HOw To Identify The JAR File Name

    Hi, In an already developed java code how can we identify which jar file has been used? Does it depend on what packages are included? In a java code which I have the following packages are included, so please tell me what will be the name of the corr

  • Error in File Adapter Monitoring

    Hi, I have created a Sender Communication Channel to pick the file: The following error message is being displayed in Adapter Monitoring: Sender Adapter v2622 for Party '', Service 'BS_TRD_PILOT_YOGS': Configured at 2006-12-19 05:52:17 UTC History: -

  • Cube to Cube "Error in data Selection" plz help

    Hi this is Ajay Reddy when am sending data from Cube to Cube am getting an error "Error in data Selection" plz help

  • Third Party billing, stock in our possesion

    Hello Guru's, We will implement third party billing, but in our case the stock will be stored by us, not a third party company. Also we will be purchasing the product and will be billed accordingly but... we will be billing on their behalf. Don't ask