Buttons in rows and colums

how do i make buttons in rows an colums?
like the dialing-path of a telephone? 3x4?
thanks

[url http://java.sun.com/docs/books/tutorial/uiswing/layout/visual.html]How to Use Layout Managers

Similar Messages

  • Interchanging rows and colums of internal table

    Hi all,
    I have one requirement to interchange the rows and colums of 3X3 internal table.(internal table contains 3 rows and 3 columns ). In the new internal table, I have to display the rows as column values and column values as rows..
    It's urgently. Kindly send me the sample code for the same.
    Thanks in advance.
    Ramesh.

    Hi ramesh,
    it is not possible to create a 'transponed' internal table if the (2) fields in your table arte or different type. Thus each row of the new table would be of different type.
    The quick solution for display is
    field-symbols:
      <any> type any.
    do.
      loop at itab.
        assign component sy-index of structure itab to <any>.
        if sy-subrc <> 0.
    * not assigned means no more components
          exit.
        endif.
        write <any>.
      endloop.
      if sy-subrc = 0.
    * start a new line for the next field
        write /.
      else.
    * all done
        exit.
      endif.
    enddo.
    If you really want to store the values in transposes table, you could do so by storing their references in fields of type REF TO DATA because this is good for any data.
    possible usage:
    types:
      ty_t_reftab type standard table of ref to data with default key,
      ty_t_transposed type standard table of ty_t_reftab with default key.
    data:
      lt_transposed type ty_t_transposed,
      lv_ref type ref to data.
    field-symbols:
      <any> type any,
      <transposed> type line of ty_t_transposed
    do.
      loop at itab.
        at first.
          append initial line to lt_transposed assigning <transposed>.
        endat.
        assign component sy-index of structure itab to <any>.
        if sy-subrc <> 0.
    * not assigned means no more components
          exit.
        endif.
        get refernce of <any> into lv_ref.
        append lv_ref to <transposed>. 
      endloop.
      if sy-subrc <> 0.
    * all done
        exit.
      endif.
    enddo.
    read table
    Sorry, don't know what it's good for. If you need the values, access them like
    loop at lt_transposed assigning <transposed>.
      loop at <transposed> assigning <any>.
        write <any>->*. "Hope that works with WRITE
      endloop.
    endloop.
    Regards,
    Clemens

  • A query with row and colum numbers?

    Hello,
    i have my java code divided into if conditions and in each if clause i need to select a certain field from a table. Is it somehow possible to select a table field which for example is in the third row and fifth column? So basically, how to select a certain matrix element?
    Thank you:)
    Edited by: user10956166 on Apr 5, 2009 6:09 AM

    Hi,
    Assuming you have a table called Distance:
    Connected to Oracle Database 10g Express Edition Release 10.2.0.1.0
    Connected as hr
    SQL> DESCRIBE DISTANCE;
    Name    Type         Nullable Default Comments
    LINN    VARCHAR2(30) Y                        
    TALLINN NUMBER       Y                        
    TARTU   NUMBER       Y                        
    P2RNU   NUMBER       Y                        
    SQL> select * from distance;
    LINN                              TALLINN      TARTU      P2RNU
    TALLINN                                 0        186        128
    TARTU                                 186          0        174
    P2RNU                                 128        174          0
    SQL>
    SQL> SET SERVEROUTPUT ON
    SQL> DECLARE
      2     v_sql         VARCHAR2(4000);
      3     v_column_name VARCHAR2(30):= 'TARTU';
      4     v_to          VARCHAR2(30):= 'P2RNU';
      5     v_distance    NUMBER;
      6  BEGIN
      7     v_sql := 'SELECT ' || v_column_name || ' FROM DISTANCE d WHERE d.LINN = ''' || v_to || '''';
      8     EXECUTE IMMEDIATE v_sql
      9        INTO v_distance;
    10 
    11     dbms_output.put_line(v_distance);
    12 
    13  EXCEPTION
    14     WHEN OTHERS THEN
    15        dbms_output.put_line(SQLERRM);
    16  END;
    17  /
    174
    PL/SQL procedure successfully completed
    SQL> Regards,

  • Rows and Colums

    I have a row that states the cost centre and then a column that states a percentage. I then want another row that states a cost centre and then another column that states a percentage. However I cant get these to follow on from each other - I have to have 2 rows and two columns. In earlier versions of BEX (I'm on BI7) I could use the tabular function. Is there anything I can do in this version?

    How are you defining the structure? You need to right click the structure and then choose new selection and then drag your cost center char into it and restrict it.
    Hope this helps...

  • How to  make JTextArea rows and colums auto-increase?

    My test program is attached as below.
    The JTextArea can not enlarge itself when the text in a line is too long that some characters are hidden.When rows grows too many will also see the problem.
    How can I make the rows and columns auto-increase to meet the width or height of my text?
    -----My Test Demo----
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.color.*;
    import javax.swing.*;
    public class Test{
    public static void main(String[] args){
    JFrame f = new JFrame("My Editor");
    Container ct = f.getContentPane();
    JPanel jp = new JPanel();
    JTextArea ta = new JTextArea("My software.",10,30);
    JTextArea ta2 = new JTextArea("Hello,World!",10,30);
    jp.setPreferredSize(new Dimension(400,400));
    jp.setBackground(Color.green);
    jp.setLayout(null);
    jp.add(ta);
    ta.setBounds(100,100,150,200);
    ta.setOpaque(false);
    ta.setBorder(null);
    jp.add(ta2);
    ta2.setBounds(100,120,150,200);
    ta2.setOpaque(false);
    ta2.setBorder(null);
    // jp.addMouseListener(new MyMouseListener());
    ct.setLayout(new BorderLayout());
    ct.add(jp,BorderLayout.CENTER);
    f.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent evt) {
    System.exit(0);
    f.setVisible(true);
    f.pack();

    This link to the Java Swing tutorial will show you how to add the JTextArea to a JScrollPane:
    http://java.sun.com/docs/books/tutorial/uiswing/components/simpletext.html#textarea
    It appears to me that you are new to Swing so you should read the entire tutorial "Creating a GUI using JFC/Swing" before asking any more question. The tutorial can be read online or downloaded from:
    http://java.sun.com/docs/books/tutorial/
    The download link for all tutorials on this page is near the bottom.

  • Single Row and colum resultset

    Hi,
    I have a scenarios like this,
    VIEW_A;
    col1 number,
    col2 number,
    col3 clob.
    I need to create an sql which will get me the list of col3 values based on the filter values on col1 and col2.
    The atual need is i need the col3 resultser to be concatenated into a single row and column value like
    RESULT SET:
    value1
    Val2
    Val3
    what i need is
    Val1 ||' - '||Val2||' - '||Val3
    into a single clob so that i get the result set instead of iterating and concating the same manuall using plsql.
    Help on this
    Thanks in Advance,
    Ramesh.R

    It looks like you are after what's called "String Aggregation."
    Check out this link as it highlights many techniques:
    String Aggregation Techniques
    An Re: Concat rows values into single column of Michael's
    A Re: Multiple rows into a single line in 'Single Column Table' followed by Billy's reason on doing a stragg in the first place.
    In addition 11gR2 has the LISTAGG function.

  • How to check all rows and colums runtime executing BW query

    Hi Guys,
    I have a BW query with many calculated key figures. while execute this query the performance is really bad/slow. I need to know in which object the query is taking long time, is there any table or anything to get this information. I have looked all the query perfomation stuffs, everything looks good, just want to figure out what is making OLAP runtime longer.
    Thanks,
    Kris

    Hi Krish,
    You can not check the time taken by any particular key figure/ characteristics.
    However, if you really want to reduce the time, you can create aggregates proposed by SAP based on your query.
    First go to RSRT, place your query and click on "Execute + Debug".
    Then select "Display Aggregate Found" under Aggs and "Display Statistics Data" under Others in the "Debug Options".
    Now it will show you how you should create your aggregate based on different objects so that the total query execution time will be less.
    Also after clicking on BACK button you can check the time taken by each event during Query execution.
    Hope it helps.
    Thanks,
    Subrat.

  • Row and Colum in CR

    Hi all experts,
    1st table
    Doc No               Remark
    1                        Test Unit
    2                        Reject
    2nd table
    ExpCode     ExpName
    1     Acc
    2     Hr
    3rd table
    DocNo                   ExpCode               Amount
    1                              1     (acc)                 $10
    1                              2     (hr)                    $2
    2                              1                              $3
    I have a wrong result in CR.
    DocNo                   ExpCode               Amount              Remark
    1                              1     (acc)                 $10                  Test Unit
    1                              2     (hr)                    $2                   Test Unit
    How to display a report as below???
    Doc             Acc           hr             Remark
    1                 $ 10             $ 2        Test Unit
    All the table have a link together.
    For more clear http://www.flickr.com/photos/31682762@N08/?saved=1
    Thanks
    Danny
    Edited by: Danny Gan on Nov 8, 2008 7:09 PM

    Hello Danny,
    I recommend to post this query to the [Crystal Reports Design|SAP Crystal Reports; forum.
    This forum is dedicated to topics related to the creation and design of Crystal Report documents. This includes topics such as database connectivity, parameters and parameter prompting, report formulas, record selection formulas, charting, sorting, grouping, totaling, printing, and exporting but also installation and registering.
    It is monitored by qualified technicians and you will get a faster response there.
    Also, all Crystal Reports Design queries remain in one place and thus can be easily searched in one place.
    Best regards,
    Falk

  • How can we devide a window into rows and coloumns

    hi
    i would like to devide a window into 3 rows and 2 coloumns and in second coloumn again it will devide into to 3 rows and 2 colomns.
    so in that window if we create  template  how it is?
    i need step by step procesing.
    pls give me answer

    Hi Syamala,
    First create a new template for the window. Name it and give the width of that template. Then on the right pane click on template tab. Then you will find details button. Click on that. There you can create rows and colums to that template. There you will find reference, from, to, height, width options. Under reference give some relevant name to the row , from, to ( say 1 (from)     1 (to)  for the first row ,  2   2 for second row , 3  3 for third row ). under height column you mention the required height, then units for that and under the width option u mention the width of first column and its unit. Beside that mention the width of the second column and its unit. then you will get a window that gets divided into 3 rows and 2 columns. Repeat the same process for the second column where u can divide it into 3 rows and 2 columns again.

  • Suppress Overall result (both rows and columns side and its data)

    Hello all,
    I need to do some settings in BEx Query Designer, so that In BEx Analyzer, I don't see 'overall result' both on 'rows' and 'column' sides
    This is what I have done so far
    In 'rows' section, Properties of my KF (no. Products) then 'calculation' tab 'calculate result as'=Suppress result
    This way in BEx Analyzer I don't see the FIGURES/DATA for 'Result' and 'overall result' BUT 'result' and 'overall result' still exist both on rows and colum side even if there are not figures in them.
    Is there any property in BEx Designer so that I don't see 'overall result' at all
    Best regards
    Ahmad

    thanks for responding
    selecting a characteristic, properties, Display tab, Result lines: Always Suppress
    with this I don't see 'result'
    but 'overall result' result exist both on 'rows' and 'column' side alongwith its data.
    If I combine the above with this: selecting KF, properties, calucations, Calculate result as: Suppress result
    then
    I don't see the data in 'overall result' BUT 'overall result' still exist both on rows and column sides
    any setting so that 'overall result' completely vanishes
    Best regards
    Ahsan

  • How to recognize form buttons in rows not columns

    Hi,
    I have a long questionnaire with 100 rows.   
    column one is the question.  Column 3, 4, 5, and 6 are buttons responses (none, mild, moderate, extreme).  Buttons meaning only one answer allowed per row.
    There are headers for the buttons.    when converting this excel spreadsheet to adobe acrobat -- works.   But after creating a form the buttons are labeled by column not by row, so ... they are not true option buttons by row.   In other words, only one answer per column is allowed, the opposite of what I want.    
    How do I solve this?   I change this either by the initial format or some global change?  There are a total of 100 buttons.  Way too laborious to change each one of these individually.
    Thank you.

    thank you.  I agree.   I finally realized that acrobat is way too complex a format to use for forms.  Nevertheless, I need this one form.
    If I persist, these are radio buttons that must be exclusive to one selection in each row.   
    So I repeat.    How can I get acrobat "forms editor" to discover these radio buttons across rows and not across columns?   Formatting each single button will be so laborious as to abort this project.  There must be a way.  There always is. 
    So much is written about formatting forms with acrobat.   So little is written how to actually handle the output. 
    thank you

  • Add dynamic buttons to each report row and bind the row data to buttons specific to that row

    I have a page with a form at the top and a report at the bottom which is tied to a table. I need to add a pair of buttons for each row of the table and add dynamic actions for these buttons. I need to submit the data corresponding to the row to a REST service and refresh the table/row. I know it is possible to add ajax call and refresh the table after the response is received. But I am not sure how I can dynamically include a pair of buttons on each row and have the access the data corresponding to the record when a particular button is clicked. I was not able to find such a feature using the help page. Can you please let me know if this is possible. Thanks in advance.
    Below is the representation of how I need the page to look like.
    Col 1
    Col 2
    Col 3
    data 1
    data 21
    data 31
    Button 1
    Button 2
    data 2
    data 22
    data 32
    Button 1
    Button 2
    data 3
    data 23
    data 33
    Button 1
    Button 2
    data 4
    data 24
    data 34
    Button 1
    Button 2
    I should be able to access data 1, data21, data 31 from button 11 and button21 etc.

    select data1,
              data2,
              data3,
              null button1,
              null button2,
              rowid r_id
    from .....
    If you edit the column for button1 and navigate to the Column Formatting region you can create your button here, several different ways.  You will need to play around with how you prefer.  See below:
    <input class="button1" type="button" id="#R_ID#" value="label for the button" /> or <button id="#R_ID#">label for button</button> or you could use <a> and apply css of your theme.
    You also create both buttons in a single column.  From here you can reference any of the columns from your select by using the #COLUNMNAME# format (as I did with R_ID).
    You will next need to something similar for all columns you want to be able to grab when you click the buttons.  See below:
    --- This would be for data1 column
    <span id="D1-#R_ID#">#DATA1#</span>
    You would do these for each column that you want access to when button clicked as mentioned above.  You could bypass this step and use jquery to traverse the DOM using .closest() and .find() and give each column a distinct class.  Is is your preference.
    You would then create a dynamic action triggered when .button1 is clicked.  Now that you have that object you can get the id of the triggering object which would be your r_id and from there you can access all your individual data points(all this done in a javascript in the dynamic action) and assign to hidden items on your page.  The next step of that dynamic action you could execute pl/sql and pass those in page items.
    Hope that all makes sense.
    David
    Message was edited by: DLittle
    Just as a bit of clarification:  the r_id column does not have to be rowid, but it does need to be unique for each row return.  You could use your primary key or rownum.  Whatever works for your scenario.

  • Button to hide and unhide rows in Adobe Livecycle

    I have table in Adobe Livecycle I want button when I press to unhide two rows and if I need two more and .... And I need same button to hide two rows.
    Thank you.

    Use the 'presence' property. If your row is a static row (ie you see it in design time), then simply reference the name: myRow.presence="hidden" or myRow.presence="visible".
    However, if it's a dynamic row (ie you add them at run time), then you have to reference the name of the row along with its index: myRow.all.item(3).presence="hidden". The index of a row is zero-based, that means the first row is 0 and in my example row 3 is the 4th from the top.
    Kyle

  • Adding Rows and Columns to a table depending requirements

    Hi all,
    I have created a table with one row and 2 columns of a table. My client requested adding form one to 3 columns of the right table and rows as well, depending business requirements.
    I can add coding add columns on the right, but I cannot add rows because the columns dynamic.
    I tried to write the coding for adding rows but it is not successful.  Please help.
    event : click - add colum button
    for (var i = 0; i < form1.page1.Table1._Row1.count; i++){
    var newrow = form1.page1.Table1.resolveNode("Row1[" + i + "]");
    var newrow2 = form1.page1.Table1.resolveNode("HeaderRow[" + i + "]");
    newrow._Col3D.addInstance(0);
    newrow2._Col3D.addInstance(0);
    i also published my file for your reviewing.
    https://workspaces.acrobat.com/?d=xcgcfby89J-IHenn-8xeaQ
    Thank you very much,
    Cindy

    When you are adding instances it uses the default properties of the object...
    If its hidden as a default value in the form and you add an instance, the new instance will be hidden..
    So if you have 3 columns in your default row and trying to add an instance withthe 5 columns it will only add a row with 3 columns..
    If you want to add the columns to the table, you must add the column to each new row instance.
    E.g.:
    var intCount = xfa.resolveNode("page1.table1.Row1").instanceManager.count;
    form1.page1.table1._Row1.addInstance(1);
    xfa.resolveNode("page1.table1.Row1[" + intCount.toString() + "].Col3D").addInstance(1);

  • Doubt on Rows and Coloums in BEx Query Designer.

    Hello, Experts.
    I have a Doubt in BEx Query Designer.
    In the Rows I have a Fiscal year Period,  if the user enters the Fiscal year period for e.g. : 001/2006  .  
    in the columns i have  forecast for the Fiscal year period which user entered ( 001/2006 ),   and we have another column pervious ( Prior )fiscal year period ( 001/2005 ). 
    My Questions is ,  as we are Restricting with 001/2006 will the query retrieve the values of 2005 or not?
    Thanks in Advance .
    Sharp

    yes i am  Doing Offest.
    I moved this Fiscal year Period to Free char,   and i Restricted with Pervious Fical Year period and Fical year period .  it worked.  but
    when i kept this in Rows and deleted Previous Fiscal Year period .  it is displaying blanks.   in prior years forecast.
    is it because i am Ristricting it to only fical year period  which user entered
             Colums-->  Forcast ( User Entered year )          Prior year
    Rows
    Fiscal year period
      Fiscal year period( user enterd )
    Thanks

Maybe you are looking for