Help needed in the code

Hi all,
I need help in acquiring this
I have a table control,in which i have 3 columns out of which 2 are input/outfields and one is output field.
say i have fld1 fld2 fld3
i entera value for fld1 and fld2 then it bring value in fld3.
but sometimes i.e certain values of fld1 the fld2 should be NA and the fld3 should open up for input.
say fld1 = def is exception
first i enter
fld1 = abc and fld2 =aaa then it brings fld3 =bbb
next i enter
fld1 = def and hit enter then fld2 = NA and fld3 should be available for input.
I have the following code written for this
CONTROLS: TABLECONTROL TYPE TABLEVIEW USING SCREEN 9002.
DATA  W_TABLECONTROL LIKE LINE OF TABLECONTROL-COLS.
ITAB IS MY TABLE CONTROL INTERNAL TABLE I.E MY TABLE CONTROL FIELDS ARE ITAB-FLD1,ITAB-FLD2,ITAB-FLD3.
loop at TABLECONTROL-cols into w_TABLECONTROL.
  IF w_cTABLECONTROL-screen-group4 = 'NAM'.
  loop at iTAB.
    IF ITAB-FLD1 EQ 'DEF'.
        w_TABLECONTROL-SCREEN-INPUT = '1'.
     else.
        w_TABLECONTROL-SCREEN-INPUT = '0'.
    ENDIF.
modify TABLECONTROL-cols from w_TABLECONTROL.
   ENDLOOP.
ENDIF.
ENDLOOP.
WHAT I SEE NOW WITH THIS CODE IS WHEN I ENTER THE FIRST RECORD IN
ITAB-FLD1 AS DEF AND HIT ENTER THE FLD2 IS NA AND FLD3 IS READY FOR OUTPUT
NOW THE SECOND ROW FLD3 IS AVAILABLE FOR INPUT WHICH I DON'T WANT BECAUSE MY FLD1 OF SECOND IS NOT YET KNOW AGAIN IFITS DEF THEN IT SHOULD BE AVAILABLE FOR INPUT OTHERWISE IT SHOULD GREY OUT.
HELP ME IN ACHEIVING THIS.
THANKS

Hi,
Have this code inside the LOOP AT ...ENDLOOP of the PBO..
PROCESS BEFORE OUTPUT.
LOOP AT ITAB INTO WA..
  <b>MODULE UPDATE_DATA..</b>
ENDLOOP.
MODULE UPDATE_DATA.
  LOOP AT SCREEN.
   IF WA-FIELD1 = 'DEF'.
Add the group for the field3 in the attributes..    
     IF SCREEN-GROUP1 = 'G1'.
Enable for input...
        SCREEN-INPUT = '1'.
        MODIFY SCREEN.
     ENDIF.
   ELSE.
     IF SCREEN-GROUP1 = 'G1'.
disable for input for other values.
        SCREEN-INPUT = '0'.
        MODIFY SCREEN.
     ENDIF.
   ENDIF.
  ENDLOOP.
ENDLOOP.
Thanks,
Naren

