{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.

Similar Messages

  • 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.

  • 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);
    }

  • 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.

  • Regarding Forms Look & Fell 1.3.8 (Hyperlink in sigle line text item PJC)

    I am using single line text item PJC in my form. I have a tabular block in which one text item implementation calss property is set to "oracle.forms.fd.LAF_XP_TextField".
    Following code is written on when-timer-expire code
    If lower(Get_Application_Property( TIMER_NAME )) = 'laf_timer' Then
    Set_Custom_Property( 'CTRL.BEAN', 1, 'SEARCH_TEXT_ITEMS','') ;
    Set_Custom_Property( 'FIN_ORD.ORD', 1, 'ENABLE_EVENTS', 'fin_ord.ord,true' ) ;
    Set_Custom_Property( 'FIN_ORD.ORD' , 1, 'SET_HYPER_LINK', 'ORD');
    End If;
    When form run & after data execution only first record textbox show the hyperlink but no other textbox shows hyperlink except then first record.
    Please guide.

    Hello,
    Please, ask questions concerning the LAF on the dedicated email : [email protected]
    In you case, it is a generic issue using the Set_Custom_Property() built-in. If you want to set the property on every record, use the ALL_ROWS keyword in place of second argument.
    Regards,
    Francois
    Edited by: Francois Degrelle on Jun 29, 2009 3:02 PM

  • InfoButton PJC   Demos for Forms (tooltip buttons) - not working

    Hello everybody,
    I am new to using PJC and JavaBeans in forms. I have on my laptop Oracle Developer Suite 10g (10.1.2.0.1) and Forms Demos version 9.0.4.2.0 I downloaded from OTN. I studied InfoButton PJC application (buttons that show tool-tips at mouse-over).
    Now, I want to create in one of my old forms such a button. I followed exactly the steps of the demo, that is:
    1. I created a form with a button TEST_BUTTON for which I set the Implementation Class property to oracle.forms.demos.enhancedItems.InfoButton.
    2. On the form's canvas I also created a text item named INFO with the following properties:
    X Position = 255
    Y Position = 107
    Width = 100
    Height = 100
    3. At form level, I created the trigger WHEN-NEW-FORM-INSTANCE in order to set the button's properties as follows:
    SET_CUSTOM_PROPERTY('CONTROL.TEST_BUTTON',1,'INFOBUTTON_TEXT','This is the tooltip text');
    SET_CUSTOM_PROPERTY('CONTROL.TEST_BUTTON',1,'INFOBUTTON_FIELDPOS','288,128');
    4. I created in my formsweb.cfg file a configuration section for my form.
    [pjc_demos_dana]
    pageTitle=OracleAS Forms Services - InfoButton Demo Dana
    IE=jinitiator
    baseHTMLJInitiator=demobasejini.html
    archive_jini=frmall_jinit.jar,/forms/formsdemo/jars/infobutton.jar
    form=pjclaunch_dana.fmx
    width=675
    height=480
    separateFrame=false
    splashScreen=no
    lookAndFeel=oracle
    colorScheme=blue
    background=/formsdemo/images/blue.gif
    When executing the form, the button has round margins as said in the documentation; at mouse over the cursor takes the form of a small hand but there is no tool tip. I receive no errors, only that it doesn't show the tool tip.
    I don't understand why it's not working, what I did wrong ...
    When setting the 'INFOBUTTON_FIELDPOS' property - input parameter X,Y - the documentation says: "This property should be set to a string containing a X,Y comma separated pair providing the location of the target field in pixels relative to the top left hand corner of the window. The X,Y pair simply has to define a point anywhere within the target field, it doesn't have to exactly define the corner".
    What is the target field? The text item I created at step 2)? The documentation is not clear here ...
    Any help will be appreciated.
    Daniela

    Dear Safwan Bhai,
    As salaamo alaikum Rahamatulla hi burakathu!!
    Actually I'm having a multi record block in which all the emp no., days of attendance, etc will be displayed when I click on the search button. My requirement is when point the mouse over the emp no, the emp name must be displayed as a Tool tip text. My fields are non-editable, so Post-Change is not working. I placed the coding in the When-new-item-instance - in this case the emp name is displayed, but only for the first field, when I move the mouse to second and third fields, the empname of that particulart field is displayed as a tool tip but in the first field only.
    Any other suggestions?
    Anyway I would appreciate your help.
    Thank you.
    With Kind Regards,
    Perumal Senthil Alagu.

  • PJC Calendar setDate Wrong date format. Date change failed?

    Forms 10.1.2 using forms demos pjc code.
    The calendar pjc I added to my form works except I can't initialize it with a date. If I try to initialize a date it always produces 'Wrong date format. Date change failed.' error.
    In a post-query trigger, I initialize the calendar's date using:
    SET_CUSTOM_PROPERTY('PJC.CALENDAR',1,'setDate',to_char(:lead.date_received,'DD.MM.YYYY'));
    In the java console, this yields:
    Warning: Wrong date format. Date change failed.
    Warning: Wrong date format. Date change failed.
    I get the same result when using a hardcoded date like:
    SET_CUSTOM_PROPERTY('PJC.CALENDAR',1,'setDate','01.12.2006');
    What is the flaw in my incantation?

    Hello,
    This is the syntax used in the calendarpjc Forms demo:
        call the setDate method on the calendar PJC via the PL/SQL built in
        set_custom_item_property
        convert Oracle date to String recognised by Java
      procedure setDate(d in date) is
      begin
        set_custom_property(lGlobals.hCalendar,1,'setDate',to_char(d,'Mon DD, YYYY'));
      end;     Francois

  • 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

  • PJC for FORMS 6i using a ScrollPane

    Hi,
    I'm making my first step with pjc for forms 6i application.
    I would like to create a graphical component using a scrollpane where i draw single primitive like line, circle, rect into scrollpane double-buffered.
    Where can i found a piece of code of a pjc using scollpane ?
    Thanks

    This is what I did:
    - Downloaded the timeout.jar from the OTN Forms sample code page
    - Copied the timeout.jar to my /forms/java folder
    - Updated the formsweb.cfg file (added timeout.jat toe the archive and archive_jini tags)
    - Opened the timeout.fmb sample (from the Demos)
    - Added set_custom_property('PJC.TIMEOUT',1,'ENABLE_DEBUGGING','true'); at the end of the When-New-Form-Instnace trigger
    - Run the sample dialog
    - Clicked the start timer button
    obtained the following in the Java console:
    DEBUG MESSAGE TimeoutPJC0: Starting timer ... with1 minute(s) max. inactivity
    DEBUG MESSAGE TimeoutPJC0: Start time = 24-oct.-2008, 07:27:55 AM
    DEBUG MESSAGE TimeoutPJC0: Current time = 24-oct.-2008, 07:27:55 AM
    DEBUG MESSAGE TimeoutPJC0: Last user action = 24-oct.-2008, 07:27:55 AM
    DEBUG MESSAGE TimeoutPJC0: Last user action time = 24-oct.-2008, 07:27:55 AM
    DEBUG MESSAGE TimeoutPJC0: Max allowed inactivity in Seconds = 60
    DEBUG MESSAGE TimeoutPJC0: Timer not expired ...
    Francois

  • Rollover PJC - Unable to reference String within mouseadapter

    Hi
    I am writing a PJC to colour the background of a text item on mouse rollover. The PJC extends VTextField and includes a nested mouseadapter class.
    I would like a property, settable from the form, to determine whether the mouse rollover is enabled. The default behaviour should be rollover enabled.
    To implement the behaviour of the property I have included a check on a string variable in the mouse adapter methods. If I don't set the property from the form the string is set to false. If I set the property using set_custom_property the string is set to the correct value.
    How can I set the string to default to a value? It is declared as
    String pEnabled = "YES";
    I will post the full code

    package pjcs.rolloverBackground;
    //package totem.forms.extensions;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.StringTokenizer;
    import oracle.forms.handler.IHandler;
    import oracle.forms.properties.ID;
    import oracle.forms.ui.VTextField;
    public class rolloverBackground extends VTextField
         public static final ID propEnabled = ID.registerProperty("ENABLED");
    public static final ID activeColor = ID.registerProperty("ACTIVE_COLOUR");
    //private rolloverBackground this_item;
    String pEnabled = "YES";
    private Color pActiveColor;
    private Color pNormalColor;
    private boolean m_debug = true;
    private boolean m_debugAll;
    private final String CLASSNAME = this.getClass().getName();
    private int iMode = 0 ;
    private int iInc = 20 ;
         public rolloverBackground()
    try
    jbInit();
         catch(Exception e)
         e.printStackTrace();
         private void jbInit() throws Exception
         System.out.println("jb init 3 "+pEnabled);
         addMouseListener(new RolloverButtonMouseAdapter());
         * Private class to handle user mouse actions and to switch images when the
         * user moves the mouse into and out of the button object.
         class RolloverButtonMouseAdapter extends MouseAdapter
         * User moved the mouse over the button, swap to the on image.
         public void mouseEntered(MouseEvent me)
         //System.out.println("mouse entered "+this_item.getProperty(propEnabled).toString());
         System.out.println("mouse entered "+pEnabled);
    if (pEnabled.equals("YES"))
         System.out.println("mouse entered 1" );
         pNormalColor = getBackground();
         if (iMode == 1)
         System.out.println("mouse entered 2.1 imode is 1 " );
         setBackground(pActiveColor);
         else if (iMode == 0)
         System.out.println("mouse entered 2.2 imode is 0 " );
         setBackground(getHighlight(getBackground()));
         * User moved the mouse out of the button, swap to the off image.
         public void mouseExited(MouseEvent me)
         // Change cursor back
         if (pEnabled.equals("YES"))
         setBackground(pNormalColor);
    * set the properties of the bean
    public boolean setProperty(ID property, Object value)
    if (property == propEnabled)
    pEnabled = value.toString();
    return true;
    else if (property == activeColor)
    String s= value.toString();
    int iR, iG, iB, ipos=-1 ;
    ipos = s.indexOf(",") ;
    if(ipos>-1)
    System.out.println("SETHIGHLIGHT color:"+value.toString());
    StringTokenizer st = new StringTokenizer(s,",");
    iR = Integer.parseInt(st.nextToken()) ;
    iG = Integer.parseInt(st.nextToken()) ;
    iB = Integer.parseInt(st.nextToken()) ;
    pActiveColor = new Color(iR,iG,iB) ;
    iMode = 1 ;
    else
    System.out.println("SETHIGHLIGHT:"+value.toString());
    if(s.indexOf("-")>-1) iInc = Integer.parseInt(s.substring(1)) * -1 ;
    else iInc = Integer.parseInt(s.substring(1)) ;
    iMode = 0 ;
    return true;
    else
    return super.setProperty(property, value);
    private Color getHighlight(Color c)
    System.out.println("inc="+iInc);
    int r,g,b ;
    int iMax = ( iInc < 0 ? 0 : 255 ) ;
    r = c.getRed() ;
    g = c.getGreen();
    b = c.getBlue() ;
    r = (r+iInc >= iMax ? r+iInc : iMax) ;
    g = (g+iInc >= iMax ? g+iInc : iMax) ;
    b = (b+iInc >= iMax ? b+iInc : iMax) ;
    return new Color(r,g,b);
    }

  • PJC for Forms Timeout

    Any body has used the Pluggable Java component for Forms Timeout feature.
    I have customised the form to include a Java bean and set it its implementation class.
    I have copied the jar file to the OAS java path and added an entry for the jar file to the formsweb.cfg file.
    Neither the pluggable java bean functions properly nor it throws an exception.
    I did the setup as per the readme document. Please let me know any other settings has to be done.
    ====
    Oracle Forms 9.0.4.2.0
    Oracle 9i Database 9.2.0.7.0
    Jinit - 1.3.1.18
    Plugable Java Component - 9.0.4.2
    ====
    Thanks in advance

    This is what I did:
    - Downloaded the timeout.jar from the OTN Forms sample code page
    - Copied the timeout.jar to my /forms/java folder
    - Updated the formsweb.cfg file (added timeout.jat toe the archive and archive_jini tags)
    - Opened the timeout.fmb sample (from the Demos)
    - Added set_custom_property('PJC.TIMEOUT',1,'ENABLE_DEBUGGING','true'); at the end of the When-New-Form-Instnace trigger
    - Run the sample dialog
    - Clicked the start timer button
    obtained the following in the Java console:
    DEBUG MESSAGE TimeoutPJC0: Starting timer ... with1 minute(s) max. inactivity
    DEBUG MESSAGE TimeoutPJC0: Start time = 24-oct.-2008, 07:27:55 AM
    DEBUG MESSAGE TimeoutPJC0: Current time = 24-oct.-2008, 07:27:55 AM
    DEBUG MESSAGE TimeoutPJC0: Last user action = 24-oct.-2008, 07:27:55 AM
    DEBUG MESSAGE TimeoutPJC0: Last user action time = 24-oct.-2008, 07:27:55 AM
    DEBUG MESSAGE TimeoutPJC0: Max allowed inactivity in Seconds = 60
    DEBUG MESSAGE TimeoutPJC0: Timer not expired ...
    Francois

  • Control PJC events

    Hi All
    I'm about testing a PJC for direct printing from Forms to a local printer that is presented by Casey Bowden :
    http://forms.pjc.bean.over-blog.com/article-6621538.html
    My main question is how can I handle this PJC related events from Forms using GET_PROPERTY and SET_PROPERTY and related triggers?
    If anybody has experience about this specific PJC or others cases please post it.
    Thanks in advance.
    Iman

    The answer is within the PJC code. Use "set_custom_property":
         *  LOAD_DIRECT_PRINT - This is a function that can be used in the WHEN-NEW-FORM-INSTANCE trigger
         *  and loads the classes when entering the form or other desired location. A value of true will
         *  load the classes needed.
         * < p>< b>Forms Example:< /b>< /p>
         * <code>set_custom_property('BeanArea',1,'LOAD_DIRECT_PRINT','true');</code>
        protected static final ID pLoadDirectPrint = ID.registerProperty("LOAD_DIRECT_PRINT");
    ...

  • SET_CUSTOM_PROPERTY calling JavaBean failing silently

    Hello,
    I have a custom Oracle Form 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.
    The PJC was being called successfully via the SET_CUSTOM_PROPERTY forms built in when this custom form was installed into Oracle eBusiness Suite 11.5.10 (running Forms 6i), however after the upgrade to EBS R12.1.3 (with Oracle Forms 10.1.2.0.2), the SET_CUSTOM_PROPERTY built in is not calling the setProperty method of the PJC at all. It fails silently, no error is displayed in either the Forms status bar, or in the Java JRE console.
    I have added extra debugging into the PJC class, and the debug is being output when the class is being loaded by the JRE, that is debug messages that I have added to the class constructor are being output to the Java console. The JAR file that contains the PJC has been signed correctly (signed and verified with jarsigner), and the custom JAR is being loaded successfully as Oracle Forms loads all the necessary JAR files to run eBusiness Suite forms (the load of the JAR is shown in the Java console).
    The property being used in the SET_CUSTOM_PROPERTY call is being initialized in the PJC class in the following way:
    private static final ID ORAWORD = oracle.forms.properties.ID.registerProperty("ORAWORD");
    The same property is being used in the SET_CUSTOM_PROPERTY call:
    Set_Custom_Property(vBeanHdl,1,'ORAWORD',vOutputString);
    The vBeanHdl variable references the Java Bean item, and contains a valid item identifier, I have checked that using the id_Null() function. A forms trace FRD shows that the SET_CUSTOM_PROPERTY built in is being called, it just simply does not fire the setProperty() method within the PJC.
    This is the content of the setProperty method that I have tried:
    public boolean setProperty(ID function, Object params)
    System.out.println("DEBUG: setProperty function called");
    return super.setProperty(function, params);
    At run time the function does not get called as the debugging text does not get output to the Java console. If I place any other code within the setProperty function it does not get executed.
    I have tried compiling the Java class under Java version 1.4 through to 1.6, and that has not helped (under all versions the Java class's constructor does get called).
    Can anybody offer me any hints? What has changed between Forms 6i and Forms 10.1.2.0.2 that could have led to this issue occurring?
    Thanks
    Daryl Budd

    Hi
    Stumbled upon the resolution myself. The Bean Area item needs to be set to Visible=Yes in the property palette for the bean within Forms Builder, and also the implementation class also in the bean's properties must match exactly the package & class name specified in the PJC (my full implementation class string had to be set to oracle.forms.demos.runApplication).
    As this bean has no user interface component, and since the Visible property has to be set to Yes, to avoid having a random square shape for the bean sitting on the form's canvas, I also set the Width and Height properties for the bean to 0.001. This does show a very small dot on the form, but that will be acceptable.
    So in summary there has been a change for PJC / Bean Areas between 6i and 10g Forms, in 6i you could have the Bean Item to be set Visible=No, and the SET_CUSTOM_ PROPERTY built-in would work, however in 10g Forms the Bean Item must be set to Visible=Yes for the SET_CUSTOM_PROPERTY built-in to work.
    Daryl

  • Dialog from a PJC

    I try to implement a PJC in a Froms90 (Application Server90) Bean-Area. Now i try to show a standart java input-Dialog. I don't know how to get the contentPane of the PJC (see the attached code).
    I hope you can help me.
    cu
    Martin
    here the code:
    package oracle.forms.demos.beans;
    import java.applet.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import java.text.*;
    import javax.swing.*;
    import oracle.ewt.lwAWT.*;
    import java.awt.geom.*;
    import java.awt.print.PrinterJob;
    import java.awt.print.*;
    //Class
    public class TickerApplet
    extends LWComponent
    implements Runnable,Printable
    //Constructor
    public TickerApplet()
    initMouseDrag();
    setLayout(new BorderLayout());
    final JButton bn1 = new JButton("Drucken");
    bn1.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e){     
    //String ret = (String) JOptionPane.showInputDialog( getContentPane(), "Gewünschte Erweiterung eingeben (1-14)");
    JOptionPane.showInternalConfirmDialog(null, "please choose one", "information",JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.INFORMATION_MESSAGE);
    add (BorderLayout.SOUTH,bn1);
    }

    Hi Martin
    It's not very clear to me what are you trying to achieve.
    From your code ,I see that you are trying to print something in another execution thread(because your implements Runnable).
    You don't need to show a java button in a bean area.
    you can simply use a class wich extends oracle.forms.ui.VBean.. The bean_Area should have the implementation class setted to your class.
    The comunication between the any push_buttton from Forms,and your Vbean can be done through set_custom_property,get_custom_property Forms built_ins.
    This way,you can use the push_button from Forms like ussual,and implement in java any custom action you need.
    Sandu

  • Scrollbar in FormsGraph PJC

    Hi,
    In which trigger should I put the following
    'set_custom_property('PJC.SIMPLEGRAPH',1,'SCROLLBAR','true');'
    so that a scrollbar appears in PJC...?
    I put it on WHEN-NEW-BLOCK-INSTANCE of the control which contains the PJC i use for the graph with no result...
    Thanks , in advance
    Simon

    Simon,
    for a reason I don't know the scrollbar never worked.
    Frank

Maybe you are looking for

  • Forms/Designer 10g - problem with attached libraries

    I've problem with forms with attached libraries. All of libraries have removed paths. I can run all forms without any problem on my local application server from Forms Builder 9i or Designer 9i. I added all paths in registry FORMS90_PATH. WORKINGDIRE

  • I lost my history when upgraded from 3.6 to 4.0. How do I recover?

    When I upgraded from Firefox 3.6 latest to Firefox 4 on March 22, my history disappeared. Looking at the places.sqlite file, it looks like it created a new one and renamed the older one .corrupt. The file wasn't corrupt in 3.6 - it worked fine! Even

  • Will i lose everything if i facotry reset?

    will i lose everything if i factory reset my iphone 4?

  • Problem wiht my ipod nano

    Good morning, my ipod nano sixth generation does not work for the power button, I got a year ago. What I can do?

  • How do you separate Apps from Content?

    I just bought a new MacPro and would like to have my FCS apps (FCP, Motion, Soundtrack, etc) on the boot drive and large Content files (loops, templates, themes) on a separate drive.  I have been told this is possible and I have read in other forums