Jtable row sellect when button click

Hi friends;
i want select the row while i clicking the button.
table has five many rows.if i click button first when first row will select. And defaultly select secon row when second row selection is done.Like this it will happen for all row.
By
Subash Chandra Bose.
[email protected]

Quit creating multiple postings under two different ID's:
http://forum.java.sun.com/thread.jspa?threadID=746852&tstart=0

Similar Messages

  • Download the PDF Form as a attachment when button click in BSP application

    Hi All,
    I have scenario, when button click in the BSP application PDF Form want to download in the IE (like one window open with Open,Save and cancel button).
    I have written this code:
    data: pdf type fpformoutput-pdf.
    < Logic for populate value to pdf field ....
    .>
    response->set_header_field(
                         name  = 'cache-control'
                         value = 'max-age=0' ).
      response->set_header_field(
                         name  = 'content-disposition'
                         value = 'attachment; filename=webforms.pdf' ).
      response->set_data( data   = pdf ).
    Once button is clicked pop up is opened and closed automatically because of browser or adobe reader issue.
    How can I resolve this problem ?
    In the IE i need to change any settings ?
    IE version = 7.0
    Adobe reader = 9.0
    I have tried in the same code with IE = 6.0 and adobe reader 8.1.2 its getting download the pdf form working fine.
    The same think i want in IE 7.0 and adobe reader 9.0, what needs to be done ?
    Regards,
    Boopathi M

    Hello Ravi,
    Best would be to bind the dataSource of the InteractiveForm ui element to the parent node containing the table's data. Then specify a name of a template to be created in the templateSource and hit <enter>. Some popups later, the system will have created a template from the structure of the context. All you need to do now is to drag&drop the data structure inside the template designer to the template itself. This will result in a table. Save, activate and return the Web Dynpro view. Don't forget to unbind the pdfSource and enjoy.
    Best regards,
    Thomas

  • How to diplay table row dynamically  by button click

    Hi All,
    I had a table with  with visible row count '3',   i want to display dynamic row  by a button click, mean a 4 th row need to  be added to the table with same like  row '3'.
    please help me ..
    Thanks,
    Raj.

    Hi Raju,
    while click the Add Button,
    Get the all the Rows from the Table  and Put it in to one internal table . after that append the one empty record to that internal table. then again bind to that node.
    Like following code.
      DATA lo_nd_sales TYPE REF TO if_wd_context_node.
      DATA lo_el_sales TYPE REF TO if_wd_context_element.
      DATA ls_sales TYPE wd_this->element_sales.
      DATA lt_sales TYPE wd_this->elements_sales.
    navigate from <CONTEXT> to <SALES> via lead selection
      lo_nd_sales = wd_context->get_child_node( name = wd_this->wdctx_sales ).
    get element via lead selection
      lo_el_sales = lo_nd_sales->get_element(  ).
      CALL METHOD lo_nd_sales->get_static_attributes_table
    EXPORTING
       from   = 1
       to     = 2147483647
        IMPORTING
          table  = lt_sales
      IF lt_sales IS NOT INITIAL.
        CLEAR ls_sales.
        APPEND ls_sales TO lt_sales.
        lo_nd_sales->bind_table( lt_sales ).
      ENDIF.
    Regards,
    Vijay.

  • Display rows when button clicked

    Hi
    I have a few text fields in the jsp .
    After them, i have search button .
    When i click it, list of rows should be displayed
    underneath the search button in the same jsp/page .
    Any idea how can i do it?
    thanks
    chandra

    Sure, it can be done.
    Just have one file with your form and the jsp code to display results. Put the jsp code in a conditional loop (if submit == null). What this would do is that if submit is null, only the form will be displayed, else the form will be displayed and the results of the search will be displayed.
    Hope it helps.

  • Some affect on buttons when button click

    Dear All,
    I have 6 buttons in windows phone application page with Custom Control Template. I have also capture "Pressed" VisualState and change the button color which working fine.
    However when any button click then I want to hide a all other buttons for 2 seconds and keep this Pressed button (in Pressed visual state) visible only. Is there any way to achieve this goal in "Pressed" VisualState?
    I capture "Click" event of button and in this click, tried following codes
    btnNearest.Opacity = 0;
    btnInstructions.Opacity = 0;
    btnFavorities.Opacity = 0;
    btnServices.Opacity = 0;
    btnInformationi.Opacity = 0;
    Thread.Sleep(2180);
    this.NavigationService.Navigate(new Uri(sUrl, UriKind.Relative));
    However all buttons does not hide, but it looks when it navigate to new page then button hides but not during "Thread.Sleep".
    Is there any way to hide all buttons for just 2 seconds and keep Pressed button visible (in Pressed state)?
    Thanks in advance.
    M. Irfan

    Dear Vineet24,
    Thank you for your message. It was good work-around but I am afraid, it does not work for me. Actually I am using Custom Template of button so only changing Button color will not help in this case. Following is the custom template which I used
    on all buttons
    <phone:PhoneApplicationPage
    xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"
    ........>
    <phone:PhoneApplicationPage.Resources>
    <ResourceDictionary>
    <Style x:Key="CircleButtonTextOnlyStyle" TargetType="Button">
    <Setter Property="HorizontalAlignment" Value="Center"/>
    <Setter Property="VerticalContentAlignment" Value="Center"/>
    <Setter Property="FontFamily" Value="/Fonts/DroidKufi-Regular.ttf#Droid Arabic Kufi" />
    <Setter Property="Foreground" Value="White" />
    <Setter Property="FontSize" Value="18" />
    <Setter Property="Template">
    <Setter.Value>
    <ControlTemplate TargetType="Button">
    <Grid RenderTransformOrigin="0.5,0.5">
    <Grid.RenderTransform>
    <CompositeTransform Rotation="-5.75"/>
    </Grid.RenderTransform>
    <vsm:VisualStateManager.VisualStateGroups>
    <vsm:VisualStateGroup x:Name="CommonStates">
    <vsm:VisualState x:Name="Normal"/>
    <vsm:VisualState x:Name="MouseOver">
    <Storyboard>
    <ColorAnimation Duration="0" Storyboard.TargetName="buttonPath" Storyboard.TargetProperty="(Path.Fill).(SolidColorBrush.Color)" To="#a9873c"/>
    <ColorAnimation Duration="0" Storyboard.TargetName="buttonPath" Storyboard.TargetProperty="(Path.Stroke).(SolidColorBrush.Color)" To="#a9873c"/>
    </Storyboard>
    </vsm:VisualState>
    <vsm:VisualState x:Name="Pressed">
    <Storyboard>
    <ColorAnimation Duration="0:10:59.9" Storyboard.TargetName="buttonPath" Storyboard.TargetProperty="(Path.Fill).(SolidColorBrush.Color)" To="#a9873c"/>
    <ColorAnimation Duration="0:10:59.9" Storyboard.TargetName="buttonPath" Storyboard.TargetProperty="(Path.Stroke).(SolidColorBrush.Color)" To="#a9873c"/>
    </Storyboard>
    </vsm:VisualState>
    </vsm:VisualStateGroup>
    </vsm:VisualStateManager.VisualStateGroups>
    <!--Data="M 10 20 L 70 17, 145 20, 110 130 70 128 50 130 Z"-->
    <Path x:Name="buttonPath"
    Data="M 5 20 L 80 23, 50 95 25 95 Z"
    StrokeThickness="40"
    StrokeLineJoin="Round"
    Stroke="#464646"
    Fill="#464646" />
    <ContentPresenter VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
    HorizontalAlignment="{TemplateBinding HorizontalAlignment}"/>
    </Grid>
    </ControlTemplate>
    </Setter.Value>
    </Setter>
    </Style>
    </ResourceDictionary>
    </phone:PhoneApplicationPage.Resources>
    Thank you once again.
    M. Irfan

  • Encountered error og-00609 when button click to display chart

    hi
    this application uses forms 6i client server environment, graph control is being used with og.interept libray,
    passing parameters run times thru forms to charts.
    issue is that, system is doing uncertain behavior sometimes it shows graph smoothly but when constantly click at button it shows "OG-00609: internal pl/sql execution error"
    when i close graph server and run form again, and click at button to shows charts it works properly untill shows above error again.
    below is the code is being used to run charts.
    begin
    declare
    pl_id ParamList;
    query0 varchar2(256);
    begin
    query0 := 'select deptno, sum(sal) from emp where deptno in( '||:dept1||','||:dept2||') group by deptno;';
    pl_id := Get_Parameter_List('tmpdata');
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List(pl_id);
    END IF;
    pl_id := Create_Parameter_List('tmpdata');
    Add_Parameter(pl_id,'dept1',text_PARAMETER,:dept1);
    Add_Parameter(pl_id,'dept2',text_PARAMETER,:dept2);
    if :ch_type = 'pie' then
    og.interpret('e:\mas\emp2.ogd','g1',query0,true,pl_id);
    og.close('e:\mas\emp2.ogd','g1');
    elsif :ch_type = 'bar' then
    og.interpret('e:\mas\emp3.ogd','g1',query0,true,pl_id);
    og.close('e:\mas\emp3.ogd','g1');
    end if;
    END;
    end;
    thanks
    i'd be appreciated on early reply.
    ali

    Metalink Note: 1078734.6
    Problem Description:
    ====================
    You are integrating forms and graphics. You are using the og.interpret which comes with the og.pll, to update a chart.
    You are using:
    OG.INTERPRET('graph.ogd', 'chart', 'DO_UPDATE;', TRUE, pl_id);
    You get the following error during runtime.
    OG-00609 INTERNAL PL/SQL EXECUTION ERROR
    Problem Explanation:
    ====================
    1.The procedure(Do_Update) that you are referencing does not exist in the graph(.ogd file).
    2. There is a bug if you are trying to specify .ogr as extension in
    your graph name or no extension.
    Solution Description:
    =====================
    1. Make sure that the name of the procedure that you are using in the
    OG.INTERPRET, exists in the graph file. DO_UPDATE is not a
    built-in procedure.
    2. The name of the graph should have the .ogd extension only. If you
    give a .ogr extension or no extension, it would give you an error.
    .

  • Stopping audio and starting another audio when button clicked

    Hello,
    I have a multiple slide document, and I want sound to stop
    when they click the "Next" button, and another audio clip to start.
    Here is what I have so far:
    //audio
    x = new Sound();
    x.attachSound("Slide1");
    x.start(0, 0);
    musicplay = true;
    forward_btn.onRelease = function() {
    gotoAndStop("2");
    numbering eq numbering++;
    So I just want it to play audio clip "Slide2" when they click
    forward_btn, and I want "Slide1" to stop.
    Thanks!

    Attach your second sound file to the frame that will play the
    second sound. Then try adding stopAllSounds() before the
    gotoAndStop("2"); to get the first sound to stop playing and then
    play the second sound.

  • Make an object invisible when button clicked

    For my newspaper i am creating each page has a next button and a previous button. I have assigned the previous button on one page to attach the movie of the page previous to it and then tested my movie. However when i click the previous button the movieclip does load but loads behind the starting moveiclip. So what i want to do is when the previous button is cliked, that page (movieclip) with the previous button on its dissappears and the previous page loads.
    Thanks for any help.

    Hi,
    You obviously didn't read my post at all...
    Nagikun wrote:
    i no i made a mistake in that code as i pasted the wrong one it should have been:
    s_prev.addEventListener(MouseEvent.CLICK, attachMovieclip);
    s_prev.addEventListener(MouseEvent.CLICK, hidePage);
    function hidePage(event:MouseEvent):void {
    Page1.visible = false;
    function attachMovieclip(event:MouseEvent):void {
    var addPage0:Page0 = new Page0();
    addPage0.x= 0   
    addPage0.y= 0
    addChild(addPage0);
    were Page0 is the main page and Page1 is the page that needs to be invisible when the previous button is clicked
    function hidePage(event:MouseEvent):void {
    Page1.visible = false;
    Where are you declaring the Page1 variable here?????  You must include a statement such as:
    var myVar:Page1 = new Page1();
    and then you must add Page1 to the stage.
    Message was edited by: markerline

  • When button clicked help

    I have buttons for help, back, next, finish, cancel.
    initially I have the back and finish buttons setEnable(false)
    but when I click on Next button I want the Back button to be setEnable(true)
    I wrote the following
    //ActionListener for jButton_Next Of NavigationButtons Panel
    newNavigationButtonsClass.jButton_Next.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    newNavigationButtonsClass.jButton_Back.setEnabled(true);
    When I click on the jButton_Next the jButton_Back is not enabled. May I know what I can change in this to get this working. Thanks.

    Is the code where you initially disable the button
    getting called again somehow? I'd check to make
    sure this code isn't getting called again after you
    enable the button within actionPerformed.

  • Problem setting a hidden item value when button clicked with dynamic action or pl/sql process

    Apex 4.1
    Oracle 11g
    I have a page that consists of a main region and several sub regions.  I have a pl/sql process in After Header SET_DISPLAY(:P400_DISPLAY :='MAIN';)
    Three subregions have a contional display where P400_DISPLAY = STORE.  This works in hiding the sub regions.
    Now I want to change the P400_DISPLAY value to STORE to show the subregions when I hit a button.
    I tried creating a dynamic action for on click of the add button but get the following error:
    The selected button uses a 'Button Template' that does not contain the #BUTTON_ID# substitution string
    I went to the templates and found:
    Substitution Strings
    Substitution strings are used within sub templates to reference component values. This report details substitution string usage for this template.
    Substitution String
    Referenced
    From
    Description
    #LINK#
    Yes
    Template
    To be used in an "href" attribute
    #JAVASCRIPT#
    No
    To be used in an "onclick" attribute
    #LABEL#
    Yes
    Template
    Button Label
    #BUTTON_ATTRIBUTES#
    No
    Button Attributes
    #BUTTON_ID#
    No
    Generated button ID will be either the button's Static ID if defined, or if not will be an internally generated ID in the format 'B' || [Internal Button ID]
    I then tried creating a page process, pl/sql, :P400_DISPLAY :='STORE'; when the appropriate button is pressed.  The button action is submit page. However, it does not change the P400_DISPLAY value and the subregions stay hidden.
    Suggestions please on how to fix the template or change the P400_DISPLAY value?

    The root issue is that, although you change the value of your page item, it isn't visible to other areas of the page until it is in the session. So, any other action based on the value of your page item; the visibility of a control, a report based on the item's value, etc. will all be unaffected by changing the value of the page item until it has been changed in the session. Even after this the items are stored in the session, you must thereafter do something to cause the value to be reevaluated. To see the effect of this, observe that your page loads and evaluates the value of your page item, it sees that is "MAIN" and hides the regions. However, it doesn't reevaluate them after this.
    So; your choices to get this value set in the session are to either Submit the page, or use JavaScript to set the value in the session. If you use the latter of these, you'll have to do some further work to cause the visibility tests to be re-run, So, let's stick with with the submit method.
    What you've done above sounds correct for this but, there are a lot of decisions you could have made that might have caused things not to happen in the correct sequence.
    Firstly, let's confirm that what I describe above is your problem. From the development environment, load the page, click the button to change the value and submit. Now, click the link labelled Session. Is it still set to MAIN? If so; this is your issue.
    Let's start with the your After Header computation. Did you set it to *only* run if the current value of your page item is NULL??? If not, that's your problem.
    Load Page -> Item set to 'Main' by Computation -> Click Button -> Item set to STORE -> Submit -> Load Page -> Item set to 'Main' by Computation
    See the problem?
    Assuming this isn't the issue, you created a Branch to the same page, right? What is your process point for the Branch? Is it *After* Validation, Computation etc? Because if not, you aren't changing the value before the submit happens.
    I bet it is the first issue but, take a look at these.
    Cheers,
    -Joe

  • JComboBox in JTable to activate when double-click instead of single-click

    I like to know if it is possible to change the default behaviour of JComboBox within the JTable,
    such that instead of single click on the JTable cell for the combo box's popup to appear, I double click on it instead.
    If it is possible please give some advice.
    Thanks.

    I couldn't get to settings because I couldn't scroll and don't know where that is located. I just saw a similar question from someone else. Three clicks on home button worked to turn off voiceover !! Phew!

  • Exception occurs!! when button click

    Hi.,
    I am using jdev 11.1.5
    I had created a jspx page in the master from and table detail
    I had draaged a af:button and named it as post
    In the action listner i had wrote the code as
        public void cb5_actionListener(ActionEvent actionEvent) {
                       BindingContainer bc = this.getBindings();
                OperationBinding op = bc.getOperationBinding("recintGlJrnlHd");
                Object r = op.execute();
    In the AMimpl Method i had write the code as
        public void recintGlJrnlHd(List selectedRowIndexs){
            ViewObjectImpl vo = this.getGlJrnlHd1();
            Row newRow = vo.createRow();
            ViewObjectImpl c1 = this.getCursorC1_1();
            Row cr1 = c1.getCurrentRow();
            newRow.setAttribute("GjhBu", cr1.getAttribute("GrhBu"));
            newRow.setAttribute("GjhPlant", cr1.getAttribute("GrhPlant"));
            newRow.setAttribute("GjhJrnlType", cr1.getAttribute("GrvlJrnlType"));
            newRow.setAttribute("GjhJrnlNo", cr1.getAttribute("GrvlJrnlNo"));
            newRow.setAttribute("GjhJrnlSfx", cr1.getAttribute("GrhJrnlSfx"));
            newRow.setAttribute("GjhJrnlDate", cr1.getAttribute("GrhJrnlDate"));
            newRow.setAttribute("GjhYear", cr1.getAttribute("GrvlYear"));
            newRow.setAttribute("GjhPeriod", cr1.getAttribute("GrvlPeriod"));
            newRow.setAttribute("GjhDesc", cr1.getAttribute("GrhDesc"));
            newRow.setAttribute("GjhAppl", "GLM");
            newRow.setAttribute("GjhReversal", "N");
            newRow.setAttribute("GjhStatus","N");
            newRow.setAttribute("GjhCreBy", "NULL");
           newRow.setAttribute("GjhCreDate", "NULL");
            newRow.setAttribute("GjhUpdBy", "NULL");
            newRow.setAttribute("GjhUpdDate", "NULL");
            this.getTransaction().commit();
        }when i press the button an Null Pointer EXception occurs
    at
    Object r = op.execute();can anyone help me to resolve this issue

    did you add recintGlJrnlHd method into bindings section in your page definition file?

  • Show chart region when button clicked??

    Hi All,
    i'm using apex 4.0
    initially i want to hide chart region,when clicked on button i want to show chart region...
    i have tried Dynamic actions ,show/hide but no hope...
    any one help me on this.. :)
    thanks in Adv.

    1. Firstly, make sure that the Chart region has a region template.
    2. If you don't want to use Dynamic Actions try something like the following:
    In the Region Definition set the Static ID = chart
    set the Region Attributes => style="display:none;"
    for the button set the URL = javascript:$("#chart").show();
    Cheers
    Shunt

  • Adding array item when button clicked

    When a button is clicked I want to take text from 4 different text fields and add them to the end of their respective arrays. I declared the array's as class arrays in a different JFrame, is it possible to take the text from this new JFrame's Textfields and add it to the arrays. Here's the code
      NewJFrame.AirlineName.add(jTextField1.getText());NewJFrame is the original frame, then it pops up a new frame when a button is clicked. They add text to the textfields and click add. It will then take the text and add it to the arrays.

    rhino17 wrote:
    That might be the problem. I'm creating a whole new Jframe, not a dialog box. Using a dialog will probably make the GUI work more smoothly and will allow you to display and retrieve information modally, but won't change basic object to object communication.
    I'm new to this whole Java Business ( HS student, learning w/o an actual teacher) . I'll do reasearch on a dialog box, or if u have a quick link to a tut that would be great. [How to Make Dialogs|http://java.sun.com/docs/books/tutorial/uiswing/components/dialog.html]
    And i did not understand BDLH's original message, he sounded like he was trying to be a ... you get the point.If you stay around this board for long, you'll see that BDLH is one of the nicer posters around. He'll kid at times but almost always in a gentle fashion. I however can be a flaming &#97;sshole at times.
    Is there a way to retrieve more than one input value?Absolutely. For instance if you used a JOptionPane, you could place a JPanel within it that has several JTextFields, and easily extract this information. But note that there are always messy quick and dirty ways of doing this that don't scale well as your project grows or changes. What BDLH was suggesting was to keep your logic and your GUI separate and your class coupling loose so as to avoid these pitfalls. Also know this. If you see him disagreeing with something someone here says (including or especially me), I'd go with his interpretation over mine any day as he's a pro.

  • Check Box for each row in report -- all rows deleting when pressing DELETE

    Hello experts! I have set up a report with a check box for each row. When I click the DELETE button to delete the selected rows, every single one of the rows get deleted...even the ones that are not selected. I have my process point set to "On Submit - After computations and validations".
    This is my delete process (SHG is the table and SHG_ID is the primary key):
    FOR i in 1..HTMLDB_APPLICATION.G_F01.count
    LOOP
    DELETE FROM SHG
    WHERE SHG_ID = HTMLDB_APPLICATION.G_F01(i);
    END LOOP;
    Also, I've added to query in the region source this line:
    htmldb_item.checkbox(1, SHG_ID) del,
    Where does the "1" come into this? Not sure what I am doing wrong!
    Message was edited by:
    user477193
    Message was edited by:
    user477193

    The 1 (first argument to all the htmldb_item.* APIs) corresponds to the array number in htmldb_application.g_fNN. So 1 will populate array g_f01, 2 will populate g_f02 and so on.
    Your code seems fine, it should delete only the checked rows. Are you sure there is no other process on the page that might be deleting the rows? See if you can put up an example on htmldb.oracle.com

Maybe you are looking for

  • W510: How to access my data from a functional hard drive after motherboard failure

    I made a mistake and paid the major price . That mistake being spilling a sugary drink on my laptop. I know, I know, my keyboard can and protect against damage from spills, but it was an entire glass. Anyway, I panicked and shut the system down and t

  • Urgently need code for tetris game

    RULES OF GAME: 1. Spheres come down from the top of the game board in pairs. A player can rotate them on their way down. 2. Spheres come in 4 different colors: red, blue, green, and yellow 3. Linking four spheres of the same color (horizontally, vert

  • Why are my safari bookmarks still present after a fresh install?

    I've just done a fresh install of osx to clean things up a little and I've just noticed that my bookmarks in safari are still saved.Is there a way of doing a fresh install with ALL of my personal data erased? I believe I did it correctly by rebooting

  • I don't know my decrypt storage password

    How can I get the password reset for this as I only have 4 attemps left then the device data is deleted?

  • A few quirks on new machine

    Got two problems with a new machine: The touchpad is *very* twichy.  Sometimes just moving the cursor over a button will select that button.  Is there a way to decrease the sensitivity of the touchpad?? Second problem is the battery icon in the taskb