How to add a row to database  from tableModel

hi friends,
i wnt to know that is it possible that when i add some rows in a table which has been created by a table model to add those rows to database like what happen in MS Access when u add rows and close the window the rows are automatically added to database
i want to know where to add the listener for that and which listener to use ?

thanks Andre,
but i have solved my problem in a different way, i have used
method SetValueAt() of AbstractTableModel which i have used to
create the table
actaully my question was little confusing, i wanted
to add rows as soon as the user has finished entering
a new row...it would be better if it could be done for
every cell but that would be more complex...

Similar Messages

  • How to add 2 rows in the form layout?

    In the detail page,form layout only one row pick up from database and it displays please anyone have idea about how to display 2 rows or 3 rows in a page?
    how to add 2 rows in the form layout?
    It's very urgent
    Thanks in advance

    No. You can only achieve this with smart custom templates. Here is sample code which will display multiple employees in form layout:
    <af:forEach items="#{bindings.EmployeesTable.rangeSet}" var="row">
    <af:panelForm rows="1" maxColumns="2" width="10%" id="RegionsFormItems">
    <af:inputText id="EmployeesEmployeeId" value="#{row.LastName}" label="EmployeeId" .... />
    <af:selectInputDate id="EmployeesHireDate" value="#{row.HireDate}" label="HireDate" ...... >
    <af:convertDateTime pattern="#{nls.datepattern}"/>
    </af:selectInputDate>
    </af:panelForm>
    </af:forEach>
    Steven Davelaar,
    JHeadstart Team.

  • How to add new row in KL02 trx - Activity type control data

    Hi guys.
    I am not a FI-CO consultant, but I want to add a row since KL02 transaction within a cost center, with a new fiscal year. When you access KL02 (change activity type), you set the activity type, then press Master Data and the basic screen appears. If you press the Display planning control button, you will see the "Display Activity Type Control Data" List. I wanna add a row for a specific cost center here, because the cost center I refer has not 2011 as fiscal year. I tried to use, since basic screen of KL02, use the Change planning control button, but when I set my cost center and 2011 as fiscal year, the Save button is inactive. Furthermore, I tried to press the Period screen and a message appeared "No data has been entered yet". So I dont know how to add one row for a cost center in the Planning control (Activity type control data) list of the KL02 transaction, specifically for an activity type. Do you know? Thanks in advance

    Hi,
    The list of cost centers in which the activity type is planned is given in KL02 under planning data.  In order to add a new cost center to this, you need to enter the activity type in transaction KP26 for a particular year. 
    Goto transaction KP26
    Give version - 0
    from period 1 to 12
    year - 2011
    cost center - mention the cost center
    Activity type - mention activity type
    goto overview screen F5 and add the plan price for the activity in the cost center.  This step will automatically add new row in the activity type control data.
    Hope this helps.
    Thanks,
    Ram

  • How to display first row value returened from a query as checked as default in a report

    How to display first row value returned from a query as checked as default in a report
    Example
    Parameter 1
    Paramerter2
    ABD
    x(checked)
    Test
    DEF
    JMG
    Mudassar

    Hi Mudassar,
    The issue is caused by the order in which the parameters appear in the report data tab can be difference between our report execution and it failing. In other words, “Parameter2” is execution before parameter “A” due to this issue. We can adjust the parameter’s
    order to solve the issue.
    If “Parameter2” is parameter “A”, we cannot use that expression. Because fields cannot be used in report parameter expression, if we want to display the first value returned from a query as default value, we have to fill the “Specify values” text box with
    the specific value in Default Values dialog box.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • How to add new row and update existing rows at a time form the upload file

    hi
    How to add new row and update existing rows at a time form the upload file
    example:ztable(existing table)
    bcent                      smh            nsmh         valid date
    0001112465      7.4                       26.06.2007
    0001112466      7.5                       26.06.2007
    000111801                      7.6                       26.06.2007
    1982                      7.8                       26.06.2007
    Flat file structure
    bcent                       nsmh         valid date
    0001112465     7.8     26.06.2007  ( update into above table in nsmh)
    0001112466     7.9     26.06.2007  ( update into above table in nsmh) 
    000111801                     7.6      26.06.2007 ( update into above table in nsmh
    1985                      11              26.06.2007   new row it should insert in table
    thanks,
    Sivagopal R

    Hi,
    First upload the file into an internal table. If you are using a file that is on application server. Use open dataset and close dataset.
    Then :
    Loop at it.
    *insert or modify as per your requirement.
    Endloop.
    Regards,
    Srilatha.

  • How can I connect to a database from ipaq with cldc??

    how can I connect to a database from ipaq with cldc??

    Hi Again
    There is a library by Mimer which allows you do connect to a Mimer SQL Server, don't know must about it, but here is a link.
    http://developer.mimer.com/
    If that doesn't suit you, I suspect that you will have to use some sort of proxy solution. Either by creating a servlet to accept the sql string you want to send, or by creating your own custom proxy server running J2EE. The servlet or the proxy server must be able to receive an SQL String, do the query to the actual database and return the results in some sort of format to the mobile device. Maybe just a space delimited string.
    Hope this helps
    -Daur

  • How to add empty rows in table in smart form

    how to add empty rows in table in smart form?
    plz help me regarding this
    send me ur queries to [email protected]

    You will need to add some extra rows to the internal table that your table is displaying.  Use a program node to append additional rows with a key but no argument.
    Alternaively a template may me more suitable for your requirement than a table.
    Finally, please do not include you e-mail address in your question.  Your question and the answers provided to it are for the benefit of everyone in the Community.
    Regards,
    Nick

  • HT1752 I am working on a chart in paged with 7 columns. Problem has occurred with amount of row. I have completed 999 rows and it won't allow me to continue. As I need to do approx 3000+ rows, can anyone explain to me how to add extra rows. Thanks Jane

    I am working on a chart in pages with 7 columns.
    Problem has occurred with amount of rows. I have completed 999 rows and it won't allow me to continue. As I need to do approx 3000+ rows, can anyone explain to me how to add extra rows. Thanks Jane

    Try posting in the Pages forum
    https://discussions.apple.com/community/iwork/pages

  • How to add datafile to standby database

    Hi,
    We have standby database on another site and we are using manual recovery. How to add datafile to standby database after datafile is added to primary database.
    We are on Oracle 9i R2.
    Please help.
    Thanks in advance

    Hi,
    When you recover the standby database after you added a datafile to the production, you will get an error that the file that needs recovery does not exist.
    At this point you can connect to the standby and issue:
    alter database create datafile '<original_name>' as '<new_name>';the new name is optional if the location of the files are the same.
    After that, you can continue recovering the standby database.
    Liron Amitzi
    Senior DBA consultant
    [www.dbsnaps.com]
    [www.orbiumsoftware.com]

  • How to add screenshot to this thread from my hard drive?

    How to add screenshot to this thread from my hard drive?

    Unfortunately there is no built in way to do this. You would need to upload the picture some where and link to it in HTML.
    (Flickr, Picasa, Drop Box, etc.)

  • How do I transfer my stickies database from my lion computer to my mountain lion computer?

    How do I transfer my stickies database from my lion computer to my mountain lion computer?

    No, the Notes app.
    But I just checked and didn't see any option there. But I could swear there was an import from stickies option...
    Anyways stickies works in ML. At least it does in my system, which was updated from Lion.
    So if you don't have the stickies app you can just copy it from your Lion installation.

  • How to Add a Row by clicking in other different Region

    Hello Im trying to build a page that allows me to add items to a region by clicking in a report region in the same page.
    I created a Report Region with my information , It has a link and one image in the region 1.
    in other region(REgion 2) I have a tabular form from one table,
    the idea is , how to Add rows to the tabular form(REgion 2) clicking items from the reports region (Region 1)the item could be the image or the link.
    I tried with Addrow javaScrip, on my image as a link or even my link, and it worked ,but it works just adding an empty row and i need to add a row with information of the report region (Region 2) for example ID_product.
    so this is other question how to use Addrow javascrip , including data in the row automaticly .
    Well this is what i have been trying ,I don't know if this is the correct way to do it , or if the best way.
    Maybe there is another method , like ajax or something
    Please any advice will be appreciated.

    Hello Im trying to build a page that allows me to add items to a region by clicking in a report region in the same page.
    I created a Report Region with my information , It has a link and one image in the region 1.
    in other region(REgion 2) I have a tabular form from one table,
    the idea is , how to Add rows to the tabular form(REgion 2) clicking items from the reports region (Region 1)the item could be the image or the link.
    I tried with Addrow javaScrip, on my image as a link or even my link, and it worked ,but it works just adding an empty row and i need to add a row with information of the report region (Region 2) for example ID_product.
    so this is other question how to use Addrow javascrip , including data in the row automaticly .
    Well this is what i have been trying ,I don't know if this is the correct way to do it , or if the best way.
    Maybe there is another method , like ajax or something
    Please any advice will be appreciated.

  • How to add new row to adf table progrmatically

    Hi,
    I have a bean with a list and correspoding getter & setter methods inside it.
    I created a datacontrol out of the bean and I am displaying af:table in the ui
    binded to this list.
    Ex:
    public class StudentBean {
    private List<Student> students;
    // getter & setter methods.
    jsp
    <af:table value="#{bindings.students.collectionModel}" var="row"
    rows="#{bindings.students.rangeSize}"
    emptyText="#{bindings.students.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.students.rangeSize}"
    rowBandingInterval="0"/>
    How to add a new row programitically to this adf table.
    I dragged and dropped 'Create' from operations menu on to jsp.
    But on click of that.no new row is being added to the current table.
    On click of a button in u.i I want to add a new row to the table.
    Thanks,
    Praveen

    Hi,
    The source code is as below.
    <af:table value="#{bindings.students.collectionModel}" var="row"
    rows="#{bindings.students.rangeSize}"
    emptyText="#{bindings.students.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.students.rangeSize}"
    rowBandingInterval="0"
    filterModel="#{bindings.rscGroupsQuery.queryDescriptor}"
    queryListener="#{bindings.rscGroupsQuery.processQuery}"
    filterVisible="true" varStatus="vs"
    selectedRowKeys="#{bindings.rscGroups.collectionModel.selectedRow}"
    selectionListener="#{bindings.rscGroups.collectionModel.makeCurrent}"
    rowSelection="single" id="t1"/>
    <af:commandButton actionListener="#{bindings.Create.execute}"
    text="Create" disabled="#{!bindings.Create.enabled}"
    id="cb1" partialTriggers="t1"/>
    Please let me know where am I doing wrong?
    On click of this button,it is not adding a row dynamically.
    Thanks,
    Praveen

  • How to add a row-selector to an existing SQL Query (updatable report)

    Hi,
    I screwed up an extensive updatable report in Apex 4.2 region by one time indicating the page may be parsed at run time.
    After setting this back (to validate query) a lot of the columns setting were gone, and also the row-selector
    I actually don't kno how to simply add this row-selector back into place.
    Anyone who can point me in the right direction?
    Thanks a lot
    Wim

    Wim,
    >
    Hi,
    I screwed up an extensive updatable report in Apex 4.2 region by one time indicating the page may be parsed at run time.
    After setting this back (to validate query) a lot of the columns setting were gone, and also the row-selector
    I actually don't kno how to simply add this row-selector back into place.
    Anyone who can point me in the right direction?Have you been able to recover all your other configuration and this is the last thing you need to fix? Or are all those other things needing to be fixed as well?
    The reason I ask is that you may want to consider just starting from scratch, if you haven't put lots of effort into recovering everything else just yet.
    On the other hand, if you just want to add a checkbox back into the SQL statement then you can add this, substituting your column name for empno of course:
    APEX_ITEM.CHECKBOX2(1,empno,'CHECKED') "Select"When you do this you'll get a warning that you're changing the interactive report, which you should accept. Then you need to make sure that the column is actually shown in the interactive report by making sure it's in the displayed columns list. And you may also need to change the display type of the column to "Standard Report Column"
    Hope that helps.
    Earl

  • How to add blank rows between groups of duplicate rows?

    here is my setup
    create table #tmpA(rowID int identity(1,1), fName varchar(10), lName varchar(10))
    insert into #tmpA
    select 'a', 'b' union all
    select 'a', 'b' union all
    select 'c', 'd' union all
    select 'c', 'd' union all
    select 'e', 'f' union all
    select 'e', 'f' union all
    select 'g', 'h' union all
    select 'g', 'h'
    select distinct fName, lName
    into #tmpB
    From #tmpA
    select t1.* from #tmpA t1 Join #tmpB t2 on t1.fName = t2.fName and t1.lName = t2.lName
    --output
    rowID  fName  lName
    1             a         b
    2             a         b
    3             c         d
    4             c         d
    5             e         f
    6             e         f
    7             g         h
    8             g         h
    I want to add blank rows between rows 2 & 3 and between rows 4 & 5 and between rows 6 & 7 in the join query above.  Is there Tsql that can accomplish something like this to make the join query result look like the following output?
    rowID  fName  lName
    1            a          b
    2            a          b
    3            c          d
    4            c          d
    5            e          f
    6            e          f
    7            g          h
    8            g          h
    or if this is not possible I could go with an output like this:
    rowID  fName  lName
    1             a         b
    2             a         b
    3
    4             c         d
    5             c         d
    6
    7             e         f
    8             e         f
    9
    10           g         h
    11           g         h
    Rich P

    I came up with the following on my own.  I was just hoping there might be a fancier way to do this - like without looping -- and yes, I could/should do this in a presentation layer, but I just wanted to do this in Query Analyzer (or whatever they call
    it now -- SSMS ...) -- BTW, thanks CELKO for the suggestion about how to insert multiple rows using Values -- works great.
    If (object_id('tempdb..#tmpA') is not null) drop table #tmpA
    If (object_id('tempdb..#tmpC') is not null) drop table #tmpC
    create table #tmpA(rowID int identity(1,1), fName varchar(10), lName varchar(10))
    insert into #tmpA
    values
    ('a','b'),
    ('a','b'),
    ('c','d'),
    ('c','d'),
    ('e','f'),
    ('e','f'),
    ('g','h'),
    ('g','h')
    create table #tmpC(rrowID int Identity(1,1), rowID int, fName varchar(10), lName varchar(10))
    declare @i int, @s varchar(10), @t varchar(10), @u varchar(10), @v varchar(10)
    select @i = min(rowID) from #tmpA
    set @u = 'xx'
    While (@u != 'yy')
    Begin
       select @s = fName, @t = lName from #tmpA Where rowID = @i
       if exists(select 1 from #tmpA Where rowID = @i + 1)
          select @u = fname, @v = lName From #tmpA Where rowID = @i + 1
       else
          set @u = 'yy'
        if @s = @u And @t = @v
           begin  
             Insert Into #tmpC(rowID, fName, lName) Select * from #tmpA Where rowID = @i
             Insert Into #tmpC(rowID, fName, lName) Select * from #tmpA Where rowID = @i + 1
           end      
        else
           begin
              Insert Into #tmpC(rowID, fName, lName) Select null, '', ''  
           end
        set @i = @i + 1
    End
    select * from #tmpC
    --output from #tmpC
    rrowID  rowID  fName  lName
      1            1         a        b
      2            2         a        b
      3          NULL 
      4            3         c        d
      5            4         c        d
      6          NULL  
      7             5         e        f
      8             6         e        f
      9           NULL  
      10           7          g        h
      11           8          g        h
      12         NULL  
    Rich P

Maybe you are looking for

  • Remote Desktop Connection (RDC) No longer working - Please help!

    Ok... here we go.  I cannot RDC to my network at work.  I originally was using a PC and was able to connect a few times using RDC before it stopped working.  It would not connect either wirelessly or connected via ethernet cable no matter what I trie

  • IPad Blocking Vs. iPhone Blocking?

    So I have both an iPhone and an iPad. I was just wondering, if someone blocks your phone number, does this also prevent you from messaging them using your iPad, since the person receives it in a different file (with an email address instead of a name

  • Contractors, Org Charts, and Co-employment issues

    Our legal and HR departments are concerned with putting contractors into our company's organization within SAP.  However, as a workflow developer, I would like to take advantage of the possibilities that are offered by having the contractors in the o

  • Additional Actions

    Hi all when i am performing 2 actions (same status) on the same day my first action is getting overwritten.  what could be the reason? and how to overcome this? and tell u to all that my additional actions are activated ! can anybody through a light

  • Need authorization object to update my authorization

    Dear SDN's, When i am double click to view the data sourse it is giving message "You have no authorization for data source " "You require authorization for the authorization object for the data source DW workbench - data source (Release>BW 3.X) wih t