Help needed to display my form,very urgent

i have a Main.java to display my tabs, then a PlayerTab.java which contains all the buttons, Create, Update, Delete and View and a CreatePanel.java which contain the form for adding new members.
The flow is like this when user click on the PlayerTab it will show the 4 buttons.Then when user click on the Create button, i want to show the create panel which contains the form which is inside CreatePanel.java.Then click on other buttons will show other forms. Please teach me how to hide the forms too thanks.
Main.java
import java.awt.Color;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Image;
import java.awt.Graphics;
import java.awt.Toolkit;
import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;
public class Main extends JFrame {
     // Constructor
     public Main(){
          setSize(800,600);
          setTitle("S-League Management System");
          setResizable(false);
          setVisible(true);
          Container frame=getContentPane();
          //centralise the screen
          Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
          Dimension frameSize = frame.getSize();
          frame.setLocation((screenSize.width - frameSize.width) / 2,
               (screenSize.height - frameSize.height) / 2);
          // create new tabbedPane object
          JTabbedPane tabbedPane = new JTabbedPane(){
               ImageIcon imageIcon = new ImageIcon("");
               Image image = imageIcon.getImage();
               public void paintComponent (Graphics g) {
                    g.setColor(new Color(220,220,220));
                    g.fillRect(0,0,800,74);
                    g.drawImage(image, 0, 4, this);
                    super.paintComponent(g);
          //tabbedPane.addTab(" Team Management ", null, new TeamTab());
          tabbedPane.addTab(" Player Registration ",null, new PlayerTab());
          //tabbedPane.setSelectedIndex(1);
          tabbedPane.setBorder(BorderFactory.createEmptyBorder(78,0,0,0));
          frame.add(tabbedPane);
     public static void main(String[] args) {
          Main main = new Main();
          main.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          main.toFront();
          main.show();     
PlayerTab.java
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class PlayerTab extends JPanel implements ActionListener{
     //JPanel mainPanel = new JPanel();
     JButton createbutton = new JButton("Create");
     JButton updateButton = new JButton("Update");
     JButton deleteButton = new JButton("Delete");
     JButton viewButton = new JButton("View");
     public PlayerTab() {
          this.setLayout(null);
          createbutton.setBounds(new Rectangle(10, 16, 79, 27));
          updateButton.setBounds(new Rectangle(10, 64, 79, 27));
          deleteButton.setBounds(new Rectangle(10, 113, 79, 27));
          viewButton.setBounds(new Rectangle(10, 161, 79, 27));
          this.add(createbutton, null);
          createbutton.addActionListener(this);
          this.add(updateButton, null);
          updateButton.addActionListener(this);
          this.add(deleteButton, null);
          deleteButton.addActionListener(this);
          this.add(viewButton, null);
          viewButton.addActionListener(this);
     public void actionPerformed(ActionEvent e)
          String cmd = e.getActionCommand();     
          if ("Create".equals(cmd))     
               JPanel createPanel = new CreatePanel();
               createPanel.show();
          }//close of if
     }//close of action perform
CreatePanel.java
import java.awt.*;
import javax.swing.*;
public class CreatePanel extends JPanel {
     JPanel createPanel = new JPanel();
     JLabel jLabel1 = new JLabel();
     JLabel jLabel2 = new JLabel();
     JLabel jLabel3 = new JLabel();
     JLabel jLabel4 = new JLabel();
     JLabel jLabel5 = new JLabel();
     JLabel jLabel6 = new JLabel();
     JLabel jLabel7 = new JLabel();
     JLabel jLabel8 = new JLabel();
     JLabel jLabel9 = new JLabel();
     JTextField nricNo = new JTextField();
     JTextField name = new JTextField();
     JRadioButton singleRadio = new JRadioButton();
     JRadioButton marriedRadio = new JRadioButton();
     JRadioButton divorcedRadio = new JRadioButton();
     JComboBox position = new JComboBox();
     JComboBox team = new JComboBox();
     JTextField address = new JTextField();
     JTextField salary = new JTextField();
     JTextField contactNo = new JTextField();
     JTextField dob = new JTextField();
     JButton submitButton = new JButton();
     JButton clearButton = new JButton();
     JButton retrieveButton = new JButton();
     public CreatePanel() {
          createPanel.setBounds(new Rectangle(108, 10, 690, 472));
          createPanel.setLayout(null);
          jLabel1.setText("NRIC:");
          jLabel1.setBounds(new Rectangle(14, 6, 41, 17));
          jLabel2.setText("Name:");
          jLabel2.setBounds(new Rectangle(14, 48, 41, 17));
          jLabel3.setText("Address:");
          jLabel3.setBounds(new Rectangle(14, 90, 57, 17));
          jLabel4.setText("Salary:");
          jLabel4.setBounds(new Rectangle(14, 132, 41, 17));
          jLabel5.setText("Contact No:");
          jLabel5.setBounds(new Rectangle(14, 174, 68, 17));
          jLabel6.setText("Marital Status:");
          jLabel6.setBounds(new Rectangle(14, 216, 83, 17));
          jLabel7.setText("Position:");
          jLabel7.setBounds(new Rectangle(14, 258, 58, 17));
          jLabel8.setText("D.O.B:");
          jLabel8.setBounds(new Rectangle(14, 300, 41, 17));
          jLabel9.setText("Team:");
          jLabel9.setBounds(new Rectangle(14, 342, 41, 17));
          nricNo.setText("jTextField1");
          nricNo.setBounds(new Rectangle(101, 3, 63, 21));
          name.setText("jTextField2");
          name.setBounds(new Rectangle(101, 44, 63, 21));
          singleRadio.setSelected(true);
          singleRadio.setText("Single");
          singleRadio.setBounds(new Rectangle(102, 210, 103, 25));
          marriedRadio.setText("Married");
          marriedRadio.setBounds(new Rectangle(221, 210, 103, 25));
          divorcedRadio.setText("Divorced");
          divorcedRadio.setBounds(new Rectangle(340, 210, 103, 25));
          position.setBounds(new Rectangle(102, 256, 128, 24));
          team.setBounds(new Rectangle(102, 337, 128, 24));
          address.setText("jTextField3");
          address.setBounds(new Rectangle(101, 87, 63, 21));
          salary.setText("jTextField4");
          salary.setBounds(new Rectangle(101, 130, 63, 21));
          contactNo.setText("jTextField5");
          contactNo.setBounds(new Rectangle(101, 171, 63, 21));
          dob.setText("jTextField6");
          dob.setBounds(new Rectangle(103, 299, 63, 21));
          submitButton.setText("Submit");
          submitButton.setBounds(new Rectangle(114, 409, 79, 27));
          clearButton.setText("Clear");
          clearButton.setBounds(new Rectangle(332, 409, 79, 27));
          retrieveButton.setText("Retrieve");
          retrieveButton.setBounds(new Rectangle(356, 0, 105, 27));
          createPanel.add(clearButton, null);
          createPanel.add(submitButton, null);
          createPanel.add(jLabel1, null);
          createPanel.add(nricNo, null);
          createPanel.add(jLabel2, null);
          createPanel.add(name, null);
          createPanel.add(jLabel3, null);
          createPanel.add(address, null);
          createPanel.add(jLabel4, null);
          createPanel.add(salary, null);
          createPanel.add(jLabel5, null);
          createPanel.add(contactNo, null);
          createPanel.add(jLabel6, null);
          createPanel.add(singleRadio, null);
          createPanel.add(marriedRadio, null);
          createPanel.add(divorcedRadio, null);
          createPanel.add(jLabel7, null);
          createPanel.add(position, null);
          createPanel.add(jLabel8, null);
          createPanel.add(dob, null);
          createPanel.add(jLabel9, null);
          createPanel.add(team, null);
          createPanel.add(retrieveButton, null);
          add(createPanel);

1. make createPanel an instance variable
public class PlayerTab extends JPanel implements
ActionListener{JPanel createPanel = null;
2. consistent with how you are coding, add the panel,
public void actionPerformed(ActionEvent e)
String cmd = e.getActionCommand();
if ("Create".equals(cmd))
{if( null == createPanel ) {
createPanel = new CreatePanel();
createPanel.setBounds( 20, 16, 300, 300 );
add( createPanel, null );
createPanel.show();
}//close of ifyou can also search for the specific panel, remove and then add a new instance rather then reusing the same createPanel once it is instantiated.

Similar Messages

  • Help needed for dynamic update form

    I could really use some advice - I've been asked to build a time tracking application (basically a timesheet) and I have a fair bit done but the part I am really struggling with is the best way to accommodate some of the specifications. I am NOT a programmer (I have some coldfusion experience but nothing really advanced) so I have not managed to sucessfully integrate the various methods I've found on the web so far. The database is created and so are all the queries, and I have also written a cfc to handle the drop-down menu logic needed but I don't really know how to integrate it with the form.
    Our production server has ColdFusion MX7 so all the great functionality in the CF8 examples I can't use.
    The issue is the user should ideally be able to add/edit/delete multiple rows at once- I like CFGRID, and the HTML version seems best. The main issue with the Flash version is the scrolling to get to the insert/delete buttons- I couldn't see how to get rid of that. A separate add and edit form could be ok depending on how easy it is to use.
    One problem I have is that I can't work out how to have default values with the grid (the userID which is a session variable, and the date which is constantly changing- there is a cfcalendar for the user to change date).
    The biggest hurdle is the related select drop-downs I need- it's not quite as simple as the city,state,postcode examples. For the first drop down the pick an option- and for only 2 of those options there is a second drop-down. Anything else and it stops there. For the second drop-down, there are 2 options, and depending on which one of these they pick the 3rd drop-down pulls a query from one or another table in the database (2 entirely different things). The three  options have different database tables. The main timesheet table just stores the id number from those tables (so I also need to display the names on the drop-down from the options tables not the number).
    I played with simple and complicated javascript and coldfusion solutions as well, but because it's a form to update records and also because of the above specs I just couldn't get anything to work right. I tried binding with the cfc and nothing would bind, plus I don't know how to make all happen without a page reload.
    Does anyone have any advice for the best approach to this? As I mentioned I've got tables, queries and even a cfc but I'm not too clear on how to put it all together properly within the constraints of MX7.
    PS I also can't post a lot of code because of where I work- I know that's not helpful but am looking for the best approach to this, then I can work on the details. Right now I am jumping from solution to solution and not getting anywhere.

    Well, a lot of code has come and gone because I couldn't make it work, where I'm currently at is:
    <cfform name="updateform" id="updateform" action="#CurrentPage#?#CGI.QUERY_STRING#">
      <cfgrid name="MainData" height="400" insertbutton="add" deletebutton="remove" query="getMainData" insert="yes" delete="yes" rowheight="20"  selectmode="edit" format="html">
      <cfgridcolumn name="id" display="no">
    <cfgridcolumn name="userID" display="no">
    <cfgridcolumn name="entrydate" display="no">
    <cfgridcolumn name="activityID" >
    <cfgridcolumn name="typeID">
    <cfgridcolumn name="projectID" values="#ValueList(getProjects.id)#" valuesdisplay="#ValueList(getProjects.name)#">
    <cfgridcolumn name="time" width="10">
    <cfgridcolumn name="comment" width="150">
    </cfgrid>
    <cfinput type="hidden" name="entrydate" value="#Session.username#">
    <cfinput type="hidden" name="entrydate" value="#editdate#">
    <cfinput name="update" type="Submit" value="Update">
    </cfform>
    ** for some reason getProjects.name doesn't work and causes an error. I haven't worked out how to get the default inputs for the date and user ID to work either. I also tried binding and a flash form somewhere along the way.
    ** the CFC is below, #ds# didn't work and I had to put in the actual DSN name, not sure why, but anyway this is the logic of the thing. Ideally I would like to use this logic with the cfgrid, but I'm not sure if that is possible? It seems like it would be the most user friendly approach.
    The CFC so far is:
    <cfcomponent>
       <cffunction name="getActivities" access="remote" returnType="query">
            <cfquery name="getActivities" datasource="#ds#">
    SELECT * FROM timesheet_activities
    </cfquery>
            <cfreturn getActivities>
        </cffunction>
        <cffunction name="getTypes" access="remote" returnType="query">
        <cfargument name="Activity" type="any" required="true">
        <cfif ARGUMENTS.Activity EQ "">
            <cfset getType = "">
        <cfelse>
            <cfquery name="getTypes" datasource="#ds#">
            SELECT * FROM timesheet_type
            </cfquery>
        </cfif>
        <cfreturn getTypes>
        </cffunction>
        <cffunction name="GetProjects" access="remote" returnType="query">
        <cfargument name="Activity" type="any" required="true">
        <cfargument name="Type" type="any" required="true">
        <cfif ARGUMENTS.Activity EQ "" OR ARGUMENTS.Type EQ "">
            <cfset LstProjects = "">
        <cfelseif ARGUMENTS.Activity EQ "1" OR "3">
        <cfquery name="getProjects" datasource="#ds#">
    SELECT id,name FROM projectsa
    WHERE completed = 'false'
    </cfquery>
    <cfelse>
    <cfquery name="getEProjects" datasource="#dse#">
    SELECT id,name FROM projectsb
    WHERE statusID = '6'
    </cfquery>
        </cfif>
        <cfreturn getProjects>
        </cffunction>
    </cfcomponent>
    Any attempts to actually use the cfc didn't work. I tried to use it with a normal html update form and got the message- failed to bind, Activity didn't exist. I also tried to bind it to a flash grid. The argument for Activity needs to come from the drop-down Activity type selected. Maybe I'm missing something.
    ETA:
    just moved everything to the live MX7 server (because my dev server is Coldfusion8) and I get the following:
    Attribute validation error for tag CFGRID. The tag does not allow the attribute(s) BINDONLOAD,BIND.
    Does this mean I definitely can't use the CFC with the cfgrid on MX7? Or is there a way to do it?
    Any advice would be greatly appreciated.

  • Help plz.... its very urgent... plz

    Hi
    This is very urgent ….
    In a table:
    Select * from source_table;
    Datagrp_Name Query
    DG1 select emp_name,Emp_id from emp (Emp table has emp_name ,emp_id and dept_id)
    DG2 select dept_name from dept (dept table has dept_id and deptname)
    Column name is: (Datagrp_Name,Query)
    There r 2 records in the table
    Now I want to load the data in the target table:
    Select * from Target;
    0 records
    desc target; (it has 3 fields)Emp_name (insert the emp_name from emp)
    Emp_id ((insert the emp_id from emp)
    Dept_name (insert dept_name from dept)
    Now I want to load data in this target table from emp and dept
    Generally we will use: select emp_name,emp_id,dept_name from emp,dept where e.dept_id=d.dept_id;
    But in this case as select query is there in the source table
    So, I want the logic how to proceed pa….
    Can anyone help me in this/

    Hi,
    >>But in this case as select query is there in the source table
    I think you need to know about EXECUTE IMMEDIATE statement.
    take a look below:
    SGMS@ORACLE10> create table query (text varchar2(50));
    Table created.
    SGMS@ORACLE10> insert into query values ('select 1000 from dual');
    1 row created.
    SGMS@ORACLE10> commit;
    Commit complete.
    SGMS@ORACLE10> select * from query;
    TEXT
    select 1000 from dual
    SGMS@ORACLE10> set serveroutput on
    SGMS@ORACLE10>
    SGMS@ORACLE10> begin
      2  declare
      3    sql_cur varchar2(50);
      4    out varchar2(50);
      5  begin
      6    select text into sql_cur from query;
      7    execute immediate (sql_cur) into out;
    8 dbms_output.put_line (sql_cur);
    9 dbms_output.put_line (out);
    10  end;
    11  end;
    12  /
    select 1000 from dual
    1000
    PL/SQL procedure successfully completed.See if this link below help you:
    http://www.dbasupport.com/oracle/ora9i/execute_immediate.shtml
    Cheers

  • Chinese charecter display in Discoverer-Very Urgent

    Hi,
    I have a column which holds chinees values in database.
    I can see some junk charecters instead of chinees charecters when I pull this column at report
    Are there any settings to be done?
    Could you please help !! This is Very urgent
    Thanks Much
    Sridhar

    Hi,
    You need the information stored in the database in a double-byte characterset (UTF-8, UTF-16,etc).
    you also need:
    The correct language resource files installed (has to be done at the initial install)
    The correct fonts installed on the server and client (for multi-byte characters especially)
    like Alban
    The correct locale/language set in the client.
    The followiing metalink documents should point you in the right direction
    434135.1 How To Find Language (NLS) and Character Information For Oracle Business Intelligence Discoverer 10g (10.1.2)
    340944.1 Chinese Characters Appear As Inverted Question Marks in Plus and Viewer
    Regards,
    Steve

  • Help need to display record in same line

    Hi all,
    Correct output is not coming. 
    Movement type u2018261u2019 is material of type raw material.
    Movement type u2018101u2019 is material of type finished prodcut.
    I need to display finished product material details & beside that raw materials in the same line .
    Help me in this regard . I am watching this thread.
    DATA : BEGIN OF  i_final OCCURS 0,
              aufnr LIKE afko-aufnr,
              gstrp LIKE afko-gstrp,
              gltrp LIKE afko-gltrp,
              mblnr LIKE mseg-mblnr,        "mat doc.no
              bwart LIKE mseg-bwart,        "movement type
              matnr LIKE mseg-matnr,
              werks LIKE mseg-werks,
              lgort LIKE mseg-lgort,
              charg LIKE mseg-charg,
              menge LIKE mseg-menge,
              meins LIKE mseg-meins,
           END OF i_final.
    DATA : BEGIN OF i_final2 OCCURS 0,
              aufnr LIKE afko-aufnr,
              gstrp LIKE afko-gstrp,
              gltrp LIKE afko-gltrp,
              mblnr LIKE mseg-mblnr,        "mat doc.no
              bwart LIKE mseg-bwart,        "movement type
              matnr LIKE mseg-matnr,
              werks LIKE mseg-werks,
              lgort LIKE mseg-lgort,
              charg LIKE mseg-charg,
              menge LIKE mseg-menge,
              meins LIKE mseg-meins,
              mqty1 LIKE mseg-menge,        "MILD STEEL SCRAP
              mqty2 LIKE mseg-menge,        "PIG IRON
              mqty3 LIKE mseg-menge,        "FOUNDRY RETURN NORMAL
              mqty4 LIKE mseg-menge,        "CALCINED PETROLEUM COK
              mqty5 LIKE mseg-menge,        "FERRO SILICON
              mqty6 LIKE mseg-menge,        "FERRO MANGANESE
              mqty7 LIKE mseg-menge,        "COPPER SCRAP
              prueflos LIKE qals-prueflos,            "inspection lot number
              merknr LIKE qamr-merknr,                "inspection characteristic no
              kurztext LIKE qamv-kurztext,            "short text of characteristic
              qc_c  LIKE qamr-original_input,
              qc_mn LIKE qamr-original_input,
              qc_ni LIKE qamr-original_input,
           END OF i_final2.
    DATA : BEGIN OF i_final3 OCCURS 0,
               aufnr LIKE afko-aufnr,
               gstrp LIKE afko-gstrp,
               gltrp LIKE afko-gltrp,
               mblnr LIKE mseg-mblnr,        "mat doc.no
               bwart LIKE mseg-bwart,        "movement type
               matnr LIKE mseg-matnr,
               werks LIKE mseg-werks,
               lgort LIKE mseg-lgort,
               charg LIKE mseg-charg,
               menge LIKE mseg-menge,
               meins LIKE mseg-meins,
               mqty1 LIKE mseg-menge,        "MILD STEEL SCRAP
               mqty2 LIKE mseg-menge,        "PIG IRON
               mqty3 LIKE mseg-menge,        "FOUNDRY RETURN NORMAL
               mqty4 LIKE mseg-menge,        "CALCINED PETROLEUM COK
               mqty5 LIKE mseg-menge,        "FERRO SILICON
               mqty6 LIKE mseg-menge,        "FERRO MANGANESE
               mqty7 LIKE mseg-menge,        "COPPER SCRAP
               prueflos LIKE qals-prueflos,            "inspection lot number
               merknr LIKE qamr-merknr,                "inspection characteristic no
               kurztext LIKE qamv-kurztext,            "short text of characteristic
               qc_c  LIKE qamr-original_input,
               qc_mn LIKE qamr-original_input,
               qc_ni LIKE qamr-original_input,
            END OF i_final3.
    DATA : indx TYPE i,
           indx2 TYPE i.
    LOOP AT i_final.
        i_final2-aufnr = i_final-aufnr.
        i_final2-gstrp = i_final-gstrp.
        i_final2-gltrp = i_final-gltrp.
        i_final2-mblnr = i_final-mblnr.
        i_final2-bwart = i_final-bwart.
        i_final2-matnr = i_final-matnr.
        i_final2-werks = i_final-werks.
        i_final2-lgort = i_final-lgort.
        i_final2-charg = i_final-charg.
        i_final2-menge = i_final-menge.
        i_final2-meins = i_final-meins.
        APPEND i_final2.
        CLEAR i_final2.
      ENDLOOP.
      LOOP AT i_final2.
        indx = sy-tabix.
        IF i_final2-bwart = '261'.
          LOOP AT i_final WHERE aufnr = i_final2-aufnr.
         IF sy-subrc EQ 0.
            IF i_final2-matnr = 'MSCRAP'.
              i_final2-mqty1 = i_final-menge.
            ELSEIF i_final2-matnr = '100072'.    "PIG IRON
              i_final2-mqty2 = i_final-menge.
            ELSEIF i_final2-matnr = 'RETFDYNORM'.  "FOUNDRY RETURN NORMAL
              i_final2-mqty3 = i_final-menge.
            ELSEIF i_final2-matnr = '100062'.      "CALCINED PETROLEUM COK
              i_final2-mqty4 = i_final-menge.
            ELSEIF i_final2-matnr = '100063'.      "FERRO SILICON
              i_final2-mqty5 =   i_final-menge.
            ELSEIF i_final2-matnr = '100065'.      "FERRO MANGANESE
              i_final2-mqty6 =  i_final-menge.
            ELSEIF i_final2-matnr = '100070'.
              i_final2-mqty7 =  i_final-menge.
            ENDIF.
          ENDLOOP.
         ENDIF.
        ENDIF.
        READ TABLE i_qals WITH KEY aufnr = i_final2-aufnr.
        IF sy-subrc EQ 0.
          i_final2-prueflos = i_qals-prueflos.
        ENDIF.
        IF i_final2-bwart = '101'.
          LOOP AT i_results WHERE prueflos = i_final2-prueflos.
         IF sy-subrc EQ 0.
            i_final2-merknr = i_results-merknr.
            i_final2-kurztext = i_results-kurztext.
            IF i_final2-kurztext = 'C'.
              i_final2-qc_c = i_results-original_input.
            ELSEIF i_final2-kurztext = 'Mn'.
              i_final2-qc_mn = i_results-original_input.
            ELSEIF  i_final2-kurztext = 'Ni'.
              i_final2-qc_ni = i_results-original_input.
            ENDIF.
          ENDLOOP.
        ENDIF.
        MODIFY i_final2 INDEX indx.
       ENDIF.
    ENDIF.
      ENDLOOP..
      LOOP AT i_final2.
        i_final3-aufnr = i_final2-aufnr.
        i_final3-gstrp = i_final2-gstrp.
        i_final3-gltrp = i_final2-gltrp.
        i_final3-mblnr = i_final2-mblnr.
        i_final3-bwart = i_final2-bwart.
        i_final3-matnr = i_final2-matnr.
        i_final3-werks = i_final2-werks.
        i_final3-lgort = i_final2-lgort.
        i_final3-charg = i_final2-charg.
        i_final3-menge = i_final2-menge.
        i_final3-meins = i_final2-meins.
        i_final3-prueflos = i_final2-prueflos.       "inspection lot number
        i_final3-merknr = i_final2-merknr.                "inspection characteristic no
        i_final3-kurztext = i_final2-kurztext.            "short text of characteristic
        i_final3-qc_c = i_final2-qc_c.
        i_final3-qc_mn = i_final2-qc_mn.
        i_final3-qc_ni = i_final2-qc_ni.
        APPEND i_final3.
        CLEAR i_final3.
      ENDLOOP.
      LOOP AT i_final3 WHERE bwart = '101'..
        indx2 = sy-tabix.
        LOOP AT i_final2 WHERE aufnr = i_final3-aufnr AND
                               bwart = '261'.
          IF i_final3-bwart = '101'.
            i_final3-mqty1 = i_final2-mqty1.
            i_final3-mqty2 = i_final2-mqty2.
            i_final3-mqty3 = i_final2-mqty3.
            i_final3-mqty4 = i_final2-mqty4.
            i_final3-mqty5 = i_final2-mqty5.
            i_final3-mqty6 = i_final2-mqty6.
            i_final3-mqty7 = i_final2-mqty7.
          ENDIF.
        ENDLOOP.
        MODIFY i_final3 INDEX indx2.
      ENDLOOP.
    I am displaying i_final3 with alv
    Edited by: uday madhav chebrolu on May 20, 2008 3:22 PM

    863765 wrote:
    Is there any jsp code to display in same page rather than using ajaxJSPs are on the server, so any "JSP code" will be executed on the server.
    The client has HTML and javascript. The only way to not have the client move to a new page is to use something like Ajax.

  • Help needed- Reg: Display page number in SQL Reports

    Hi,
    I need to display page number in " page no: X of Y " format where X is current page & Y is total number of pages. Now I am able to display only the current page using ' sql.pno '. but not able to display in ' X of Y ' format.
    Any inputs in this regard will be helpful.
    Thanks & Regards,
    Anilkumar.

    Hello Anil,
    If you have the above requirement for Oracle Reports then follow the steps:
    1.In the Paper Layout view or Paper Design view, choose InsertPage Number.
    2. In the Insert Page Number dialog box, choose from the list the location for the page number.
    3.Click the desired page number format: Page Number Only or Page Number and Total Pages.
    Cheers,
    Suresh

  • Help needed to display character vaiable in currency format

    Hi Friends
    In a SAP Script I am passing a currency field to the subroutine as an i/p parameter and since it gets converted to character format in subroutine because of 'itcsy' , ihave deleted the trailing zeroes and decimal points from the field and performed calculations on the field, now i need to pass this char field back to SAP script but i need to display that field in currency format with commas and decimal points in the script...how do i do that???
    Thanks
    Vishal.

    Hi Vishal,
    When you pass the currency amount into the perform, no need to remove the trailing zeros and the decimal point.
    Only thing you need to remove is the comma seperator as it gives a runtime error during calculation.
    To convert it back to the format with comma, write the below command:
    WRITE v_Item_total currency '2' to v_item_char.
    CONDENSE v_item_char.
    Here v_item_total is a number which is converted to comma seperated number and passed to char variable.
    This char variable is then passed to the SCRIPT.
    regards,
    Gaurav.

  • Need help to disable input selection-screen - very urgent

    Hi SAP experts,
    I have a requirement where in I need to disable ( Grey out ) the input fileds on the selection screen .
    My problem is as I am using ABAP query I am not able to use any events ( AT SELECTION-SCREEN OUTPUT ).
    My selection screen looks like this
    MATERIAL NUMBER ( SELECT-OPTIONS)
    MATERIAL TYPE ( PARAMETERS )
    Now I want to add one more check box below the above fields on the selection-screen.When I click on the check-box,the MATERIAL NUMBER  must be greyed out and MATERIAL TYPE should remain the same.
    Please let me know the coding for the same. All answers would be rewarded.
    Thanks in Advance,
    Suresh.

    Hi,
    Check out these codes.
    1.
    TABLES : mara, makt.
    parameter: p_matnr type mara-matnr,
               p_maktx type makt-maktx.
    at selection-screen output.
    select single maktx
    from makt
    into p_maktx
    where matnr = p_matnr
    and spras = 'EN'.
    loop at screen.
      if screen-name = 'P_MAKTX'.
        screen-input = 0.
        modify screen.
      endif.
    endloop.
    2.
    TABLES : mara, makt.
    TYPES:BEGIN OF tp_maktx,
          maktx TYPE makt-maktx,
          END OF tp_maktx.
    DATA:t_maktx TYPE STANDARD TABLE OF tp_maktx,
         wa_maktx TYPE tp_maktx.
    SELECT-OPTIONS: s_matnr FOR mara-matnr.
    SELECT-OPTIONS: s_maktx FOR makt-maktx.
    INITIALIZATION.
      REFRESH s_maktx[].
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-name = 'S_MAKTX-LOW' or screen-name = 'S_MAKTX-HIGH'.
          screen-input = 0.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
      REFRESH s_maktx[].
      if s_matnr[] is not initial.
      SELECT maktx FROM makt
      INTO TABLE t_maktx
      WHERE matnr IN s_matnr
      AND spras = 'EN'.
      endif.
      LOOP AT t_maktx INTO wa_maktx.
        s_maktx-low = wa_maktx-maktx.
        APPEND s_maktx.
        CLEAR:wa_maktx.
      ENDLOOP.
    3.
    TABLES : mara, makt.
    parameter p_cb1 type c as checkbox.
    parameter p_cb2 type c as checkbox.
    parameter p_cb3 type c as checkbox.
    initialization.
    loop at screen.
    if screen-name = 'P_CB3'.
    screen-invisible = 1.
    modify screen.
    endif.
    endloop.
    at selection-screen output.
    *loop at screen.
    *if screen-name = 'P_CB3'.
    *screen-invisible = 1.
    *modify screen.
    *endif.
    *endloop.
    loop at screen.
    if p_cb1 = 'X'.
      if screen-name = 'P_CB2'.
      screen-invisible = 1.
      modify screen.
      endif.
      if screen-name = 'P_CB3'.
      screen-invisible = 0.
      modify screen.
      endif.
    endif.
    if p_cb2 = 'X'.
      if screen-name = 'P_CB3'.
      screen-invisible = 1.
      modify screen.
      endif.
      if screen-name = 'P_CB1'.
      screen-invisible = 0.
      modify screen.
      endif.
    endif.
    if p_cb3 = 'X'.
      if screen-name = 'P_CB1'.
      screen-invisible = 1.
      modify screen.
      endif.
      if screen-name = 'P_CB2'.
      screen-invisible = 0.
      modify screen.
      endif.
    endif.
    endloop.
    Reward if helpful..
    Regards.

  • I need to upgrade my ram very urgent plz help !!!

    I have MacBook Pro 13 inch early 2011, i need to upgrade my ram, right now i am using 4gb ram, i searched on apple support it says max 8 gb ram and base 4gb , but if i install 8 + 8 = 16 gb ram will it work perfectly ?

    Yes it will work and is compatible with your make and model computer early 2011,13", 2.7 ghz,  i7 MacBook Pro I believe what Niel meant by this satement ~Yes, unless there's a problem with the specific modules you get; the computer supports 16GB.~  Was if the new modules eg 2x8 are in themselves a problem or defective. Hope this helps you somewhat

  • Help reqd to display the FORM without Print method.

    Hi all,
    I did one gate pass form and i want to view the form in my selection screen or output screen(just in monitor) as  a display by giving one Z-code.
    i.e, we can view the form thru Print preview...the same preview, i want to display after i give my parameter in the selection screen.
    For example.ZGPOUT if i enter as a t-code.
    it should ask my Gate Pass number in the Selection screen...if its right then my Form will come out to the display screen. (instead of going by Print method).,
    Pls post ur comment and reply me with examples,if possible.
    thanks & regards
    sankar.

    Hi Sankar,
    Its bit ambigious......but logic is very simple...........
    1. Create a Z.....report
    2. Inside this create your selection parameters
    3. Do your logic for the selection screen(use list box option or F4 help) to ask for the gate pass number.
    4. Call the required form. (For print preveiw assign 'X' to tdpreview of ITCPO)
    5. Finally assign your print program to the tcode which will finally do rest of the coding.
    Thanks,
    Mark

  • Help needed in printing   interactive form

    Hi Friends
    I just developed an application  which access  ECC
    can any one guide me to print  the output pdfform
    i have opened result interactive form and placed a print button ...next which script i should use? formcalc  or
    java script..since my application is a java webdynpro .
    can  you give me the piece of code for that..formcalc
    already got the script..but  i dont know the exact java script for  printing.
    plz help me in this issue
    vivek chandra

    Hi Raja
    Thanks for that stuff..very helpful
    i  have 3 inputfields on one of my interactive form
    i was asked to fill those fileds  with predefined data
    so that once the app is run, input form fields should
    dispaly the predefiend values.in wdinit method i could
    do that using wdContext.currentelement.setName("xxx");
    i have 3 fields..three are text fields.from the third field need to eneter the date,its a PO Bapi..i did context binding ..i could drag the input  fields..
    but when iam trying to set predefiend date for the
    3rd field..its not accepting it..since it is of type
    date.. do i need to create any data type for the 3rd field in javadictionary????plz guide me in this issue
    regards
    vivek chandra

  • Help needed in distributing the form

    Hello All ,
    I have a LiveCycle form which has 6-8 Pages.The completed document needs to be protected after distributing so that it cannot be reproduced, but allow us to add, change, edit delete contents as required and especially to populate what is now marked as protected. How to do this in the best way. One thing I have very less idea about distributing a form. Can anybody please help regarding this ?
    Thanks.
    Bibhu.

    You can use JavaScript to protect all form fields.
    Bundled with a password you can design a workflow wich allows you to remove the rotection when needed.
    Here's an example:
    http://thelivecycle.blogspot.com/2010/02/mail-xfa-forms-as-protected-uneditable.html

  • Help needed finding display port (NOT mini) to VGA adapter please!

    I bought a macbook in 2009 and urgently need a VGA adapter (female) but I don't have a mini display port! Help! I can't seem to find an adapters that suit macbooks before the mini dislay port was brought out.
    Thanks
    Kirsten

    Welcome to Apple Support Community.
    If you have an earlier MacBook 2006-early 2009, it has a mini-DVI port.
    http://store.apple.com/us/product/M9320G/A/apple-mini-dvi-to-vga-adapter
    Search for 'mini DVI to VGA adapter' online, and you will find many sources for an adapter compatible with your MacBook.

  • Help needed with PCR Interactive Forms.

    Hello,
    We are trying to get a prototype system going to show HR some WebDynpro and Adobe Forms technology. I'm focusing on our PCR's right now. I have fixed one problem by configuring the ABAP WAS in the java visual admin http destinations. I now want to take our ISR's and map them to adobe forms in QISRSCENARIO. I am looking at the available forms and wish to configure.
    - Transfer an Employee out of my Org - ISR_FORM_SPTR - The inactive SPTR form displays the following "The creation of this form has not yet been completed. Therefore, you cannot use the form at this time. The finished form will be available with the next release.SAP AG "
    - Move an Employee to a Vacancy in My Org - ISR_FORM_???? - This may be some old custom development on our part because I'm seeing nothing close in ISR forms.
    - Change an Employee in Current Position - ISR_FORM_SPPD - Displays form after a popup shows soem formcalc errors.
    - Separate an Employee - ISR_FORM_SPSD - Displays form
    - Change Working Time of an Employee - ISR_FORM_SPWT - Displays form after a popup shows soem formcalc errors.
    This is just a prototype so I'm not lookign to mesh all out pcr customizations. I do have some questions though.
    I can't seem to find anything telling me what adobe forms are delivered for a particular version of SAP. We are on ECC5.0.
    Is a form marked inactive simply not delivered? If not how do I activate?
    Basically we'll want to be using adobe forms wherever delivered for ECC50. Any pointers to documentation on what's delivered vs. what I'm seeing in QISRSCENARION would be greatly appreciated as well as any general docs on working with, modifying forms.
    Thanks,
    Doug

    Where to start with scripting:
    http://www.adobe.com/devnet/livecycle/articles/lc_designer_scripting_basics/lc_designer_scripting_basics.pdf
    http://help.adobe.com/en_US/livecycle/es/FormCalc.pdf
    In first doc, check the last chapter for the most illustrative examples.
    You need to be able to get the value of the radio (var help = this.rawValue), use the condition (if (){} else {} )and set the value (this.rawValue = "").
    Otto

  • Help Needed with Adobe Interactive Forms scripts

    Hi Gurus,
    I have an Interactive form in which I have 5 radio buttons. Upon selecting any one of the radio buttons, some values (Ex : If user selects the first radi button 20 should be displayed in the text box. If he selects the second 21 should be displayed in the textbox.). In my script, I need to capture the checked value of the radio buttons ( They  are grouped) and how I should reference radio button on the form/subform
    Regards,
    Srini

    Where to start with scripting:
    http://www.adobe.com/devnet/livecycle/articles/lc_designer_scripting_basics/lc_designer_scripting_basics.pdf
    http://help.adobe.com/en_US/livecycle/es/FormCalc.pdf
    In first doc, check the last chapter for the most illustrative examples.
    You need to be able to get the value of the radio (var help = this.rawValue), use the condition (if (){} else {} )and set the value (this.rawValue = "").
    Otto

Maybe you are looking for

  • Appropriation Request , Approval

    Hi All, required help in mapping 1 senario. 1. AR passes from the approval phases depending upon the value and the data entered.. 2. When the AR is approved the Approval will  differ from the planed value , how to map this senario with the Approval a

  • Where Did My Contacts App Go?

    Hello everyone, I am having an interesting issue with the Contacts application on my Mac Mini. This app used to work fine. However, sometime in the past month-after setting up iCloud for Calendar and Reminders-the Contacts application simply disappea

  • Missing "Evdev-managed keyboard" option in KDE

    I've been trying to solve some outstanding keyboard config issues. Right now, I have some keys which don't do anything and which don't even seem to be properly recognised by the X server. (Judging by output using xev.) I'm using KDE and I found the r

  • Mashups in Analysis Tab doesn't work in HTML mode

    Hi, We have few BW HTML mashups enabled on cloud. We tried to put all of them under Account details screen and they load properly in HTML mode. But all these reports are not related to Accounts and hence we decided to put them under "ANALYSIS" workce

  • ABAP Code to get Production Order Quantity for a material-Status REL,CRTD

    hi all, I am new to SAP. I am stuck with a problem while writing a abap code for getting all the production order quantities for a material with System Status REL and CRTD. Please help me out. This is what i tried to do.   IF t_mat[] IS NOT INITIAL.