Help needed in passing values

Hi all,
I'm new to jsp. So if possible pls help me. I have a page(say first.jsp) which has a link to another jsp(say sec.jsp). In sec.jsp i'm setting a value in session. When i'm clicking a use/done button in sec.jsp...I want to come back to first.jsp and use the values in session. How to do this?

Hi,
I'm doing what u've said. Now I don't have problem in retrieving the value which i set in sec.jsp.. The problem i'm facing is that.. I'm having a screen which has a label displaying the value i retrieved.. which is not showing the correct value even though it is set in session.. So when i'm coming back..I want first.jsp to be refreshed automatically.. Thanks a lot for both of you guys for helping me out..
Could u give me a solution for this new problem? i.e how to refresh first.jsp automatically when i come back from sec.jsp...or is there any way to refresh the parent window..

Similar Messages

  • Re: Help needed in passing values from workflow to Approve Forms

    Dear Experts,
    how do I pass values from a workflow to a step (Form) - approve form?
    I am using a customized table structure as my data source (FORMCONTAINERELEMENT) but am stuck on how to access the data when i get to to the screen painter's flow logic... What am i missing? Can you give me a step by step example. the ones i see on the net are input fields that update the screen... nothing that shows value being passed from the outside.
    I need to pass an exisitng value in the workflow into the form for approval of the the assigned agent.
    Please help!!
    Thank you.

    Hello !
             Create a method just before the form step.This method should populate the values for the fields maintained in the form.
             Pass the values populated from this method to your customized table structure (data source).In other words, you have to pass all the values to the workflow container.
            To the step, pass this workflow container by binding.In the control tab of form step, you have to do the binding.
    Regards,
    S.Suresh

  • I need to pass value for Actual GI date field in VL01N t code, I am using BAPI_DELIVERYPROCESSING_EXEC. can any one tell me how can i pass vaule ?

    I need to pass value for Actual GI date field in VL01N t code, I am using BAPI_DELIVERYPROCESSING_EXEC. can any one tell me how can i pass vaule ?

    Hi Abdul,
    Sorry for my unprecise answer, but you talk about a tcode, but you're using a BAPI Call. Maybe you want to call the transaction in batch mode?
    http://help.sap.com/saphelp_erp60_sp/helpdata/de/fa/09715a543b11d1898e0000e8322d00/content.htm
    Regards,
    Franz

  • IN operator:- multiple value :- need to pass values in bundles

    Hello Everybody
    I am facing a strange problem . I got a requirement in which i need to pass around 55,000 values in the IN operator of the select query. It looks like that select query has a limitation of 2000 values. I planned to split the values based on the package of 2000 entries. this is working fine when we have just one IN operator.
    But how to make bundles when we have more than one like 2 or 3 IN operators with the values more than 2000 entries.
    eg.select vbeln matnr from vbap where vbeln in (1000, 2000, 3000, 4000......) and matnr in (11,22,33,44,...)
    and vbeln > 002234255 or matnr <> '55665.
    Please help me in breaking the query.
    Thanks in advance
    Regards,
    Khushboo

    Hi,
      You can do  one thing  .
    1)   First there is no limitation to have values  in Ranges  .
          but there  is limitation  when passing ranges to  SQL query  i.e in Operator  .
         Which will result in Dump  .
    2)  So in order to avoide that   you can have your values  in Ranges  .
    3) Then from SQl query select all raw data   whithout using ranges  .
    4) then now use that internal table in which you have selected raw data  .
    5) now you can use that ranges in loop endloop for internal table condition and filter those data .
      But see while comparing  fields  there should be compatibility  .
    tables : mara .
    TYPES  :  begin of w_mara ,
                      bismt type MARA-BISMT  ,
                    end of w_mara .
    TYPES : BEGIN OF W_BISMT  .
      INCLUDE STRUCTURE MARA .
      TYPES : END  OF W_BISMT  .
    data : it_mara type STANDARD   table OF W_MARA WITH HEADER LINE  .
    data : it_mara1 type STANDARD   table OF W_MARA WITH HEADER LINE  .
    DATA : IT_BISMT TYPE STANDARD TABLE OF W_BISMT  WITH HEADER LINE  .
    DATA : IT_BISMT1 TYPE STANDARD TABLE OF W_BISMT  WITH HEADER LINE  .
    RANGES : P_BISMT FOR  MARA-BISMT  .
      SELECT   BISMT FROM MARA
      INTO CORRESPONDING FIELDS OF TABLE  IT_MARA
      where bismt  is not null  .
    delete it_mara where bismt  is initial .
    SELECT  * FROM MARA
    INTO CORRESPONDING FIELDS
    OF TABLE IT_BISMT.
    LOOP AT IT_BISMT where bismt  in p_bismt   .
    move-corresponding  it_bismt to it_bismt1 .
    append it_bismt1 .
    clear it_bismt1 .
    ENDLOOP.
    Edited by: Rob Burbank on Sep 24, 2010 9:09 AM

  • I need to pass values dynamically into schedular

    I need to pass the values into the schedular dynamically like 2 hours ,4 hours ,i minute and soon ...

    Hi,
    If you want the job to be created automatically, you can create a master job which checks every few minutes and creates another job on the fly if needed.
    I don't understand the part about "sending the messages to the admin" but the body of the job can certainly send e-mail or AQ messages.
    Hope this helps,
    Ravi.

  • Help Needed in passing parameter to cryst report

    Hello everyone, I am trying to create a report for a single record and as such am trying to pass parameters to a crystal report but I am not sure exactly how to do this. This is my own method that I am employeeing. I do not want to create a data table and put all the info I need in there and then base a report off of it. I do not want to deal with loops and arrays right now. I just want to pass for example parameter JuvenileID = 1 to my crystal report, then create a command under the database expert and set the parameter for my command to the parameter I passed my crystal report. How would I go about in doing this? I am using VS 2010 C#. This is a windows application. I have a dataentry form that is already populated with the info needed for the report. I just need to pass all the controls.text values to the report and populate it that way.

    I'm not sure if I fully understand the issue, but since you have all the data you need in a data entry form that is already populated, why don't you simple create an ADO .NET Dataset and pass that to the report? Much easier to implement, faster execution with the small amount of data you have and less code.
    Dataset sample app is here:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
    More info on datasets is here:
    [1511438 - How to use datasets to pass data to crystal reports|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533313331333433333338%7D.do].
    - Ludek

  • Need to pass values to Internal table in Web dynpro ABAP

    Hi all,
    I need to pass table values for the below FM in web dynpro.
    CALL FUNCTION 'ZFMHR_RWF'
      TABLES
        PB0006        = 
    How do we declare and use Internal tables in WEBDYnpro.
    Regards,
    Vijayakumar S.

    hi,
    u mighnt need to show the internal table value in some table UI in the WebDynpro ABAP. So u can use the method bind_table for the same to bind ur context node with the internal table values.u can declare the internal table in the same  way as u do in the normal ABAP.
      DATA :itab TYPE STANDARD TABLE OF ztable.
    // itab is my internal table which can be of either ztable or standard table type
    now u can use the code wizrd(control+F7) and use the method bind_table .
      DATA: lo_nd_cn_node TYPE REF TO if_wd_context_node,
                lo_el_cn_node   TYPE REF TO if_wd_context_element,
               ls_cn_node        TYPE wd_this->element_cn_node.
    *     navigate from <CONTEXT> to <CN_NODE> via lead selection
      lo_nd_cn_node = wd_context->get_child_node(
      name = wd_this->wdctx_cn_node ).
      lo_nd_cn_node->bind_table( itab ).
    // where cn_node is the context node which is bind to ur table UI and itab is the value which is populated from ur FM
    regards,
    Amit

  • Help needed in passing parameters between custom pages

    Hi,
    Thanks in advance for your help gurus. I am developing 2 new pages and both should have link between them. WHen I click a button on page A it will navigate to page B, I am passing 2 parameters to page B. Page B is rendered with the help of values passed. Page B has 2 OAMessageLovInput Bean for which I am setting their values based on the values passed using
    OAMessageTextInputBean custBean = (OAMessageTextInputBean)webBean.findIndexedChildRecursive("CustID");
    custBean.setText(pageContext.getParameter("customerid"));
    Everything works great till now. Now I want to change the customer id on page B using the LOV ie I select a new customer and I tab out of the field, still the customer id is not changed, it is set to the old one only to which the bean is set to.
    What should I do get the new selected customer id to be populated on the LOV fields.
    Thanks,
    newbie

    newbie,
    You really do not need to explicitly set the customer Id through code. Just create a new LOV Mapping and make its return value to the MessageTextInputBean i.e CustID on base page and Lov Region Item would be the CustomerID of the Lov Table region.
    Create Custome ID in LOV Table region and set its render property to false. I am assuming that the custId is present in the LOV VO query.
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Need to pass value from check box to the pl/sql function in process

    My requirement is to use single value check box and pass the flag value to the pl/sql function.
    The function need to interpret the flag and execute accordingly.
    In this case checkbox name is P1_DELETE and it returns Delete, if checked.
    Anonymous block with in the process looks as follows:
    declare
    l_result VARCHAR2(1024);
    begin
    l_result := test_function(:P1_DELETE);
    end;

    Hi Visu,
    checkboxes in APEX are handled as arrays, namely APEX_APPLICATION_GLOBAL.VC_ARR2. To pass and process the checked values of checkboxes in a pl/sql function or procedure you could use the following way, assuming you have a checkbox named P1_DELETE with a single return value of "Delete"
    DECLARE
        l_checkbox_values apex_application_global.vc_arr2;
    BEGIN
        l_checkbox := :P1_DELETE;
        -- calling function test_function processing the value
        test_function(NVL(l_checkbox(1), 'SOME_OTHER_VALUE'));
    END;If the checkbox is not checked then the array at position 1 is null and you have to process that as you like.
    If your checkbox would be a group than the array would be colon separated such as 1:2:3:4 etc. and you would have to loop the array like:
        FOR idx IN 1..l_checkbox.COUNT LOOP
            test_function(l_checkbox(idx));
        END LOOP;Hope that helps.
    Andreas

  • Help needed to merge values from two tables -

    We have these three test tables shown, which have a common ID; And amount fields; I want the -------
    test1.val = test2.val + test3.val
    when they have common ids in them;
    I have shown the test data below: And the expected output;
    NOTE: In database with real table values - each of them have millions of rows in them. So effeciency is very important here;
    SQL> desc test1;
    Name Null? Type
    ID NUMBER
    VAL NUMBER
    SQL> desc test2;
    Name Null? Type
    ID NUMBER
    VAL NUMBER
    SQL> desc test3;
    Name Null? Type
    ID NUMBER
    VAL NUMBER
    SQL> select * from test1;
    ID VAL
    1 50
    2 50
    3 55
    4 60
    5 20
    5 rows selected.
    SQL> select * from test2;
    ID VAL
    1 25
    1 25
    2 5
    2 5
    4 75
    5 rows selected.
    SQL> select * from test3;
    ID VAL
    1 25
    1 25
    2 5
    2 25
    2 25
    5 10
    6 rows selected.
    I EXPECT the output to be:
    SQL> select * from test1;
    ID VAL
    1 100
    2 65
    3 20
    4 75
    3 20
    5 10
    6 rows selected.

    Need help with the update queries - joining three tables -

  • Please - immediate help needed parsing csv values into multiple rows

    Hello, we have a very immediate need to be able to parse out a field of comma separated values into individual rows. The following is an example written in SQL Server syntax which does not work in Oracle.
    The tricky part is that each ROUTES can be a different length, and each CSV can have a different number of routes in it.
    Here is an example of the table ("Quotes") of CSV values I want to normalize:
    TPNUMBER ROUTES
    1001 1, 56W, 18
    1002 2, 16, 186, 28
    Here is an example of what I need it to look like:
    TPNUMBER ROUTES
    1001 1
    1001 56W
    1001 18
    1002 2
    1002 16
    1002 186
    1002 28
    Here is the "Tally" table for the query below:
    ID
    1
    2
    3
    4
    5
    6
    7
    And finally, here is the query which parses CSV values into multiple rows but which does not work in Oralce:
    SELECT TPNUMBER,
    NullIf(SubString(',' + ROUTES + ',' , ID , CharIndex(',' , ',' + ROUTES + ',' , ID) - ID) , '') AS ONEROUTE
    FROM Tally, Quotes
    WHERE ID <= Len(',' + ROUTES + ',') AND SubString(',' + Phrase + ',' , ID - 1, 1) = ','
    AND CharIndex(',' , ',' + ROUTES + ',' , ID) - ID > 0
    It may be necessary to use a cursor to loop through the CSV table and process each row (a loop within another loop...) but this is beyond my comprehesion of PL/SQL.
    Many thanks in advance for your advice/help.
    apk

    Not sure what you are trying to do with the last step, but this should work for the first part. I assume you would use sqlldr but I just did inserts instead. You might need more than 5 "routes" in the csv. You could put some reasonable max on that number of columns:
    SQL>create table t_csv
    2 (TPNUMBER varchar2(20),
    3 ROUTE_1 VARCHAR2(5),
    4 ROUTE_2 VARCHAR2(5),
    5 ROUTE_3 VARCHAR2(5),
    6 ROUTE_4 VARCHAR2(5),
    7 ROUTE_5 VARCHAR2(5),
    8 ROUTE_6 VARCHAR2(5) );
    Table created.
    SQL>INSERT INTO t_csv (TPNUMBER,ROUTE_1,ROUTE_2) values( '1001 1', '56W', '18' );
    1 row created.
    SQL>INSERT INTO t_csv (TPNUMBER,ROUTE_1,ROUTE_2,ROUTE_3) values( '1002 2', '16', '186', '28');
    1 row created.
    SQL>create table t_quotes(
    2 tpnumber NUMBER,
    3 routes VARCHAR2(5));
    Table created.
    SQL>DECLARE
    2 L_tpnumber NUMBER;
    3 L_route VARCHAR2(5);
    4 begin
    5 for rec in (select * from t_csv) loop
    6 L_tpnumber := SUBSTR(rec.tpnumber,1,INSTR(rec.tpnumber,' ')-1);
    7 L_route := SUBSTR(rec.tpnumber,INSTR(rec.tpnumber,' ')+1);
    8 insert into t_quotes values( L_tpnumber, l_route );
    9 if rec.route_1 is not null then
    10 insert into t_quotes values( L_tpnumber, rec.route_1 );
    11 end if;
    12 if rec.route_2 is not null then
    13 insert into t_quotes values( L_tpnumber, rec.route_2 );
    14 end if;
    15 if rec.route_3 is not null then
    16 insert into t_quotes values( L_tpnumber, rec.route_3 );
    17 end if;
    18 if rec.route_4 is not null then
    19 insert into t_quotes values( L_tpnumber, rec.route_4 );
    20 end if;
    21 if rec.route_5 is not null then
    22 insert into t_quotes values( L_tpnumber, rec.route_5 );
    23 end if;
    24 end loop;
    25 end;
    26 /
    PL/SQL procedure successfully completed.
    SQL> select tpnumber, routes from t_quotes;
    TPNUMBER ROUTE
    1001 1
    1001 56W
    1001 18
    1002 2
    1002 16
    1002 186
    1002 28
    7 rows selected.

  • Help needed to pass Java 2 1.2 SCJP, please

    I took the programmers exam (1.2) two weeks ago, I scored 57%. Though a respectable score, I was still gutted.
    So now I am re-revising at the moment, trying to improve where I can.
    Just wondered what anyone would recommend with the revision I should do just to improve things some more?
    I feel a little dispondant at this time, so a little bit of advice will help me bounce back, bigger & better.
    Thanks to everyone has helped me here at this forum, you are great, thanks, Dave.

    I believe that it is possible to pass SCJP with a very high score.The books I studied helped me pass SCJP with a fairly high score, even with limited experience.
    Based on my experience, I would suggest the following approach:
    1. Learn the basics, make sure you can do simple stuff with Java. Make sure you can write a simple program easily--without having to spend a lot of time looking up, for example, how to declare a "main" method in an application. From your post, I'm guessing you may have already achieved this, but if you're still having trouble with the most basic stuff, you might want to get a hold of some good tutorials. There are some online on java.sun.com, and there are a number of excellent books. I used Just Java, by Peter van der Linden. If an updated version of the book is available, it's very useful.
    2. Once you've achieved step 1, Get a good exam study guide. I used Complete Java 2 Certification Study Guide published by Sybex. This will help know specific topics will appear on the exam. More importantly, it will help you learn those specific topics in the depth required to earn a high score on the exam. This kind of book will also give you sample exam questions. Make sure you know the answers to all of the questions and that you know why those answers are correct.
    3. I also found the Coriolis Exam Cram to be quite helpful. Once you know the exam topics in detail, this book will help you cram the core information you'll need to know. It also provides more sample questions. Study them carefull. Finally, it provides a single foldout cardboard sheet containing stuff to memorize for the exam.
    I followed essentially the plan I've suggested, and it got me a score of 81%. You can do it too. In fact, you can probably beat me handily, if you don't forget (as I did) to study the "java.io" package!
    I believe certification is well-worth the effort for those of us who are learning Java. No, I don't have hundreds of employers beating down my door now that I'm certified, but as I continue learning to use Java effectively, I'm able to move ahead confident in my knowledge of basics like constructors, arrays, Strings and what-not.
    Go for it!
    Don't give up!

  • Help needed in getting values from the dynamically created text boxes

    Hello,
    I am developing one jsp page using struts. In the page i m
    dynamically adding some rows with two text boxes in each row. and after entering data into
    those textboxes , user clicks on save button and page is submitted.
    I want to capture all this data of dynamically added
    rows so that i can enter those rows into DB.
    how can i acheive this using struts?.
    Have anyone had tried doing it?. Please help.
    Thanx in advance
    Deepali Naik

    Hi,
    1. If you give these textBoxes the same name, then in your action you can call request.getParameterValues(paramName) - it returns String[ ] of values.
    2. You can give form textBox names like "name"+index or something like this in <logic:iterate> tag
    Good luck!

  • Help needed with passing data between classes, graph building application?

    Good afternoon please could you help me with a problem with my application, my head is starting to hurt?
    I have run into some difficulties when trying to build an application that generates a linegraph?
    Firstly i have a gui that the client will enter the data into a text area call jta; this data is tokenised and placed into a format the application can use, and past to a seperate class that draws the graph?
    I think the problem lies with the way i am trying to put the data into co-ordinate form (x,y) as no line is being generated.
    The following code is from the GUI:
    +public void actionPerformed(ActionEvent e) {+
    +// Takes data and provides program with CoOrdinates+
    int[][]data = createData();
    +// Set the data data to graph for display+
    grph.showGrph(data);
    +// Show the frame+
    grphFrame.setVisible(true);
    +}+
    +/** set the data given to the application */+
    +private int[][] createData() {+
    +     //return data;+
    +     String rawData = jta.getText();+
    +     StringTokenizer tokens = new StringTokenizer(rawData);+
    +     List list = new LinkedList();+
    +     while (tokens.hasMoreElements()){+
    +          String number = "";+
    +          String token = tokens.nextToken();+
    +          for (int i=0; i<token.length(); i++){+
    +               if (Character.isDigit(token.charAt(i))){+
    +                    number += token.substring(i, i+1);+
    +               }+
    +          }     +
    +     }+
    +     int [][]data = new int[list.size()/2][2];+
    +     int index = -2;+
    +     for (int i=0; i<data.length;i++){+
    +               index += 2;+
    +               data[0] = Integer.parseInt(+
    +                         (list.get(index).toString()));+
    +               data[i][1] = Integer.parseInt(+
    +                         (list.get(index +1).toString()));+
    +          }+
    +     return data;+
    The follwing is the coding for drawing the graph?
    +public void showGrph(int[][] data)  {+
    this.data = data;
    repaint();
    +}     +
    +/** Paint the graph */+
    +protected void paintComponent(Graphics g) {+
    +//if (data == null)+
    +     //return; // No display if data is null+
    super.paintComponent(g);
    +// x is the start position for the first point+
    int x = 30;
    int y = 30;
    for (int i = 0; i < data.length; i+) {+
    +g.drawLine(data[i][0],data[i][1],data[i+1][0],data[i+1][1]);+
    +}+
    +}+

    Thanks for that tip!
    package LineGraph;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.*;
    import java.util.List;
    public class GUI extends JFrame
      implements ActionListener {
      private JTextArea Filejta;
      private JTextArea jta;
      private JButton jbtShowGrph = new JButton("Show Chromatogram");
      public JButton jbtExit = new JButton("Exit");
      public JButton jbtGetFile = new JButton("Search File");
      private Grph grph = new Grph();
      private JFrame grphFrame = new JFrame();   // Create a new frame to hold the Graph panel
      public GUI() {
         JScrollPane pane = new JScrollPane(Filejta = new JTextArea("Default file location: - "));
         pane.setPreferredSize(new Dimension(350, 20));
         Filejta.setWrapStyleWord(true);
         Filejta.setLineWrap(true);     
        // Store text area in a scroll pane 
        JScrollPane scrollPane = new JScrollPane(jta = new JTextArea("\n\n Type in file location and name and press 'Search File' button: - "
                  + "\n\n\n Data contained in the file will be diplayed in this Scrollpane "));
        scrollPane.setPreferredSize(new Dimension(425, 300));
        jta.setWrapStyleWord(true);
        jta.setLineWrap(true);
        // Place scroll pane and button in the frame
        JPanel jpButtons = new JPanel();
        jpButtons.setLayout(new FlowLayout());
        jpButtons.add(jbtShowGrph);
        jpButtons.add(jbtExit);
        JPanel searchFile = new JPanel();
        searchFile.setLayout(new FlowLayout());
        searchFile.add(pane);
        searchFile.add(jbtGetFile);
        add (searchFile, BorderLayout.NORTH);
        add(scrollPane, BorderLayout.CENTER);
        add(jpButtons, BorderLayout.SOUTH);
        // Exit Program
        jbtExit.addActionListener(new ActionListener(){
        public void actionPerformed(ActionEvent e) {
             System.exit(0);
        // Read Files data contents
         jbtGetFile.addActionListener(new ActionListener(){
         public void actionPerformed( ActionEvent e) {
                   String FileLoc = Filejta.getText();
                   LocateFile clientsFile;
                   clientsFile = new LocateFile(FileLoc);
                        if (FileLoc != null){
                             String filePath = clientsFile.getFilePath();
                             String filename = clientsFile.getFilename();
                             String DocumentType = clientsFile.getDocumentType();
         public String getFilecontents(){
              String fileString = "\t\tThe file contains the following data:";
         return fileString;
           // Register listener     // Create a new frame to hold the Graph panel
        jbtShowGrph.addActionListener(this);
        grphFrame.add(grph);
        grphFrame.pack();
        grphFrame.setTitle("Chromatogram showing data contained in file \\filename");
      /** Handle the button action */
      public void actionPerformed(ActionEvent e) {
        // Takes data and provides program with CoOrdinates
        int[][]data = createData();
        // Set the data data to graph for display
        grph.showGrph(data);
        // Show the frame
        grphFrame.setVisible(true);
      /** set the data given to the application */
      private int[][] createData() {
           String rawData = jta.getText();
           StringTokenizer tokens = new StringTokenizer(rawData);
           List list = new LinkedList();
           while (tokens.hasMoreElements()){
                String number = "";
                String token = tokens.nextToken();
                for (int i=0; i<token.length(); i++){
                     if (Character.isDigit(token.charAt(i))){
                          number += token.substring(i, i+1);
           int [][]data = new int[list.size()/2][2];
           int index = -2;
           for (int i=0; i<data.length;i++){
                     index += 2;
                     data[0] = Integer.parseInt(
                             (list.get(index).toString()));
                   data[i][1] = Integer.parseInt(
                             (list.get(index +1).toString()));
         return data;
    public static void main(String[] args) {
    GUI frame = new GUI();
    frame.setLocationRelativeTo(null); // Center the frame
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.setTitle("Clients Data Retrival GUI");
    frame.pack();
    frame.setVisible(true);
    package LineGraph;
    import javax.swing.*;
    import java.awt.*;
    public class Grph extends JPanel {
         private int[][] data;
    /** Set the data and display Graph */
    public void showGrph(int[][] data) {
    this.data = data;
    repaint();
    /** Paint the graph */
    protected void paintComponent(Graphics g) {
    //if (data == null)
         //return; // No display if data is null
    super.paintComponent(g);
    //Find the panel size and bar width and interval dynamically
    int width = getWidth();
    int height = getHeight();
    //int intervalw = (width - 40) / data.length;
    //int intervalh = (height - 20) / data.length;
    //int individualWidth = (int)(((width - 40) / 24) * 0.60);
    ////int individualHeight = (int)(((height - 40) / 24) * 0.60);
    // Find the maximum data. The maximum data
    //int maxdata = 0;
    //for (int i = 0; i < data.length; i++) {
    //if (maxdata < data[i][0])
    //maxdata = data[i][1];
    // x is the start position for the first point
    int x = 30;
    int y = 30;
    //draw a vertical axis
    g.drawLine(20, height - 45, 20, (height)* -1);
    // Draw a horizontal base line4
    g.drawLine(20, height - 45, width - 20, height - 45);
    for (int i = 0; i < data.length; i++) {
    //int Value = i;      
    // Display a line
    //g.drawLine(x, height - 45 - Value, individualWidth, height - 45);
    g.drawLine(data[i][0],data[i][1],data[i+1][0],data[i+1][1]);
    // Display a number under the x axis
    g.drawString((int)(0 + i) + "", (x), height - 30);
    // Display a number beside the y axis
    g.drawString((int)(0 + i) + "", width - 1277, (y) + 900);
    // Move x for displaying the next character
    //x += (intervalw);
    //y -= (intervalh);
    /** Override getPreferredSize */
    public Dimension getPreferredSize() {
    return new Dimension(1200, 900);

  • Help Needed in Input Value Help of Custom Set attribute

    Hi All,
    We have maintained value table for custom set type attribute. We generated UI configuration for this set type and brought it into the web UI. But, we did not get the value help on the UI.
    We are trying to get the value help by implementing the BADI crm_prdgenset_valuehelp. This BADI returns object of type cl_bsp_wd_valuehelp_f4descr.
    PFB the code that is showing up the Value help icon but it is not showing any values.
      DATA: lv_valuehelp_descriptor type ref to cl_bsp_wd_valuehelp_f4descr.
    *    lv_fname_prefix = 'STRUCT'.
       ls_map-context_attr = component.  "ZCSDR_PRD_CLS
       ls_map-f4_attr = 'KEY'.
       INSERT ls_map INTO TABLE lt_outmap.
       INSERT ls_map INTO TABLE lt_inmap.
       CONCATENATE 'ZCSDR_CLS' 'ZZ0010' INTO lv_help_id SEPARATED BY '-'.
       CREATE OBJECT lv_valuehelp_descriptor
         TYPE
           cl_bsp_wd_valuehelp_f4descr
         EXPORTING
           iv_help_id                  = lv_help_id
           iv_help_id_kind             = if_bsp_wd_valuehelp_f4descr=>help_id_kind_comp
           iv_input_mapping            = lt_inmap
           iv_output_mapping           = lt_outmap
           iv_trigger_submit           = ABAP_TRUE.
       rv_valuehelp_descriptor = lv_valuehelp_descriptor.
    Any pointers on this is really helpful.
    Thanks,
    Udaya

    Hi Chand,
    Sorry for the late response. As far as i recollect, i guess we have enhanced the setter getter methods and written logic in the get-v method.
    Let me know if the issue is resolved.
    regards,uday

Maybe you are looking for

  • How to obtain the pricing condition data from sales data?

    Hi all!  I have googled many times and read through many sites to understand how I can obtain the pricing condition data that's specific to a specific sales line.  However, the answer I got usually are as follow: Tables to be used: KONV KONH KONP VBR

  • What's happening?

    I've got a 30G G5 Ipod and it won't function other than what's listed here. When connected to my computer I get the low battery symbol. When I've got it connected to the fast charger, the screens repeatedly change from the apple, to the sad Ipod, to

  • Login Date/time & Logout Date/time of User in apex

    Hi, Is there any apex internal table/view where I can get the Login Date/time & Logout Date/time per user ? Regards, Benz

  • Portal in SAP NetWeaver 7.1

    Hi, i tried to find information about the new release of sap netweaver portal but i could not find the information. In sap netweaver ce 7.1 the portal functionality is included. Is this the portal that is intended for productive use or is this the ve

  • File Must Exist on Computer Compliance Help

    I have been trying to create a compliance to see if a file exists in a location on the C drive and if it doesn't exist to create it.  I have set the following: Configuration Item called mms.cfg, on the settings tab I have setting type: file system pa