Similar Messages

  • I need help I scratched the code off my itunes card

    I need help I scratched the code off my itunes card

    Click here and ask the iTunes Store staff for assistance. Supply them with as much of the code as you can.
    (102006)

  • I have tried another exercise, but again I will need help, here's the code

    hi,
    I have another problem. here's the question pluss the code.
    public interface Patient{
    public void doVisit(float hour);
    public boolean hospitalize();
    1. I will need to write a class name OrdinaryPatient which extends Patient.
    the class will include value int that his name age and another value that will be boolean
    of disease.
    I have to do two constructors. one that don't get values and give them default and the other one
    that does get values.
    another method name docVisit which get a visit to the doctor time visit and will print a message.
    the method hospitalize will hospitalize the patient (and if he will have disease he will get true).
    and for age I have to write methods of get and set.
    2. I will need to write a class of Hipochondriac that extends from OrdinaryPatient.
    I have to do two constructors. one that don't get values and make default and the other one that do get values.
    I will need to ade int by the name of numberOfHospitalize.
    I will need to move the method hospitalize that it will be possible to hospitalize the hypochondriac
    on with the value numberOfHospitalize that his small from 5 and if he will hospitalize he will return
    the value true.
    3. write class PatientClass which will be the method main.
    do 10 objects from OrdinaryPatient, 5 that don't get values and 5 will get randomaly age and
    chronic disease with true.
    do 10 objects from Hipochonidraic, 9 that don't get values and one get all of them.
    save all objects in value from Patinet.
    print for each of them their age.
    print for the OrdinaryPatient alone the method of Hospitalize.
    ok, here's what I did.
    1. OrdinaryPatient
    pbulic class OrdinaryPatient implements Patient{
    private int age;
    private boolean disease;
    public OrdinaryPatient(){
    this.disease=false;
    this.age=0;
    public OrdinaryPatient(int age,boolean ddisase){
    this.disease=disease;
    this.age=age;
    public int getAge(){
    return age;
    public void setDisease(boolean disease){
    this.disease=disease;
    public void setAge(int age){
    this.age=age;
    public void docVisit(){
    System.out.println("Patient's visit is one hour");
    public boolean hospitalize(){
    return false;
    2. public class Hipochondriac extends OrdinaryPatient{
    private = numberOfHospitalize;
    public Hipochondriac();
    super();
    numberOfHospitalize=0;
    public Hipochondriac(int age, boolean diseased, int numberOfHospitalize){
    super(age.diseased);
    setnumberOfHospitalize(numberofHospitalize);
    from here I don't know how to continue.
    3. public class PatientClass{
    public static void main(String args[]){
    patient patinets= new patient[20];
    for (int i=0; i<5; i++){
    patients= new OrdinaryPatient();
    from i'm stuck!!!
    if you can help me to improve it I will appriciate it...
    Einat

    here my result.
    1. public interface Patient{
         public void docVisit(float hour_;
         public boolean hospitalize();
    public class OrdinaryPatient extends Patient
         private int age;
         private boolean disease;
    //constructors
         public OrdinaryPatient(){
              age=20;
              disease=true;
         public OrdinaryPatient(int age, boolean disease) {
              setAge(age);
              this.disease=disease;
    //methods
         public int getAge() {
              return age;
         public void setAge(boolean disease) {
              if(age>0 && age<120)
                   this.age=age;
         //overriding methods.
         public void docVisit(float hour) {
              System.out.println("your visit turn is at "+hour");
         public boolean hospitalize(){
              System.out.println("go to hospital");
              if(disease)
                   return true;
              else
                   return false;
    2. public class Hipochondriac extends OrdinaryPatient{
         private int numberOfHospitalize;
    //constructors
         public Hipochondriac(){
         public Hipochondriac(int age, boolean disease, int numberOfHospipitalize){
              setAge(age);
              this.disease=disease;
              this.numberOfHospitalize=numberOfHospitalize
         //methods
         public int getNumberOfHospitalize(){
              return numberOfHospitalize;
         public void setNumberOfHospitalize(int numberOfHostpitalize){
              if(numberOfHospitalize>0)
                   this.numberOfHospitalize=numberOfHospitalize;
         public boolean hospitalize(){
              if(numberOfHospitalize<5)
                   System.out.println("go to hospital");
                   numberOfHospitalize++;
                   return true;
              else
                   return false;
    3. public class PatientClass
         //constructors
         private PatientClass(String[] args){
              //private methods helps to build the object.
              intialArr(args);
              printAge();
              gotHospital();
    //methods.
    private void intialArr(String[] args){
         int i;//array index
         for(i=0;i<arr.lents/2;i+=2)
              arr=new OrdinaryPatient();
              arr[i+1]=new OridnaryPatient((int)(Math.random()*121),true);
         for(;i<=arr.length-2;i++)
              arr[i]=new Hipochondriac();
         arr[i]=new Hipochondriac(Interget.parseINt(args[0]),
         private void printAge(){
              for(int i=0;i<arr.length;i++)
                   System.out.println(((OrdinaryPatient)arr[i]).getAge());
         private void gotoHospital(){
              for(int i=0;i<arr.length;i++)
    //checking for ordinarypatient objects only
                   if(!(arr[i] instanceof Hipochondriac))
                        //dont need casting
                        arr[i].hospitalize()[
         //main method
         public static void main(String[] args)
              //setting the commandLine array from the main to PatientClass object
              PatientClass pc=new PatientClass(args);
    let me know if it's seems logic to you.
    thank you, Einat     

  • Need help in writing the code

    Hi,
    My table data is as below.
    Kunnr  BDAT EDAT  D1 D2 D3 D4 D5
    1111    2001  2002   1      2    1      2     1
    1111    2003  2008   1      0    4     1      2
    1111    2008  2011   1      1    1     1      1
    2222    2003  2008   1      2    2             2
    2222    2008  2011           1    2     1      1
    Here for kunnr  between begin and end date we have to caluclate the dependencies. (I.e if there is any value in D1or D2 or D3orD4 it shoulbe counted as 1. of it is zero or blank then it should not be coutned).
    for Ex: for 1111 between 2001 & 2002 tot dependencies are 5.            
               for 1111 between 2003 & 2008 tot dependencies are 4.
    in this scenario what will be the best way of writing the code. Do we need to check each and every field when counting the Sum value or and simple way to improve the performance.
    Regards,
    Vishnu
    Edited by: Vishnuvadhan K on May 13, 2011 10:30 AM
    Moderator Message: This is not a forum, where you can get your work done by others.
    Edited by: kishan P on May 13, 2011 3:52 PM

    Hi Vishnu,
    Here, you will have to check for the range of your begin date & end date. If it comes in the said range, then you simply have to add the values of your D1, D2,... DX values which you can store in some variables by setting out a flag as one counter for each.
    If your case is satisfied for any of the date range, then just check for the flag values which are satisfied & add them or display the sum of the number of counters.
    @Ambujavalli, At End Of won't work here because the date ranges given by Vishnu will differ.
    Those statements are useful in a case when suppose for the same field value, you need to calculate a particular sum.
    Here, that is not the case. Hence, AT First & At End Of won't work.
    Thanks,
    Gayathri.
    Edited by: gnikesh88 on May 13, 2011 11:52 AM

  • Help needed in this code

    Hi guys, I need help in debugging this code I made, which is a GUI minesweeper. Its extremely buggy...I particularly need help fixing the actionListener part of the code as everytime I press a button on the GUI, an exception occurs.
    help please!
    package minesweeperGUI;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class MinesweeperGUI implements ActionListener
         //Declaration of attributes
         static int length = 0;
         JMenuItem menuItemNew = new JMenuItem();
         JRadioButtonMenuItem rbEasy = new JRadioButtonMenuItem();
         JRadioButtonMenuItem rbHard = new JRadioButtonMenuItem();
         JMenuItem menuItemExit = new JMenuItem();
         JButton buttonReset = new JButton();
         JButton buttonGrid[][] = null;
         JFrame frame = new JFrame();
         int getBombsTotal = 0;
         JLabel setBombsLabel = new JLabel();
         int a = 0;
         int b = 0;     
         //No constructor created. Uses default constructor
         //Create the menu bar
         public JMenuBar newMenuBar()
              //Sets up the menubar
              JMenuBar menuBar = new JMenuBar();
              //Sets up the Game menu with choice of new, grid size, and exit
              JMenu menu = new JMenu ("Game");
              menuBar.add (menu);
              menuItemNew = new JMenuItem ("New");
              menuItemNew.addActionListener (this);
              menu.add (menuItemNew);
              menu.addSeparator();
              //Sets up sub-menu for grid size with choice of easy and hard radio buttons
              JMenu subMenu = new JMenu ("Grid Size");
              rbEasy = new JRadioButtonMenuItem ("Easy: 5x5 grid");
              rbEasy.addActionListener (this);
              subMenu.add (rbEasy);
              rbHard = new JRadioButtonMenuItem ("Hard: 10x10 grid");
              rbHard.addActionListener (this);
              subMenu.add (rbHard);
              menu.add (subMenu);
              menu.addSeparator();
              menuItemExit = new JMenuItem ("Exit");
              menuItemExit.addActionListener (this);
              menu.add (menuItemExit);
              return menuBar;
         //Setting up of Bomb Grid
         public int [][] setGrid (int length)
              int grid[][] = null;
              grid = new int[length][length];
              for (int i = 0; i < length; i++)
                   for (int j = 0; j < length; j++)
                        grid[i][j] = ((int)Math.round(Math.random() * 10))% 2;
              return grid;     
         //Setting up of the of the graphical bomb grid
         public JButton[][] setButtonGrid (int length)
              JButton buttonGrid[][] = null;
              buttonGrid = new JButton[length][length];
              for (int i = 0; i < length; i++)
                   for (int j = 0; j < length; j++)
                        buttonGrid[i][j] = new JButton();
              return buttonGrid;
         //Setting up of a way to count the total number of bombs in the bomb grid
         public int getBombsTotal (int length, int setGrid[][])
              int bombsTotal = 0;
              for (int i = 0; i < length; i++)
                   for (int j = 0; j < length; j++)
                        if (setGrid[i][j] == 1)
                             bombsTotal += 1;
              return bombsTotal;
         //Create a label for number of bombs left
         public JLabel setBombsLabel (int getBombsTotal)
              JLabel bombsLabel = new JLabel(String.valueOf (getBombsTotal) + " Bombs Left");
              return bombsLabel;
         //Setting up a way to count the number of bombs around a button
         public String setBombs (int length, int setGrid[][], int x, int y)
              int bombs[][] = new int[length][length];
              String bombsString = null;
              for (int i = 0; i < length; i++)
                   for (int j = 0; j < length; j++)
                        if (i == 0 && j == 0)
                             bombs[i][j] = setGrid[i][j+1] + setGrid[i+1][j] +
                                  setGrid[i+1][j+1];
                        else if (i ==0 && j == (length - 1))
                             bombs[i][j] = setGrid[i][j-1] + setGrid[i+1][j-1] +
                                  setGrid[i+1][j];
                        else if (i == (length - 1) && j == 0)
                             bombs[i][j] = setGrid[i-1][j] + setGrid[i-1][j+1] +
                                  setGrid[i][j+1];
                        else if (i == (length - 1) && j == (length - 1))
                             bombs[i][j] = setGrid[i-1][j-1] + setGrid[i-1][j] +
                                  setGrid[i][j-1];
                        else if (i == 0 && j != 0 && j != (length - 1))
                             bombs[i][j] = setGrid[i][j-1] + setGrid[i][j+1] +
                                  setGrid[i+1][j-1] + setGrid[i+1][j] +
                                  setGrid[i+1][j+1];
                        else if (i == (length - 1) && j != 0 && j != (length - 1))
                             bombs[i][j] = setGrid[i-1][j-1] + setGrid[i-1][j] +
                                  setGrid[i-1][j+1] + setGrid[i][j-1] +
                                  setGrid[i][j+1];
                        else if (i != 0 && i != (length - 1) && j == 0)
                             bombs[i][j] = setGrid[i-1][j] + setGrid[i-1][j+1] +
                                  setGrid[i][j+1] + setGrid[i+1][j] +
                                  setGrid[i+1][j+1];
                        else if (i != 0 && i != (length - 1) && j == (length - 1))
                             bombs[i][j] = setGrid[i-1][j-1] + setGrid[i-1][j] +
                                  setGrid[i][j-1] + setGrid[i+1][j-1] +
                                  setGrid[i+1][j];
                        else
                             bombs[i][j] = setGrid[i-1][j-1] + setGrid[i-1][j] +
                                  setGrid[i-1][j+1] + setGrid[i][j-1] +
                                  setGrid[i][j+1] + setGrid[i+1][j-1] +
                                  setGrid[i+1][j] + setGrid[i+1][j+1];
              bombsString = String.valueOf (bombs[x][y]);
              return bombsString;
         //create the panel for the bombs label and reset button
         public JPanel newTopPanel(int length)
              int setGridNew [][] = null;
              setGridNew = new int[length][length];
              int getBombsTotalNew = 0;
              JLabel setBombsLabelNew = new JLabel();
              setGridNew = setGrid (length);
              getBombsTotalNew = getBombsTotal (length, setGridNew);
              setBombsLabelNew = setBombsLabel (getBombsTotalNew);
              JPanel topPanel = new JPanel ();
              topPanel.setLayout (new BorderLayout (50,50));
              JLabel bombsLabel = new JLabel ();
              bombsLabel = setBombsLabelNew;     
              topPanel.add (bombsLabel, BorderLayout.WEST);
              buttonReset = new JButton("Reset");
              buttonReset.addActionListener (this);
              topPanel.add (buttonReset, BorderLayout.CENTER);
              return topPanel;
         //create the panel for the play grids
         public JPanel newBottomPanel(int length)
              JButton setButtonGridNew[][] = null;
              setButtonGridNew = new JButton [length][length];
              setButtonGridNew = setButtonGrid (length);
              JPanel bottomPanel = new JPanel ();
              bottomPanel.setLayout (new GridLayout (length, length));
              buttonGrid = new JButton[length][length];          
              for (a = 0; a < length; a++)
                   for (b = 0; b < length; b++)
                        buttonGrid[a] = setButtonGridNew[a][b];
                        buttonGrid[a][b].addActionListener (this);
                        bottomPanel.add (buttonGrid[a][b]);
              return bottomPanel;
         //Overiding of abstract method actionPerformed
         public void actionPerformed(ActionEvent e)
              if (e.getSource() == menuItemNew)
                   launchFrame(length);
              else if (e.getSource() == menuItemExit)
                   frame.setVisible (false);
                   System.exit(0);
              else if (e.getSource() == rbEasy)
                   length = 5;
                   launchFrame(length);
              else if (e.getSource() == rbHard)
                   length = 10;
                   launchFrame(length);     
              else if (e.getSource() == buttonReset)
                   launchFrame(length);
              else if (e.getSource() == buttonGrid[a][b])
                   int setGridNew [][] = null;
                   setGridNew = new int[length][length];               
                   JButton bombButton [][] = null;
                   bombButton = new JButton [length][length];
                   String bombString [][] = null;
                   bombString = new String[length][length];
                   setGridNew = setGrid (length);               
                   bombString[a][b] = setBombs (length, setGridNew, a, b);
                   bombButton[a][b] = new JButton (bombString[a][b]);
                   if (setGridNew[a][b] == 0)
                        buttonGrid[a][b] = bombButton[a][b];
                        getBombsTotal--;
                        JLabel setBombsLabelNew = new JLabel();
                        setBombsLabelNew = setBombsLabel (getBombsTotal);
                   else if (setGridNew[a][b] == 1 )
                        buttonGrid[a][b] = new JButton("x");
                        JOptionPane.showMessageDialog (null, "Game Over. You hit a Bomb!");
                        System.exit(0);     
         //create the content pane
         public Container newContentPane(int length)
              JPanel topPanel = new JPanel();
              JPanel bottomPanel = new JPanel();          
              topPanel = newTopPanel(length);
              bottomPanel = newBottomPanel (length);
              JPanel contentPane = new JPanel();
              contentPane.setOpaque (true);
              contentPane.setLayout (new BorderLayout(50,50));
              contentPane.add (topPanel, BorderLayout.NORTH);
              contentPane.add (bottomPanel, BorderLayout.CENTER);
              return contentPane;
         public void launchFrame (int length)
              //Makes sure we have nice window decorations
              JFrame.setDefaultLookAndFeelDecorated(true);          
              //Sets up the top-level window     
              frame = new JFrame ("Minesweeper");
              //Exits program when the closed button is clicked
              frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
              JMenuBar menuBar = new JMenuBar();
              Container contentPane = new Container();
              menuBar = newMenuBar();
              contentPane = newContentPane (length);
              //Sets up the menu bar and content pane
              frame.setJMenuBar (menuBar);
              frame.setContentPane (contentPane);
              //Displays the window
              frame.pack();
              frame.setVisible (true);
         public static void main (String args[])
              //Default length is 5
              length = 5;
              MinesweeperGUI minesweeper = new MinesweeperGUI();
              minesweeper.launchFrame(length);

    hi, thanks. that removed the exception; although now the buttons action listener won't work :(
    here is the revised code:
    To anyone out there, can you guys run this code and help me debug it?
    I'm really desperate as this is a school project of mine and the deadline is 7 hours away. I have already been working on it for 3 days, but the program is still very buggy.
    thanks!
    /* Oliver Ian C. Wee 04-80112
    * CS12 MHRU
    * Machine Problem 2
    package minesweeperGUI;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class MinesweeperGUI implements ActionListener
         //Declaration of attributes
         static int length = 0;
         JMenuItem menuItemNew = new JMenuItem();
         JRadioButtonMenuItem rbEasy = new JRadioButtonMenuItem();
         JRadioButtonMenuItem rbHard = new JRadioButtonMenuItem();
         JMenuItem menuItemExit = new JMenuItem();
         JButton buttonReset = new JButton();
         JButton buttonGrid[][] = null;
         JFrame frame = new JFrame();
         int getBombsTotal = 0;
         JLabel setBombsLabel = new JLabel();
         int a = 0;
         int b = 0;
         //No constructor created. Uses default constructor
         //Create the menu bar
         public JMenuBar newMenuBar()
              //Sets up the menubar
              JMenuBar menuBar = new JMenuBar();
              //Sets up the Game menu with choice of new, grid size, and exit
              JMenu menu = new JMenu ("Game");
              menuBar.add (menu);
              menuItemNew = new JMenuItem ("New");
              menuItemNew.addActionListener (this);
              menu.add (menuItemNew);
              menu.addSeparator();
              //Sets up sub-menu for grid size with choice of easy and hard radio buttons
              JMenu subMenu = new JMenu ("Grid Size");
              ButtonGroup bg = new ButtonGroup();
              rbEasy = new JRadioButtonMenuItem ("Easy: 5x5 grid");
              bg.add (rbEasy);
              rbEasy.addActionListener (this);
              subMenu.add (rbEasy);
              rbHard = new JRadioButtonMenuItem ("Hard: 10x10 grid");
              bg.add (rbHard);
              rbHard.addActionListener (this);
              subMenu.add (rbHard);
              menu.add (subMenu);
              menu.addSeparator();
              menuItemExit = new JMenuItem ("Exit");
              menuItemExit.addActionListener (this);
              menu.add (menuItemExit);
              return menuBar;
         //Setting up of Bomb Grid
         public int [][] setGrid (int length)
              int grid[][] = null;
              grid = new int[length][length];
              for (int i = 0; i < length; i++)
                   for (int j = 0; j < length; j++)
                        grid[i][j] = ((int)Math.round(Math.random() * 10))% 2;
              return grid;     
         //Setting up of the of the graphical bomb grid
         public JButton[][] setButtonGrid (int length)
              JButton buttonGrid[][] = null;
              buttonGrid = new JButton[length][length];
              for (int i = 0; i < length; i++)
                   for (int j = 0; j < length; j++)
                        buttonGrid[i][j] = new JButton();
              return buttonGrid;
         //Setting up of a way to count the total number of bombs in the bomb grid
         public int getBombsTotal (int length, int setGrid[][])
              int bombsTotal = 0;
              for (int i = 0; i < length; i++)
                   for (int j = 0; j < length; j++)
                        if (setGrid[i][j] == 1)
                             bombsTotal += 1;
              return bombsTotal;
         //Create a label for number of bombs left
         public JLabel setBombsLabel (int getBombsTotal)
              JLabel bombsLabel = new JLabel("  " +String.valueOf (getBombsTotal) + " Bombs Left");
              return bombsLabel;
         //Setting up a way to count the number of bombs around a button
         public String setBombs (int length, int setGrid[][], int x, int y)
              int bombs[][] = new int[length][length];
              String bombsString = null;
              for (int i = 0; i < length; i++)
                   for (int j = 0; j < length; j++)
                        if (i == 0 && j == 0)
                             bombs[i][j] = setGrid[i][j+1] + setGrid[i+1][j] +
                                  setGrid[i+1][j+1];
                        else if (i ==0 && j == (length - 1))
                             bombs[i][j] = setGrid[i][j-1] + setGrid[i+1][j-1] +
                                  setGrid[i+1][j];
                        else if (i == (length - 1) && j == 0)
                             bombs[i][j] = setGrid[i-1][j] + setGrid[i-1][j+1] +
                                  setGrid[i][j+1];
                        else if (i == (length - 1) && j == (length - 1))
                             bombs[i][j] = setGrid[i-1][j-1] + setGrid[i-1][j] +
                                  setGrid[i][j-1];
                        else if (i == 0 && j != 0 && j != (length - 1))
                             bombs[i][j] = setGrid[i][j-1] + setGrid[i][j+1] +
                                  setGrid[i+1][j-1] + setGrid[i+1][j] +
                                  setGrid[i+1][j+1];
                        else if (i == (length - 1) && j != 0 && j != (length - 1))
                             bombs[i][j] = setGrid[i-1][j-1] + setGrid[i-1][j] +
                                  setGrid[i-1][j+1] + setGrid[i][j-1] +
                                  setGrid[i][j+1];
                        else if (i != 0 && i != (length - 1) && j == 0)
                             bombs[i][j] = setGrid[i-1][j] + setGrid[i-1][j+1] +
                                  setGrid[i][j+1] + setGrid[i+1][j] +
                                  setGrid[i+1][j+1];
                        else if (i != 0 && i != (length - 1) && j == (length - 1))
                             bombs[i][j] = setGrid[i-1][j-1] + setGrid[i-1][j] +
                                  setGrid[i][j-1] + setGrid[i+1][j-1] +
                                  setGrid[i+1][j];
                        else
                             bombs[i][j] = setGrid[i-1][j-1] + setGrid[i-1][j] +
                                  setGrid[i-1][j+1] + setGrid[i][j-1] +
                                  setGrid[i][j+1] + setGrid[i+1][j-1] +
                                  setGrid[i+1][j] + setGrid[i+1][j+1];
              bombsString = String.valueOf (bombs[x][y]);
              return bombsString;
         //create the panel for the bombs label and reset button
         public JPanel newTopPanel(int length)
              int setGridNew [][] = null;
              setGridNew = new int[length][length];
              int getBombsTotalNew = 0;
              JLabel setBombsLabelNew = new JLabel();
              setGridNew = setGrid (length);
              getBombsTotalNew = getBombsTotal (length, setGridNew);
              setBombsLabelNew = setBombsLabel (getBombsTotalNew);
              JPanel topPanel = new JPanel ();
              topPanel.setLayout (new BorderLayout (20,20));
              JLabel bombsLabel = new JLabel ();
              bombsLabel = setBombsLabelNew;     
              topPanel.add (bombsLabel, BorderLayout.WEST);
              buttonReset = new JButton("Reset");
              buttonReset.addActionListener (this);
              topPanel.add (buttonReset, BorderLayout.CENTER);
              return topPanel;
         //create the panel for the play grids
         public JPanel newBottomPanel(int length)
              JButton setButtonGridNew[][] = null;
              setButtonGridNew = new JButton [length][length];
              setButtonGridNew = setButtonGrid (length);
              JPanel bottomPanel = new JPanel ();
              bottomPanel.setLayout (new GridLayout (length, length));
              buttonGrid = new JButton[length][length];          
              for (int i = 0; i < length; i++)
                   for (int j = 0; j < length; j++)
                        buttonGrid[i][j] = setButtonGridNew[i][j];
                        buttonGrid[i][j].addActionListener (this);
                        bottomPanel.add (buttonGrid[i][j]);
              return bottomPanel;
         //Overiding of abstract method actionPerformed
         public void actionPerformed(ActionEvent e)
              if (e.getSource() == menuItemNew)
                   closeFrame();
                   launchFrame(length);
              else if (e.getSource() == menuItemExit)
                   frame.setVisible (false);
                   System.exit(0);
              else if (e.getSource() == rbEasy)
                   closeFrame();
                   length = 5;
                   launchFrame(length);
              else if (e.getSource() == rbHard)
                   closeFrame();
                   length = 10;
                   launchFrame(length);     
              else if (e.getSource() == buttonReset)
                   closeFrame();
                   launchFrame(length);
              else if (e.getSource() == buttonGrid[a])
                   int setGridNew [][] = null;
                   setGridNew = new int[length][length];               
                   JButton bombButton [][] = null;
                   bombButton = new JButton [length][length];
                   String bombString [][] = null;
                   bombString = new String[length][length];
                   setGridNew = setGrid (length);               
                   for (int i = 0; i < length; i++)
                        for (int j = 0; j < length; j++)
                             bombString[i][j] = setBombs (length, setGridNew, i, j);
                             bombButton[i][j] = new JButton (bombString[i][j]);
                   if (setGridNew[a][b] == 0)
                        buttonGrid[a][b] = bombButton[a][b];
                        getBombsTotal--;
                        JLabel setBombsLabelNew = new JLabel();
                        setBombsLabelNew = setBombsLabel (" " String.valueOf (getBombsTotal) " Bombs Left");
                   else if (setGridNew[a][b] == 1 )
                        buttonGrid[a][b] = new JButton("x");
                        JOptionPane.showMessageDialog (null, "Game Over. You hit a Bomb!");
                        System.exit(0);     
         //create the content pane
         public Container newContentPane(int length)
              JPanel topPanel = new JPanel();
              JPanel bottomPanel = new JPanel();          
              topPanel = newTopPanel(length);
              bottomPanel = newBottomPanel (length);
              JPanel contentPane = new JPanel();
              contentPane.setOpaque (true);
              contentPane.setLayout (new BorderLayout(5,5));
              contentPane.add (topPanel, BorderLayout.NORTH);
              contentPane.add (bottomPanel, BorderLayout.CENTER);
              return contentPane;
         public void closeFrame ()
              frame = new JFrame ("Minesweeper");
              frame.dispose();
         public void launchFrame (int length)
              //Makes sure we have nice window decorations
              JFrame.setDefaultLookAndFeelDecorated(true);          
              //Sets up the top-level window     
              frame = new JFrame ("Minesweeper");
              //Exits program when the closed button is clicked
              frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
              JMenuBar menuBar = new JMenuBar();
              Container contentPane = new Container();
              menuBar = newMenuBar();
              contentPane = newContentPane (length);
              //Sets up the menu bar and content pane
              frame.setJMenuBar (menuBar);
              frame.setContentPane (contentPane);
              //Displays the window
              frame.pack();
              frame.setVisible (true);
         public static void main (String args[])
              //Default length is 5
              length = 5;
              MinesweeperGUI minesweeper = new MinesweeperGUI();
              minesweeper.launchFrame(length);

  • Help needed to rewrite code so main menus move down to make way for subs

    Can anybody please help me (slightly) alter some code.
    I am working on a vertical menu with sub's and need to alter the AS so that when a sub menu is selected, the main menus below it move down to accommodate the new sub menu.
    This is the code I am currently using is
    GenerateMenu = function(container, name, x, y, depth, node_xml) {
        // variable declarations
        var curr_node;
        var curr_item;
        var curr_menu = container.createEmptyMovieClip(name, depth);
        // for all items or XML nodes (items and menus)
        // within this node_xml passed for this menu
        for (var i=0; i<node_xml.childNodes.length; i++) {
            // movieclip for each menu item
            curr_item = curr_menu.attachMovie("menuitem","item"+i+"_mc", i);
            curr_item._x = x;
            curr_item._y = y + i*curr_item._height;
            curr_item.trackAsMenu = true;
            // item properties assigned from XML
            curr_node = node_xml.childNodes[i];
            curr_item.action = curr_node.attributes.action;
            curr_item.variables = curr_node.attributes.variables;
            curr_item.name.text = curr_node.attributes.name;
            // item submenu behavior for rollover event
            if (node_xml.childNodes[i].nodeName == "menu"){
                // open a submenu
                curr_item.node_xml = curr_node;
                curr_item.onRollOver = curr_item.onDragOver = function(){
                    var x = this._x + this._width -76;
                    var y = this._y + 55;
                    GenerateMenu(curr_menu, "submenu_mc", x, y, 10, this.node_xml);
                    // show a hover color
                    var col = new Color(this.background);
                    col.setRGB(0xf4faff);
            }else{ // nodeName == "item"
                curr_item.arrow._visible = false;
                // close existing submenu
            curr_item.onRollOut = curr_item.onDragOut = function(){
                // restore color
                var col = new Color(this.background);
                col.setTransform({ra:100,rb:0,ga:100,gb:0,ba:100,bb:0});
            // any item, menu opening or not can have actions
            curr_item.onRelease = function(){
                Actions[this.action](this.variables);
                CloseSubmenus();
        } // end for loop
    // create the main menu, this will be constantly visible
    CreateMainMenu = function(x, y, depth, menu_xml){
        // generate a menu list
        GenerateMenu(this, "mainmenu_mc", x, y, depth, menu_xml.firstChild);
        // close only submenus if visible durring a mouseup
        // this main menu (mainmenu_mc) will remain
        mainmenu_mc.onMouseUp = function(){
            if (mainmenu_mc.submenu_mc && !mainmenu_mc.hitTest(_root._xmouse, _root._ymouse, true)){
                CloseSubmenus();
    // closes all submenus by removing the submenu_mc
    // in the main menu (if it exists)
    CloseSubmenus = function(){
        mainmenu_mc.submenu_mc.removeMovieClip();
    // This actions object handles methods for actions
    // defined by the XML called when a menu item is pressed
    Actions = Object();
    Actions.gotoURL = function(urlVar){
        getURL(urlVar, "_blank");
    Actions.message = function(msg){
        message_txt.text = msg;
    Actions.newMenu = function(menuxml){
        menu_xml.load(menuxml);
    // load XML, when done, run CreateMainMenu to interpret it
    menu_xml = new XML();
    menu_xml.ignoreWhite = true;
    menu_xml.onLoad = function(ok){
        // create main menu after successful loading of XML
        if (ok){
            CreateMainMenu(10, 10, 0, this);
            message_txt.text = "message area";
        }else{
            message_txt.text = "error:  XML not successfully loaded";
    // load first XML menu
    menu_xml.load("menu1.xml");
    Any help/feed back - even if its just to tell me Im asking for too much, would be incredibly appriciated.

    onclipevent(load)                                           
    total=_root.getbytestotal();                             
    onclipevent(enterframe)
    loaded=_root.getbytesloaded();
    current=int(loaded/total*100);
    p=""+current+"%";
    if(loaded==total)
    gotoandplay("Scene 2",1);
    sorry for getting the code and coment mixed up.

  • Help Needed with HTML code for Image Positioning

    Hi All,
    Need a little help with some code for positioning images.
    I initially used the following:
    This is fine, but the border automatically puts a black border around the photo - how do I change it to white? Is there a way to set margins too, to prevent the text butting up against the photo?
    I also used the following code with success:
    <style type="text/css"
    img
    float:right;
    border:2px solid white;
    margin: 0px 0px 15px 20px
    </style>
    This code works, however the problem with it is it is not individual to just one photo - it moved all my photos and on that page, I wanted one photo floated to left and another to the right.
    If I use this code, how can I make it photo specific, so that it only affects the placement, margins and borders of one photo?
    Any help would be great.
    Thanks

    CSS question, not iWeb question. Regardless, use inline CSS styling for the image. You can also wrap the image in its own tag and declare an id or simply declare an id for the img tag, then set the style for the id_name:
    <style type="text/css"
    img#id_name
    float:right;
    border:2px solid white;
    margin: 0px 0px 15px 20px
    </style>
    If you want to control the style of more than one image on a page but not all then use a class instead of an id.
    the border automatically puts a black border around the photo - how do I change it to white? Is there a way to set margins too, to prevent the text butting up against the photo?
    I believe you have discovered a solution for this according to your CSS code. You have set the border to white by looking at the code and adjusting it appropriately. Your margin is declared in the CSS also, adjust the pixels appropriately.
    Read up some more on CSS to educate yourself further. I suggest w3schools.com or a CSS forum instead of the iWeb forum if you have CSS questions. It's kind of like if you drive your auto to the supermarket so you decide to go to the supermarket and ask everyone in the produce section to help when you have car problems. All the supermarket does is provide a place to park your auto. If you have car problems then ask a mechanic. iWeb (and most of its users) doesn't specialize in code, it simply provides an area for you to place it. Granted you might get lucky and find a mechanic in the produce section of the supermarket, but you're more likely to find a specialist at an auto swap meet (or CSS coding forum)!

  • Help needed: clarifying the use of beans to pass data from database to JSP

    Hi everyone,
    I am sure you all get fed up with being asked this question as I can see it is asked a lot when googled, but the answers given have not cleared things up for me.
    Anyway, I have a JSP page that contains a text box, submit button and a select box of size 10. The user enters a search string and the form submits the data and reloads the same page. From the code you can see the Name property of the bean is set.
    <jsp:useBean id="vtm" class="FinalYearProject.Types.VtmType" scope="page" />
    <jsp:setProperty name="vtm" property="NM" value="${param.NM}" />I then need to be able to use that name to query a postgresql database. I have a JDBCConnector class with the method:
        public ResultSet searchTable(String NM ) throws SQLException {
            String[] names = NM.split(" ");
            NM = "";
            for(int i = 0; i < names.length; i++) {
                NM = names[i] + "%";
            return stat.executeQuery("SELECT * FROM vtm WHERE nm ILIKE '" + NM + "';");
        }This method however can be changed.
    My question really is what is the best way for me to take the name, get the resultset and pass back the VtmType objects to the jsp so that I can populate my select box, and where should each part be handled i.e. the JSP page, the VtmType, the JDBCConnector.
    I may be going about it completely the wrong way and using beans incorrectly, but I just cant seem to get my head around the problem.
    Any help would be much appreciated,
    Thanks.

    Hi,
    Thanks for the help, I actually found some literature about the JSP Model 2 and realised that was what I needed to do. I have now re-written everything and it has made my life a lot eaiser, typically this was before I checked back on this post though!
    Anyway, I now have JSP pages requesting Servlets which create beans and call classes that access the database. The servlet then forwards the beans and where necessary a small of html to another JSP. Like you have suggested.
    One problem I have now however, is that the user needs to be logged in to access some of the pages. An error page with the correct message is displayed to the user when it is processed via the servlet.
    //Servlet detects an error
    request.setAttribute("errorMsg", "1");
    gotoPage("/loginError.jsp", request, response);
    //JSP detects which errorMsg to display
    <c:set var="errorMsg" value="${requestScope.errorMsg}" />However, when the user does not sign in and clicks a link which is blocked the JSP forwards directly to the error JSP.
    //Tests to see if user is logged in
    <c:if test="${empty user.username}">
        <jsp:forward page="/loginError.jsp">
            <jsp:param name="errorMsg" value="3" />
        </jsp:forward>
    </c:if>The problem with this is that the only way I can see of checking the errorMsg type is with:
    //JSP checks which errorMsg to display
    <c:set var="errorMsg" value="${param.errorMsg}" />Which is different to how I determine the errorMsg from the Servlet. Is there a way of getting the errorMsg type that is the same for both actions?
    Thanks.

  • Help needed regarding the updation of "Relationships" in BP

    Hello Guys,
    This is to request you to kindly help me regarding the following.
    We have a scenario where all the employees assigned to an Organizational unit (in PPOMA_CRM) are not showing in the "Relationships" ("Has Employee")in the BP transaction of that Organizational Unit.
    Could anyone let me know whether there is any update program that updates the "Relationships" from the Organizational asssignment. Or we need to enter the employees manually in BP "Relationships". Please help. Thanks in anticipation.
    Regards,
    Kishore.

    Hi Amit,
    Thanks alot for your reply. Its really helpful for me.
    So,we usually enter these relationships manually only, right? Before going ahead with the custom program, could you please let me know whether there is any SAP note related to this.Once again thanks alot for you help.
    Regards,
    Kishore.

  • Program Name which helps to hide the code of abap program

    Hello Experts,
              Could anybody help me in finding the name of the program on running which we can hide the CODE OF Abap program

    Here´s a snippet demonstrating how to hide the ABAP code of a given program
    REPORT z_hide_abap
      NO STANDARD PAGE HEADING.
    DATA: gt_code(72)  TYPE c OCCURS 0,
          gv_code      LIKE LINE OF gt_code,
          gt_code2(72) TYPE c OCCURS 0.
    PARAMETERS: program LIKE sy-repid.
    START-OF-SELECTION.
      READ REPORT program INTO gt_code.
      IF sy-subrc NE 0.
        MESSAGE e398(00) WITH 'Report' program 'not found.'.
    *   ATTENTION:
    *   READ REPORT on a hidden source code return SY-SUBRC=8 !!!
      ENDIF. "IF sy-subrc NE 0
      READ TABLE gt_code INDEX 1 INTO gv_code.
    * append *special* 1st line to hide cource code
      APPEND '*@#@@[SAP]' TO gt_code2.
      LOOP AT gt_code INTO gv_code.
        APPEND gv_code TO gt_code2.
      ENDLOOP.
      INSERT REPORT program FROM gt_code2.
    Reward points if helpful.

  • Would like help with treeset ,the codes that using for sorting, please ?

    hi every body. i faced a problem while writing this program, everything worked properly except this one. The program is related to Jframe and it asks the user to add three labels , three text field , one text area and three Jbuttons which are add sort and exit. i could deal with add and exit but sort, i couldn't do it properly because i don't know the codes that should be added in actionperfomed?
    These codes are :
    package gui;
    import javax.swing.SwingUtilities;
    import java.awt.BorderLayout;
    import javax.swing.JPanel;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import java.awt.Rectangle;
    import java.util.ArrayList;
    import javax.swing.JButton;
    import javax.swing.JTextField;
    import javax.swing.JTextArea;
    import sun.misc.Sort;
    import domain.Student;
    public class StudentFrame extends JFrame {
          * This method initializes btnAdd     
          * @return javax.swing.JButton     
         private JButton getBtnAdd() {
              if (btnAdd == null) {
                   btnAdd = new JButton();
                   btnAdd.setBounds(new Rectangle(13, 135, 59, 27));
                   btnAdd.setText("Add");
                   btnAdd.addActionListener(new java.awt.event.ActionListener() {
                        public void actionPerformed(java.awt.event.ActionEvent e) {
                        btnAddClicked(); // TODO Auto-generated Event stub actionPerformed()
              return btnAdd;
         protected void btnAddClicked() {
              // TODO Auto-generated method stub
         String name = txtName.getText();
         String id = txtID.getText();
         String age = txtAge.getText();
         Student s = new Student(name , id , age);
         txtArea.setText(String.valueOf(s ));
          * This method initializes btnSort     
          * @return javax.swing.JButton     
         private JButton getBtnSort() {
              if (btnSort == null) {
                   btnSort = new JButton();
                   btnSort.setBounds(new Rectangle(95, 136, 62, 25));
                   btnSort.setText("Sort");
                   btnSort.addActionListener(new java.awt.event.ActionListener() {
                        public void actionPerformed(java.awt.event.ActionEvent e) {
                             btnSortClicked(); // TODO Auto-generated Event stub actionPerformed()
              return btnSort;
         protected void btnSortClicked() {
              // TODO Auto-generated method stub
          * This method initializes btnExit     
          * @return javax.swing.JButton     
         private JButton getBtnExit() {
              if (btnExit == null) {
                   btnExit = new JButton();
                   btnExit.setBounds(new Rectangle(173, 134, 61, 23));
                   btnExit.setText("Exit");
                   btnExit.addActionListener(new java.awt.event.ActionListener() {
                        public void actionPerformed(java.awt.event.ActionEvent e) {
                             System.exit(0); // TODO Auto-generated Event stub actionPerformed()
              return btnExit;
          * This method initializes txtName     
          * @return javax.swing.JTextField     
         private JTextField getTxtName() {
              if (txtName == null) {
                   txtName = new JTextField();
                   txtName.setBounds(new Rectangle(79, 11, 60, 23));
              return txtName;
          * This method initializes txtID     
          * @return javax.swing.JTextField     
         private JTextField getTxtID() {
              if (txtID == null) {
                   txtID = new JTextField();
                   txtID.setBounds(new Rectangle(73, 55, 65, 26));
              return txtID;
          * This method initializes txtAge     
          * @return javax.swing.JTextField     
         private JTextField getTxtAge() {
              if (txtAge == null) {
                   txtAge = new JTextField();
                   txtAge.setBounds(new Rectangle(74, 96, 61, 24));
              return txtAge;
          * This method initializes txtArea     
          * @return javax.swing.JTextArea     
         private JTextArea getTxtArea() {
              if (txtArea == null) {
                   txtArea = new JTextArea();
                   txtArea.setBounds(new Rectangle(138, 5, 154, 128));
              return txtArea;
          * @param args
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        StudentFrame thisClass = new StudentFrame();
                        thisClass.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                        thisClass.setVisible(true);
          * This is the default constructor
         public StudentFrame() {
              super();
              initialize();
          * This method initializes this
          * @return void
         private void initialize() {
              this.setSize(300, 200);
              this.setContentPane(getJContentPane());
              this.setTitle("JFrame");
              return jContentPane;
    }Edited by: hypocrisy on Apr 26, 2009 6:51 PM

    There are three actionPerformed in that program.One for add Jbutton , Sort , and Exit
    the codes that i have added for add button after action performed are
    String name = txtName.getText();
    String id = txtID.getText();
    String age = txtAge.getText();
    Student s = new Student ( name , id , age);
    System.out.println(s);
    the codes for Exit button to make it works properly was :
    System.out.println(0);
    But when i came to Sort Button and i tried to enter many codes but it didn't sort properly so would you like to help me with the right codes :)

  • Help for Modifying the Code for display a 7 column table

    Hi,
    Is someone can help me to modify that code I have a 7 colomn table and as many row as their is results?
    Right now, All my result are in a 1 colomn table and and 1 row,
    thanks,
    Roseline
    DECLARE
      vtemp  varchar2(4000) DEFAULT ' ';
    BEGIN
      htp.p('<HTML>');
      htp.p('<HEAD>');
      htp.p('<TITLE>DISQUES C</TITLE>');
      htp.p('</HEAD>');
      htp.p('<BODY>');
    FOR idx IN
        SELECT DVD_ID, NomFichier,
               row_number() over(partition BY DVD_ID ORDER BY NomFichier  ASC) AS rna,
               row_number() over(partition BY DVD_ID ORDER BY NomFichier DESC) AS rnd
          FROM elements
         WHERE PROJET_ID = 1
      ORDER BY DVD_ID ASC, rna ASC
          loop
            IF idx.rna = 1
            then
              htp.p('<TABLE>');
              htp.p('<TR>');
              htp.p('<TD>' || idx.DVD_ID ||' </TD> ');
              htp.p('</TR>');
              htp.p('<TR>');
            end IF;
            vtemp := vtemp || '<TD>' || idx.NomFichier || ' </TD>';
            IF mod(idx.rna, 7) = 0 OR idx.rnd = 1
            then
              htp.p(vtemp);
              vtemp := ' ';
            end IF;
            IF idx.rnd = 1
            then
              htp.p('</TR>');
              htp.p('</TABLE>');
            end IF;
          end loop;
    htp.p('</BODY>');
    htp.p('</HTML>');
    end;

    Sorry:
    I have a table contening PROJECT ID, DVD ID and FILES NAME (NomFIchier) that are on the DVD.
    In my page result, I want the list of the DVD from a project with the following formatting ( 7 columns table), using PL/SQL.
    1 DVD can contain from 5000 files
    ex:
    Ex:
    select DVDNAME, NomFichier  fromTABLE where project = 2
    *85*
    2635080     2636608     2637084     2637091     2637092      2637093     2637147  
    2637152     2637153     2637154     2637155     2637156      2637157     2637164      
    *86*
    2639497     2639498     2639502     2639504     2639505     2639506     2639507  
    2639508     2639509     2639511     2639512     2639519     2639521     2639522        
    *******     *******     *******     ********    *********    ********    ******** With this code following code,
    DECLARE
      vtemp  varchar2(4000) DEFAULT ' ';
    BEGIN
      htp.p('<HTML>');
      htp.p('<HEAD>');
      htp.p('<TITLE>DISQUES C</TITLE>');
      htp.p('</HEAD>');
      htp.p('<BODY>');
    FOR idx IN
        SELECT DVD_ID, NomFichier,
               row_number() over(partition BY DVD_ID ORDER BY NomFichier  ASC) AS rna,
               row_number() over(partition BY DVD_ID ORDER BY NomFichier DESC) AS rnd
          FROM elements
         WHERE PROJET_ID = 1
      ORDER BY DVD_ID ASC, rna ASC
          loop
            IF idx.rna = 1
            then
              htp.p('<TABLE>');
              htp.p('<TR>');
              htp.p('<TD>' || idx.DVD_ID ||' </TD> ');
              htp.p('</TR>');
              htp.p('<TR>');
            end IF;
            vtemp := vtemp || '<TD>' || idx.NomFichier || ' </TD>';
            IF mod(idx.rna, 7) = 0 OR idx.rnd = 1
            then
              htp.p(vtemp);
              vtemp := ' ';
            end IF;
            IF idx.rnd = 1
            then
              htp.p('</TR>');
              htp.p('</TABLE>');
            end IF;
          end loop;
    htp.p('</BODY>');
    htp.p('</HTML>');
    end;I have the following result
    85
    2635080      2636608      2637084      2637091      2637092      2637093      2637147      2637152      2637153      2637154      2637155      2637156      2637157      2637164      2637169      2637170      2637172      2637173      2637202      2637203      2637213      2637214      2637215      2637216      2637217      2637218      2637219      2637220      2637234      2637235      2637236      2637237      2637239      2637240      2637241      2637242      2637244      2637246      2637247      2637249      2637250      2637251      2637252      2637253      2637257      2637263      2637266      2637269      2637270      2637274      2637276      2637279      2637284      2637290      2637291      2637292      2637293      2637294      2637295      2637296      2637301      2637303      2637304      2637305      2637306      2637311      2637320      2637322      2637324      2637331      2637333      2637336      2637352      2637353      2637354      2637358      2637359      2637360      2637361      2637362      2637363      2637364      2637371      2637378      2637383      2637384      2637385      2637386      2637387      2637388      2637391      2637392      2637395      2637400      2637405      2637412      2637418      2637419      2637423      2637443      2637446      2637453      2637461      2637470      2637483      2637484      2637485      2637494      2637502      2637506      2637507      2637519      2637532      2637536      2637537      2637539      2637540      2637541      2637544      2637553      2637554      2637555      2637557      2637575      2637578      2637579      2637580      2637581      2637582      2637583      2637587      2637588      2637589      2637590      2637591      2637592      2637593      2637594      2637595      2637597      2637604      2637605      2637606      2637611      2637619      2637628      2637629      2637630      2637631      2637632      2637633      2637637      2637645      2637647      2637648      2637650      2637651      2637657      2637658      2637659      2637661      2637662      2637668      2637674      2637676      2637677      2637679      2637680      2637681      2637684      2637685      2637686      2637688      2637689      2637691      2637692      2637694      2637696      2637700      2637701      2637702      2637703      2637704      2637705      2637706      2637707      2637722      2637725      2637741      2637749      2637751      2637752      2637753      2637762      2637764      2637771      2637777      2637779      2637781      2637783      2637785      2637789      2637793      2637809      2637810      2637811      2637812      2637823      2637827      2637836      2637837      2637838      2637845      2637850      2637854      2637855      2637857      2637858      2637859      2637860      2637861      2637866      2637867      2637870      2637874      2637875      2637876      2637877      2637878      2637879      2637880      2637881      2637884      2637885      2637886      2637887      2637891      2637892      2637893      2637894      2637895      2637897      2637898      2637899      2637900      2637901      2637902      2637904      2637906      2637907      2637908      2637909      2637913      2637914      2637916      2637917      2637918      2637919      2637920      2637921      2637923      2637926      2637928      2637929      2637930      2637933      2637935      2637936      2637937      2637939      2637940      2637941      2637942      2637943      2637949      2637950      2637951      2637952      2637954      2637955      2637958      2637965      2637967      2637969      2637970      2637971      2637973      2637978      2637985      2637986      2637987      2637990      2637991      2637992      2637993      2638001      2638002      2638005      2638007      2638009      2638016      2638018      2638020      2638023      2638027      2638029      2638033      2638034      2638035      2638036      2638039      2638043      2638044      2638045      2638046      2638048      2638049      2638052      2638053      2638055      2638057      2638058      2638063      2638064      2638065      2638067      2638068      2638069      2638072      2638076      2638080      2638081      2638082      2638083      2638084      2638087      2638089      2638096      2638097      2638098      2638099      2638100      2638101      2638102      2638103      2638105      2638106      2638108      2638110      2638113      2638117      2638118      2638120      2638121      2638122      2638124      2638126      2638128      2638134      2638135      2638136      2638137      2638139      2638140      2638141      2638143      2638146      2638147      2638148      2638149      2638150      2638151      2638152      2638153      2638154      2638155      2638157      2638159      2638167      2638168      2638172      2638173      2638174      2638175      2638181      2638184      2638185      2638187      2638192      2638193      2638198      2638199      2638200      2638202      2638203      2638205      2638207      2638208      2638209      2638210      2638211      2638212      2638214      2638218      2638219      2638220      2638221      2638223      2638230      2638232      2638236      2638243      2638245      2638246      2638247      2638248      2638258      2638264      2638265      2638268      2638279      2638280      2638281      2638283      2638284      2638287      2638305      2638309      2638310      2638311      2638312      2638316      2638317      2638318      2638319      2638321      2638324      2638330      2638331      2638332      2638333      2638334      2638335      2638336      2638337      2638338      2638339      2638340      2638341      2638342      2638344      2638347      2638349      2638352      2638353      2638364      2638372      2638374      2638376      2638379      2638390      2638391      2638392      2638393      2638394      2638395      2638402      2638405      2638407      2638414      2638421      2638422      2638429      2638430      2638432      2638434      2638438      2638442      2638444      2638457      2638467      2638469      2638474      2638478      2638479      2638480      2638484      2638486      2638488      2638489      2638491      2638506      2638507      2638508      2638510      2638511      2638512      2638513      2638514      2638515      2638516      2638517      2638518      2638519      2638520      2638521      2638522      2638523      2638525      2638527      2638529      2638530      2638531      2638532      2638536      2638537      2638563      2638564      2638567      2638568      2638569      2638618      2638628      2638629      2638634      2638644      2638647      2638649      2638653      2638658      2638666      2638671      2638675      2638677      2638679      2638680      2638685      2638687      2638689      2638691      2638692      2638693      2638694      2638695      2638696      2638697      2638699      2638701      2638702      2638703      2638704      2638705      2638706      2638707      2638709      2638710      2638711      2638712      2638713      2638714      2638720      2638721      2638725      2638726      2638728      2638731      2638732      2638736      2638737      2638739      2638740      2638741      2638744      2638745      2638747      2638748      2638753      2638754      2638755      2638756      2638757      2638760      2638763      2638764      2638768      2638777      2638781      2638782      2638783      2638791      2638793      2638795      2638796      2638798      2638799      2638801      2638810      2638811      2638813      2638814      2638815      2638816      2638817      2638818      2638832      2638833      2638834      2638835      2638836      2638846      2638847      2638848      2638849      2638850      2638851      2638852      2638854      2638855      2638857      2638858      2638859      2638860      2638861      2638862      2638864      2638866      2638867      2638868      2638869      2638870      2638872      2638873      2638874      2638876      2638883      2638884      2638885      2638893      2638895      2638900      2638923      2638927      2638928      2638929      2638931      2638932      2638935      2638936      2638937      2638939      2638942      2638943      2638949      2638952      2638954      2638955      2638956      2638957      2638958      2638959      2638960      2638961      2638962      2638968      2638976      2638978      2638979      2638980      2638983      2638984      2638986      2638988      2638994      2638995      2638998      2638999      2639001      2639002      2639003      2639006      2639011      2639012      2639013      2639014      2639016      2639017      2639018      2639024      2639025      2639030      2639036      2639038      2639039      2639043      2639045      2639046      2639049      2639055      2639057      2639064      2639066      2639067      2639068      2639069      2639072      2639074      2639076      2639079      2639080      2639081      2639085      2639086      2639092      2639098      2639099      2639100      2639101      2639103      2639104      2639105      2639106      2639107      2639109      2639110      2639111      2639112      2639125      2639128      2639129      2639131      2639132      2639133      2639134      2639137      2639138      2639139      2639144      2639146      2639148      2639149      2639159      2639162      2639164      2639165      2639167      2639177      2639179      2639186      2639187      2639188      2639191      2639196      2639197      2639204      2639205      2639208      2639214      2639217      2639218      2639220      2639221      2639223      2639224      2639225      2639226      2639227      2639230      2639236      2639237      2639238      2639239      2639241      2639242      2639246      2639248      2639260      2639262      2639263      2639264      2639270      2639271      2639292      2639293      2639296      2639298      2639299      2639300      2639302      2639303      2639304      2639305      2639306      2639307      2639308      2639309      2639311      2639315      2639316      2639317      2639319      2639321      2639322      2639323      2639324      2639325      2639326      2639327      2639328      2639329      2639330      2639331      2639333      2639336      2639338      2639339      2639341      2639342      2639343      2639344      2639345      2639346      2639348      2639349      2639350      2639356      2639358      2639359      2639360      2639361      2639362      2639364      2639365      2639367      2639368      2639369      2639370      2639373      2639374      2639376      2639378      2639379      2639381      2639386      2639387      2639388      2639389      2639391      2639394      2639396      2639397      2639398      2639400      2639401      2639404      2639405      2639406      2639409      2639410      2639411      2639412      2639419      2639423      2639426      2639427      2639429      2639434      2639437      2639440      2639446      2639448      2639450      2639457      2639465      2639466      2639467      2639468      2639469      2639472      2639473      2639474      2639475      2639478      2639485      2639486      2639487      2639488      2639489      2639491      2639492      2639495
    86
    2639497      2639498      2639502      2639504      2639505      2639506      2639507      2639508      2639509      2639511      2639512      2639519      2639521      2639522      2639523      2639525      2639527      2639530      2639542      2639543      2639552      2639553      2639554      2639555      2639559      2639560      2639561      2639563      2639564      2639565      2639567      2639574      2639575      2639578      2639579      2639581      2639582      2639584      2639585      2639586      2639587      2639588      2639589      2639591      2639595      2639596      2639597      2639598      2639599      2639605      2639618      2639621      2639623      2639624      2639627      2639628      2639637      2639638      2639639      2639644      2639647      2639648      2639649      2639650      2639654      2639658      2639662      2639665      2639669 I have some sample date here:
    http://www.developpez.net/forums/attachments/p57656d1263922095/bases-donnees/oracle/pl-sql/html-affichage-tableaux-conditions/testcase.zip/
    I want to know if it's possible to achieve what I want based on the code here.
    I'm working on Application Express 3.1.2.00.02
    thanks!!
    Roseline

  • Can u plz help me with the code to add BWART field to the DS:2LIS_04_P_COMP

    I want to add BWART field from AUFM table to the DS:2LIS_04_P_COMP.
    The AUFM table has key fields as :MBLNR,MJAHR and ZEILE.Can someone plz help with the code to put in the existing function module.I see that both 2LIS_04_P_COMP and AUFM have common field AUFNR process order.
    Plz help ASAP.

    I want to add BWART field from AUFM table to the DS:2LIS_04_P_COMP.
    The AUFM table has key fields as :MBLNR,MJAHR and ZEILE.Can someone plz help with the code to put in the existing function module.I see that both 2LIS_04_P_COMP and AUFM have common field AUFNR process order.
    Plz help ASAP.

  • Help needed for the JVMTI

    I am a new guy for jvmti, I am trying to use jvmti to trace the behaviour of the program. I have several questions:
    1. When I catch the step events, I can get the current location of the code, is it possible to map it into source code or byte code?
    2. If I want to be informed when the thread call sleep(), notify(), suspend(), resume(), what should I do?
    3. By the event-JVMTI_EVENT_MONITOR_CONTENDED_ENTERED, I can easily know when the threads call the primitive "entermonitor" ,however, how can I know when the thread call "exitmonitor"?
    4. I am also interested in the context switch of the threads. I can keep checking the step events to get the information. However, it is too costly. Is there any other more suitable way to do that?
    Thanks!

    Hi
    1) I don't think u can fill the data in the infocube with  out disturbing the data in the infocube , my better approach to fill the historical data for the infocube is
    i)Take the back up of the data in another infocube and run the full load.
    ii)Don't add the Enhanced fields in the infocube , just create the DS  for that enhanced with some primary field in the infocube and then create another infoprovider which has enhanced field and primary field in that infoprovider and on the multiprovider on the top of the infocube(old which has data ) and infoprovider ( which has enhanced field and primary field) and now create the creaete the report on the top of the multiprovider.
    Hope u understoodl
    3)U have to check which process type is taking long time(let say that DTP is taking long time , then u have to check whether there exists any complex routine , if yes optimize the code ) . This way u have to check for each and every process step which is taking long time.
    4) Can u explain 4th question with an example data.
    Hope u got it,
    Thanx & Regads,
    RaviChandra

  • Help needed for THE decision

    Hi everyone ☺
    I’m finally planning to start recording what I play, and after some hours of wandering on the web I found some interesting possibilities. Now what I need is to decide which one is more suitable for my needs, and here comes the moment for apple discussions
    Basically, I will record my own music one track/instrument at a time (I’m still not able to play more than one…and I dont’ want to spend 2.000$ to buy a 24-ins device just to record drum tracks), I’d like to have a software with built-in effects for guitar/bass/voice, integrated soundtrack possibilities (to play with video recordings), mixing options for both stereo and surround mixing, and I don’t want any card to be placed into my mac. Well, and obviously the sound quality must be pro-like…as anyone probably wants.
    So, here’s what I came up with:
    a) getting logic pro studio 8 and apogee duet
    b) getting pro tools m-powered and mbox 2
    c) getting one of the two softwares and a Monster iStudioLink Instrument cable and plug instruments directly into the mac
    Now, the questions are:
    if I can plug an instrument directly into my mac and control all parameters via one of the two softwares, what do tools like duet and mbox2 serve for?
    In the case this tools are useful [ ☺ ], why ☺ … and which is the couple software/hardware that can best suit my needs?
    I assume that every software has a proprietary file extension in which audio tracks are saved, so that it should be impossible to record an audio track with one software and edit it with another that has different functions/plugins (ex. from logic to pro tools, from pro tools to cakewalk sonar which I have on a pc etc.). Am I right, or is there any “standard”, non compressed high quality file type in which track can be saved and exported to be edited with different softwares?
    I know that from this post it may easily seem that I’m a hopeless digital idiot, but I swear the situation is not really that bad so no need for the kind of explanations with drawings like the ones you find in the “for dummies” guides lol so every experts’ advice will be greatly appreciated
    Neptune

    Thank you Bee Jay and Pancenter for the lighting-fast and useful answers
    now I am aware that an interface IS NEEDED lol (that means they are not produced without a reasons, are they?). I know Pro Tools is the industry standard but I don't like anyone/anything to tie me to their choices/interests (so that's why I was asking about Pro Tools, knowing that there's some sort of "hardware threat"). What I look for is just quality and if I understood what you both mean, as far as this aspect is concerned, Logic and Pro Tools are substantially comparable...isn't it? On the interfaces side, I already checked the Saffire ones (they seem quite good, and cross-platform use is definitely a plus), I will check the others mentioned and will let you know In fact, I didn't consider the "platform problem" but, as I wrote, I also own a PC with an Audigy 2 soundcard (midi/analog/optical/digital inputs/outputs and firewire port...not Madonna's private studio, but not as sad as Mac's little hole) and Sonar 6 Producer Edition, so that has been a really good point to ponder. And now, in the middle of this software/hardware battle...any personal suggestions based on tests/personal experience?

Maybe you are looking for

  • Invisible text in nested movieclip

    Hi every one! Is it somehow possible to display dynamic text that is first loaded into a container (movieclip) in one .swf which is then loaded into a container i another .swf? I've tried to do this but without any luck so far. Ive embedded both the

  • Bug in radix-tree.c causes kernel panic

    Hi, I've got a server that has been running Arch Linux for couple of weeks without any major problems. Kernel version is 2.6.18. Unfortunately I can't get a dmesg from the server, as it's crashed at the moment... Today the server started having weird

  • Color of a popuplov item !

    Hi, I have already post this question but nobody respond me! How can I change the color of a popuplov item depending of its value Thanks.

  • Can any one send functional specs

    hai every body, My name is ravi. can any one send functional specs.. and what is functional specs. how it is useful Awaiting for response. Thank u.

  • How to get channel values to store in a new one

    Hello, i have some empty channels, like Temperature. I also have a lot of TDM files, every TDM hat a temperature channel(only one data), so the temp datas from different TDM files should be collected to  the channel Temperature one by one. Is there a