How to check the value entered in one co from anethor CO

Dear All,
I have a Debrief screen in which one main region is attached to CO1 and a tab region is attached to CO2, the tab region  is an independent region in the main rdebrief main RN,
Here i have a requirement if one of the field of the tab region is entered , that has to be captured in the Debrief main Region CO.
could you help in assisting this.
Regards
AK

AK,
You can get handle of any item in the page from the mainCO by getting handle of the bean. You will have to get the handle of the tabbed region and get the handle of the corresponding field.
Alternatively, you can get the value from the VO Attribute, if the field is mapped to a VO attribute.
Cheers
AJ

Similar Messages

  • How to check the value in Table CDPOS

    Mostly I can't see the following fields value in the table CDPOS,
      (1) CDPOS-VALUE_NEW
      (2) CDPOS-VALUE_OLD
    In fact, it should have values, so how to check the values, is there any special method needed?
    Thanks and best regards.

    Ferry Lianto,
    Thank you very much for your expertise.
    It's helpful to get some contents via FM:CHANGEDOCUMENT_READ_POSITIONS, the problem is, to some kind of DELETION operation, the log in table CDPOS is very simple, I still don't know which contents were deleted even though I found records in table CDPOS.
    Is there any other suggestions?
    Thanks and best regards.

  • How to judge the mouse enter which one of buttons?

    There two buttons(no text,only icon on them),
    and how to judge the mouse enter which one of
    them and show the different message at one textfield?

    Try this. I don't know if the code works, but the true solution will be like it.
    void mouseClicked(MouseEvent e)
        int mask = e.getModifiers();
        if((mask & InputEvent.BUTTON1_MASK) != 0)
            System.out.println("You touched to the button 1!");
        else if((mask & InputEvent.BUTTON2_MASK) != 0)
            System.out.println("You touched to the button 2!");
        else if((mask & InputEvent.BUTTON3_MASK) != 0)
            System.out.println("You touched to the button 3.");
    }Ghys

  • How to refer the trigger written in one form from another form ?

    How to refer the trigger written in one form from another form ?
    Thanks,
    Ravi Shankar

    Try to convert the PL/SQL code from Forms trigger into a PL/SQL library(.PLL),
    and then attach that PLL in your forms.
    Note that all Forms objects should be referenced indirectly, for example,
    you have to rewrite
    :B1.DEPT_CODE := :B2.DEPT_CODE;
    :B3.TOTAL_AMOUNT := 100;
    ==>
    copy('B2.DEPT_NO','B1.DEPT_NO');
    copy('100','B3.TOTAL_AMOUNT');
    This is the best way to share PL/SQL code among Oracle Forms.

  • How to check the value from user input in database or not?

    Hello;
    I want to check the value of user input from JtextFiled in my database or not.
    If it is in database, then i will pop up a window to tell us, otherwise, it will tell us it is not in database.
    My problem is my code do not work properly, sometimes, it tell me correct information, sometime it tell wrong information.
    Could anyone help,please.Thanks
    The following code is for check whether the value in database or not, and pop up a window to tell us.
    while( rs.next()) {
                    System.out.println("i am testing");
                    bInt=new Integer(rs.getInt("id"));
                    if(aInt.equals(bInt)){ // If i find the value in data base, set flag to 1.
                  flag=1;  //I set a flag to check whether the id in database or not
                        break;
             System.out.println("falg" + flag);
                if(flag==1){ //?????????????????????
              String remove1 = "DELETE FROM Rental WHERE CustomerID=" + a;
              String remove2 = "DELETE FROM Revenus WHERE CustomerID=" +a;
              String remove3 = "DELETE FROM Customer WHERE id=" +a;
              s.executeUpdate(remove1);
              s.executeUpdate(remove2);
              s.executeUpdate(remove3);
                    JOptionPane.showMessageDialog(null,"you have success delete the value");
              s.close();
             else//???????????????????????????????
                  JOptionPane.showMessageDialog(null,"I could not found the value"); -------------------------------------------------------------------
    My whole program
    import java.sql.*;
    import java.awt.BorderLayout;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.JOptionPane;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.*;
    public class DeleteC extends JFrame
        public static int index=0;   
        public static ResultSet rs;
        public static Statement s;
        public static Connection c;
        public static  Object cols[][];
        private static JTable table;
        private static JScrollPane scroller;
        private static int flag=0;
        public DeleteC()
            //information of our connection
            //the url of the database: protocol:subprotocol:subname:computer_name:port:database_name
            String strUrl      = "jdbc:oracle:thin:@augur.scms.waikato.ac.nz:1521:teaching";
            //user name and password
            String strUser      = "xbl1";
            String strPass      = "19681978";
            //try to load the driver
            try {
                Class.forName("oracle.jdbc.driver.OracleDriver");
            catch (ClassNotFoundException e) {
                System.out.println( "Cannot load the Oracle driver. Include it in your classpath.");
                System.exit( -1);
            //a null reference to a Connection object
            c = null;
            try {
                //open a connection to the database
                c = DriverManager.getConnection( strUrl, strUser, strPass);
            catch (SQLException e) {
                System.out.println("Cannot connect to the database. Here is the error:");
                e.printStackTrace();
                System.exit( -1);
           //create a statement object to execute sql statements
        public void getData(String a){
            try {
             //create a statement object to execute sql statements
             s = c.createStatement();
                int index=0;
                Integer aInt= Integer.valueOf(a);
                Integer bInt;
                  //our example query
                String strQuery = "select id from customer";
                //execute the query
                ResultSet rs = s.executeQuery( strQuery);
                //while there are rows in the result set
                while( rs.next()) {
                    System.out.println("i am testing");
                    bInt=new Integer(rs.getInt("id"));
                    if(aInt.equals(bInt)){
                  //JOptionPane.showMessageDialog(null,"I found the value"); 
                  flag=1;
                        break;
             System.out.println("falg" + flag);
                if(flag==1){
              String remove1 = "DELETE FROM Rental WHERE CustomerID=" + a;
              String remove2 = "DELETE FROM Revenus WHERE CustomerID=" +a;
              String remove3 = "DELETE FROM Customer WHERE id=" +a;
              s.executeUpdate(remove1);
              s.executeUpdate(remove2);
              s.executeUpdate(remove3);
                    JOptionPane.showMessageDialog(null,"you have success delete the value");
              s.close();
             else
                  JOptionPane.showMessageDialog(null,"I could not found the value");
            catch (SQLException e) {
                 JOptionPane.showMessageDialog(null,"You may enter wrong id");
    My main program for user input from JTextField.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.JOptionPane;
    import java.util.*;
    public class EnterID extends JFrame{
        public JTextField tF1;
        public EnterID enID;
        public String tF1Value;
        private JLabel label1, label2, label3;
        private static JButton button;
        private static ButtonHandler handler;
        private static String aString;
        private static Integer aInteger;
        private static Integer checkV=0;
        public static void main(String args[]){
           EnterID eId= new EnterID();
       public EnterID(){
          handler=new ButtonHandler();
          Container c= getContentPane();
          c.setLayout(new GridLayout(3,1));
          button= new JButton("ok");
          button.addActionListener(handler);
          label1 = new JLabel(" CustomerID, Please");
          label2 = new JLabel("Label2");
          label3 = new JLabel();
          label3.setLayout(new GridLayout(1,1));
          label3.add(button);
          label2.setLayout(new GridLayout(1,1));
          aString = "Enter Id Here";
          tF1 = new JTextField(aString);
          label2.add(tF1);
          c.add(label1);
          c.add(label2);         
          c.add(label3);            
          setSize(150,100);
          setVisible(true);     
       private class ButtonHandler implements ActionListener{
         public void actionPerformed(ActionEvent event){
             tF1Value=tF1.getText();
            //   CheckData cData = new CheckData();
             //  aInteger = Integer.valueOf(tF1Value);      
             if(tF1Value.equals(aString)){
              JOptionPane.showMessageDialog(null,"You didn't type value into box");
              setVisible(false); 
            else {
                DeleteC dC= new DeleteC();
                dC.getData(tF1Value);
                setVisible(false); 
    }

    You may have working code now, but the code you posted is horrible and I'm going to tell you a much much much better approach for the JDBC part. (You should probably isolate your database code from your user interface code as well, but I'm skipping over that structural problem...)
    Do this instead:
        public void getData(String a){
            PreparedStatement p;
            String strQuery = "select count(*) the_count from customer where id = ?";
            try {   
             //create a prepared statement object to execute sql statements, it's better, faster, safer
             p = c.prepareStatement(strQuery);
                // bind the parameter value to the "?"
                p.setInt(1, Integer.parseInt(a) );
                //execute the query
                ResultSet rs = p.executeQuery( );
                // if the query doesn't throw an exception, it will have exactly one row
                rs.next();
                System.out.println("i am testing");
                if (rs.getInt("the_count") > 0 ) {
                // it's there, do what you need to...
             else
                  JOptionPane.showMessageDialog(null,"I could not find the value");
            catch (SQLException e) {
                 // JOptionPane.showMessageDialog(null,"You may enter wrong id");
                 // if you get an exception, something is really wrong, and it's NOT user error
            // always, always, ALWAYS close JDBC resources in a finally block
            finally
                p.close();
        }First, this is simpler and easier to read.
    Second, this retrieves just the needed information, whether or not the id is in the database. Your way will get much much slower as more data goes into the database. My way, if there is an index on the id column, more data doesn;t slow it down very much.
    I've also left some important points in comments.
    No guarantees that there isn't a dumb typo in there; I didn't actually compile it, much less test it. It's at least close though...

  • How to get the values entered in parameter as comma separated

    Hi friends,
    I need to capture the values entered in the parameter which is entered as comma separated in the srs window o
    for ex in the parameter : 1234,4586,356,.....
    now i need to capture all the values to select in my list of
    employee numbers as
    employee number in(1234,4586,356...)
    how to do this
    pls help

    Please refer to SQL and PL/SQL FAQ
    Sybrand Bakker
    Senior Oracle DBA

  • How to get the value entered in input enabled field of a list output?

    Hi all,
    I am developing a program to display  list with two input enabled fields . After users enetered the values into these fields I need to do some calculations based on these values and modify the value of another field in the list.
    But i couldn't have an idea how to read the values after users enter into these fields.
    Please help me on solving this problem?  If possible please provide the sample code.
    Thanks,
    Aravind.

    You can enable disable screen fields in at selection screen output event.
    And by using loop at screen.
    And for changing the values you can do in initialization event.
    I Hope you are doing these in Reports.

  • How to check the value of "The Interrupt Status Flag"?

    Hi, thank you for reading this post!
    Invoking Thread.interrupt() sets the value of the Interrupt Status Flag.
    Just wondering if there is a Java method to check the value of this flag? Or is using isInterrupted() or interrupted() the only way to check?
    http://download.oracle.com/javase/tutorial/essential/concurrency/interrupt.html
    Thank you in advance for your help!
    Eric

    Below is the full code. As soon as the Thread.sleep() is taken out in main(), the interrupt is detected in the child thread. But if the sleep() stays, then the child thread goes into an infinite loop. It's not detected the interrupt.
    //ParentInterruptChildThreadCatchedDemo.java
    //Program function: This program demonstrates the parent thread (main()) interrupting a child thread (thread1).
    //Threaded class
    class TryThread extends Thread {
         //fields
         private String threadname;
         private long aWhile;
         //Constructor
         public TryThread(String tname, long delay) {
              threadname = tname;
              aWhile = delay;
         //run() method
         public void run() {
              while(!Thread.interrupted()) {
                   //Do work
              try {
                   System.out.println(Thread.currentThread().getName() + " was just interrupted!");
                   throw new InterruptedException();
              } catch(InterruptedException e) {
                   //System.exit(1);
                   return;
    public class ParentInterruptChildThreadCatchedDemo {
         public static void main(String[] args) {
              Thread thread1 = new TryThread("thread1", 2000L);
              thread1.start();
              try {
                   System.out.println("main() goes to sleep for 10 second.");
                   Thread.sleep(10000);
                   System.out.println("Statement after main() sleep().");
              } catch(InterruptedException e) {
                    e.printStackTrace();
                 //Interrupt thread1
                  int interruptFlag = 5;
                  for(int i=0; i<11; i++) {
                       if(i == interruptFlag) {
                            System.out.println("Condition met, going to interrupt thread1 ...");
                            thread1.interrupt();
                            System.out.println("Thread1 interrupted!");
                  System.out.println("Ending main()");
    /*Output:
    main() goes to sleep for 10 second.
    Statement after main() sleep().
    Condition met, going to interrupt thread1 ...
    Thread1 interrupted!
    Ending main()
    INFINITION LOOP
    */

  • How to have the values fit in one page - smartforms

    hi,
    I am working on smartforms. I am facing a problem, that is for one purchase order there are many line items, the line lines should not split across pages.
    For eg:
    for the item 4, half of the description is in the first page then its continuation goes to the second page.
    That is not the way i want.  suppose if the wholes values does not fit in one page it has to move to the second page , but if the value is able to fit in the first page then it can be displayed in first page otherwise it has to move to second page.

    Joseph,
    This is exact place where PAGE PROTECTION can be used.
    In the attributes of the tables, there will a tab OUTPUT OPTIONS. There will a check box for PAGE PROTECTION. Check that and it will take care of the row split across pages.
    Regards,
    Ravi
    Note : Please mark the helpful answers

  • How to check the status of other process chain from one process chain

    Hi All
    I have a requirement where I need to send an Email after successful completion of 3 process chains.
    all these 3 chains starts at same time.Out of these 3, one chain daily takes more time to complete.
    Is there any way so that in 3rd chain( the one that takes more time to complete) i can check whether the other two chains have completed successfully or not.So that when this chain gets complete I can send the success notification for all the three chains.
    If possible please tell me the step by step procedure for doing this.
    I have no question on sending Email through process chain.
    Regards
    Ashish

    Hi
    The OS Command is used for the following:
    You use this process type to stop a system command in the operating system of an application server.
    In the process maintenance for the operating system command, define:
    The logical name of the operating system command you want to stop.
    A command defined in transaction SM49 is used here. You can also change the command using the Change pushbutton.
    The operating system of the application server on which you want to execute the command.
    Additional parameters, as long as the defined command permits them.
    The application server on which the command is to be executed. If you always want to use the current host, set the corresponding indicator. If you want to use a host other than the current one, enter this in the Target Host field; the system automatically deselects the Current Host.
    After the run, you can find the standard text output by the command on the Process tab page of the log for this process.
    For processes you may have implemented yourself, you can access this log using the CL_RSPC_SYSTEMCOMMAND=>IF_RSPC_GET_LOG~GET_LOG method.
    I have never used the OS command myself, so I am not sure, whether it can be used in your case.
    Check the following link, it might help,
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/fa/096d5a543b11d1898e0000e8322d00/frameset.htm
    Regards
    Shilpa

  • How to check the value of a string is numeric, alphanumeric or characters?

    Hi All,
    I have a task to validate an employee Id. Suppose the employee Id is E121212. Now as per the validation rule I need to check "the first letter of the employee Id is a character and rest are numbers." How can I do this? Please reply.
    Thanks & Regards
    Bibhuprasad Soumyaranjan

    >
    Hi Bibhuprasad,
    I have a task to validate an employee Id. Suppose the employee Id is
    E121212. Now as per the validation rule I need to check "the first letter
    of the employee Id is a character and rest are numbers." How can I do this? Please reply.Everyone else has proposed REGEXP_LIKE, and while it's very powerful, it is
    also very CPU intensive. You should always use Oracle's string functions
    instead of Regular Expressions if possible.
    I played around with
    WITH data
         AS (SELECT 'E11212' s FROM DUAL
             UNION ALL
             SELECT '121212' FROM DUAL
             UNION ALL
             SELECT 'EE121212' FROM DUAL
             UNION ALL
             SELECT 'É121212' FROM DUAL
             UNION ALL
             SELECT 'E1EEEEEEEE' FROM DUAL
             UNION ALL
             SELECT 'E134343444' FROM DUAL)
    SELECT s,
      CASE
        WHEN (SUBSTR(s, 1, 1) BETWEEN 'A' AND 'Z') -- AND (TO_NUMBER(SUBSTR(s, 2, LENGTH(s)), 999999) > 111111)
          THEN 'Correct Format'
        ELSE
          'Incorrect Format'
        END mySSN,
        SUBSTR(s, 2, LENGTH(s)) AS theNumber
    FROM data;I think that this can be worked so that it willl go what you require without using
    REGEXP_LIKE.
    HTH,
    Paul...
    Bibhuprasad Soumyaranjan

  • Condition that checks the value of an Item derived from a select list

    I want to conditionally display and hide items in a region based on a select list item.
    Some items will display when the select list is at the default (%null%) and others will be displayed when the select list user selects from the select list.
    The display is then updated when the "SAVE" button is pressed and the page processed.
    How do I test the select list item to be null. The condition looks like this;
    Type: PL/SQL Expression
    :P1_SELECT is null
    I also tried, :P1_SELECT is not null and :P1_SELECT = '%nul%'.
    The latter changed the condition to :P1_SELECT = ''
    How can I test the valu in P1_SELECT?
    tia,
    Sam
    Message was edited by:
    After a long day I saw that I did not write the condition correctly. Mea culpa.
    slavanaway

    I had the problem wrong.
    The issue was a second field that could have a Y or N or null. When I checked it in PL/SQL expression as
    :P_YN != 'Y' and :P_SELECT is null
    assuming the null condition would resolve as != 'Y' I had to do an explicit check as
    (:P_YN != 'Y' or :P_YN is null) and :P_SELECT is null
    That fixed it.... I like null and I hate null
    Thanks for the reply

  • How to transfer the progress of just one game from one iPad to another iPad

    Hi everyone!  When I purchased an iPad Air, I gave my old iPad 3 to a family member who kept one of my games and its progress, but changed every other App to suit his requirements.  My iPad Air has all MY Apps, which are different to the ones on the iPad 3.  Both iPads use my Apple account.
    I want to somehow transfer the progress of just the one game from the iPad 3 to the iPad Air and I don't want to back up my iPad Air to be the same as his iPad 3, which I know will transfer the progress of the game, but it will also mean I will  get a load of Apps I don't want and more importantly, lose all my Apps and the progress in all my games.
    i.e. can I transfer one game and its progress from one iPad to another without altering/deleting/removing existing Apps on either iPad. 
    Phew ... hope the above makes some sort of sense to someone!!!
    Thank you

    How to Transfer Everything from an Old iPad to New iPad
    http://osxdaily.com/2012/03/16/transfer-old-ipad-to-new-ipad/
    iOS: Transferring information from your current iPhone, iPad, or iPod touch to a new device
    http://support.apple.com/kb/HT2109
    Moving Content to a New iPad
    http://tinyurl.com/qzk2a26
    How to Transfer App Data and Game Saves from One iOS Device to Another
    http://lifehacker.com/5891964/can-i-transfer-app-data-and-game-saves-from-my-iph one-to-a-new-ipad
    How to transfer data from your old iPad to your new iPad
    http://www.imore.com/how-transfer-data-your-old-ipad-your-new-ipad-air-or-retina -ipad-mini
    Transferring your prepaid cellular data account depends on your carrier. AT&T lets you move it yourself when you go to Cellular Data in Settings and log into your account with your previous AT&T user name and password. For iPads with Sprint service, you can set up an account on the new iPad and contact Sprint Customer Care (888-211-4727 and go through the menus) to deactivate the old plan and get credit for unused service. For Verizon, call the company’s customer service number for mobile broadband support (800-786-8419) and ask to have your account transferred.
     Cheers, Tom

  • How to read the value of OLAPDataGrid cell/s from external object

    Hi,
    I have an OLAPDataGrid control in an Adobe flex application,
    and I am using the cutom renderer to render the cells of the
    OLAPDataGrid ,
    any Idea how I can read the value of each cell at the
    renderer , so I will be able to decide about the actions for each
    cell at the renderer?

    "j_shawqi" <[email protected]> wrote in
    message
    news:gkqgdl$539$[email protected]..
    > Hi,
    > I have an OLAPDataGrid control in an Adobe flex
    application,
    > and I am using the cutom renderer to render the cells of
    the OLAPDataGrid
    > ,
    > any Idea how I can read the value of each cell at the
    renderer , so I will
    > be
    > able to decide about the actions for each cell at the
    renderer?
    I'm thinking that you'll need to look at the listData
    property. I'm not
    sure what you get in an OLAP Grid that orients you to your
    cell position,
    but I'd set a break point in the listData override of your
    renderer and see
    what you actually have, or look at the docs for the data type
    of the
    listData object that the default renderer expects to get.
    HTH;
    Amy

  • How to check the values of view object?

    Hi all,
    I created a new view object by right clicking my application module. Now when I try to retrieve values
    of the attributes of the view object I am getting null pointer exception. How do I check whether the view has
    some values in it or not manually using select statement ? I try to find the view in my database at database navigator
    but it was not there. Kindly help me out in this.
    Thanks,
    Phanindra.
    Edited by: 887737 on Oct 19, 2011 12:53 AM

    Hi,
    Right click on application module(yourAM in model project) and press Run,Then you can confirm whether your ViewObject is working or not.
    Note:
    Generally create viewObject using EO based or Query based how did you create viewObject
    See:
    http://download.oracle.com/otn_hosted_doc/jdeveloper/1012/bc4j/intro/bc_avo.html
    http://www.adftips.com/2010/09/adf-model-creating-view-object-vo.html

Maybe you are looking for

  • How do you erase email from "trash" folder???

    Is there some way to erase email from the "trash" folder beside having to delete each one singularly.  That means to get rid of email you have do each one TWICE.  On my I touch there is a button to erase all at once.  Not on PALM that I can find. Pos

  • PayloadZipBean in SFTP sender adapter

    The senario is : the sender channel uses the ZIP module. The sender and receiver adapters are SFTP and there is no Message mapping. The sender channel zips the text file. However the Sender cahnnel is green is Communication cannel monitoring but fail

  • How do i start photoshop CS6?

    how do i start CS6? download was sucessful, i have a macbook OS 10.6.8

  • Get default audit field behavior with an external datasource

    Others have posted and blogged extensively about creating a robust audit trail for LightSwitch. However, if you are looking to achieve the default behavior with an external datasource, you could simply add the fields to your database and write code i

  • Same Episodes in Different List

    Hi all i have 10 episodes of a TV program, and they are all metadata'd in exactly the same way by me, yet 9 sit together nciely in a season, and the 10th sits in its own 'list' if i can call it that. Nothing i do to it can make it list with the other