Adding Just One Row at a Time

Multiple users can add Comments to a table, once added, the comments should be read only. How would I go about creating a region that will add just one row at a time, clear the region and then allow the adding of another row and not allow access to existing data rows?
Jeff

This example is doing exactly that:
http://apex.oracle.com/pls/otn/f?p=31517:170
Once added, the row can not be changed any more.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
-------------------------------------------------------------------

Similar Messages

  • Selecting only one row at a time

    Hi experts,
    i have following doubt regarding selecting rows from a db:
    Is there any way of selecting only one row AT A TIME from a dabase just to collect the data in rows instead of in a unique document containing all the rows?
    I would like you to ellaborate on this as i need to send only one row to the IE, and then other row, and so on... without throwing any error!
    I have seen that there are SELECT SINGLE and SELECT UP TO 1 ROW, but these two methods are only useful when retrieving only one row, and that does not match my requirements. I need to process all the rows but one by one..
    I know that we can use the receiver jdbc adapter as if it was a sender by means of its specific datatype, but how to do it row by row??
    Hope i had explained well..
    Thanks in advance and best regards,
    David

    Hi kiran,
    Yes, my table has 5 not null fields but i am selecting and updating fixes values so i think that I will definetely go for the next solution:
    SELECT * FROM t1 WHERE status='0' and ROWNUM<2;
    UPDATE t1 SET status='1' WHERE status='0' and ROWNUM<2;
    My only concern is if the update will take the same row that the select.... BTW, I think it will
    ..What do you guys think?
    I ve been trying to operate with your proposed queries but i received some errors. Your queries are very interesting but i think that with the above ones i meet my requirements as the status field will be 0 for not processed rows and 1 for precessed ones (and the update will look for the row that meets the same 'where' clause than the select, and then, and only then, it will set status='1').
    The only thing i have to care about is what i questioned before.
    Thanks a lot and best regards,
    David

  • How to send data one row at a time from xml to flex

    I want to setTimerEvent while sending data from xml to flex, one row at a time.
    I have attached the xml.
    Thanks in advance.

    Hi Greg,
    Thanks for the reply. You must have seen the xml which i have attached.Here is the .mxml code which i have written:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="accountData.send()">
    <mx:Script>
    <![CDATA[
    import mx.controls.*;
    import mx.rpc.events.FaultEvent;
    import mx.rpc.events.ResultEvent;
    import mx.collections.ArrayCollection;
    [Bindable]
    private var AccountInformation:ArrayCollection;
    private function AccountHandler(evt:ResultEvent):void
        AccountInformation = evt.result.xml.AccInfo;
    private function faultHandler(evt:FaultEvent):void
        var faultMessage:String = "Could not connect with XML file";
        Alert.show(faultMessage, "Error opening file");
    ]]>
    </mx:Script>
    <mx:HTTPService id="accountData" url="pgm1.xml" result="AccountHandler(event)" fault="faultHandler(event)"  />
    <mx:DataGrid x="20" y="24" width="950" dataProvider="{AccountInformation}" />
    </mx:Application>
    This reads and displays all the rows. But I want to display single row at a time with sometime time gap between the display of two consecutive rows.I am new to flex and this is my first code, so need your help on this.
    I hope i have made myself clear. If there is anything else please let me know.
    Looking forward to some solution.
    Thanks in advance.
    Regards,
    praj58

  • Repaint One Row at a Time

    Hi,
    I have a graphical program that repaints every 2000 ms. I want to call another program that queries the Oracle dbase and returns one row at a time, so that in the graphical program, I see the value of the next row every 2000 ms. Any ideas on how I'd do this?
    I have the basics on resultsets and statements and using while(rs.next()), etc.. Thanks. Chris.

    Insert "Thread.sleep(2000);" at places where you want your program to wait for 2000 milliseconds.

  • HT1222 I would like to be able to delete more then just one email at a time. I get a lot of mail that needs deleted and takes a long time to do. Would like to do 10 email deletes at a time on my iPad. Can you help me.

    I would like to be able to delete more then just one email at a time. I get a lot of mail that needs deleted and takes a long time to do. Would like to do 10 email deletes at a time on my iPad. Can you help me.

    open inbox
    tap Edit on top right of list.
    tap each email to check it off.  Then tap trash.   then 'trash selected mesages"
    done

  • Can I clear all the history for a selected site like CNN, not just one "reference" at a time for CNN

    I want to be able to clear certain parts of history. Not all of it for a time, and not just one "entry" at a time. For example: I have lots of entries in history for CNN or ESPN website. Can i remove all of the CNN entries at one time? Clearing it in that kind of grouping. I hope this is clear I am not so good with computer lingo. Thanks

    You can also use a colon (:) that is present to specify the protocol in the search bar.
    In the site bar you can sort by visited date and in the library you can click a column header (e.g. location) to the the history items.
    Note that you can copy (drag/drop) history items to a bookmarks folder to save (preserve) them as bookmarks.
    You would need to use a place: query and create a so called smart folder to have more control.
    *https://developer.mozilla.org/en/Places_query_URIs

  • How do I print all responses as pdf without selecting and printing just one response at a time?

    How do I print all responses as pdf forms without selecting and printing just one response at a time?

    Sorry this is not supported at this time. You can only download the responses as PDF one at a time.
    You can export the response table and print the whole table but if you want to print each response individually you have to do it manually. Sorry.
    Gen

  • How do I change the start/stop time for multiple songs not just one song at a time?

    How do I chnage the start/stop time for multiple songs not just one song at a time?

    I don't think you can in iTunes.
    Multiple editing in Get Info does not offer an option to change start/stop times.

  • Stored Procedure returning just one row

    Hi! I've a problem with a MSSQL Stored Procedure. This procedure works perfectlly if I execute it directly on MSSQL Query Analyzer. But the problem is in Java, when I call it, the resultset has just one row, and it must have 59, so I don't know what is going on. My procedure is a bit big, but please, help me :)
    This is the procedure code
    CREATE PROCEDURE desc_doctos
    @pt_gaveta varchar(250),
    @pl_idexp varchar(250),
    @pl_idcar numeric,
    @identa int
    AS
    DECLARE @id_carpeta_hija int
    DECLARE @nombre_hija varchar(500)
    DECLARE @fh_creacion datetime
    DECLARE @numero_carpetas int
    DECLARE @numero_documentos int
    DECLARE @cv_aplicacion_des varchar(100)
    DECLARE @id_gabinete_des int
    DECLARE @identa_modificado varchar(10)
    DECLARE @liga varchar(250)
    DECLARE @hora varchar(50)
    DECLARE @fecha varchar(50)
    DECLARE imx_descendencia CURSOR LOCAL FOR
    SELECT IOC.ID_CARPETA_HIJA, IOC.NOMBRE_HIJA,IC.FH_CREACION,
    convert(varchar(2),datepart(dd,IC.FH_CREACION))+'/'+convert(varchar(2),datepart(mm,IC.FH_CREACION))+'/'+convert(varchar(4),datepart(yyyy,IC.FH_CREACION)),
    convert(varchar(2),datepart(hh,IC.FH_CREACION))+':'+convert(varchar(2),datepart(mi,IC.FH_CREACION))+':'+convert(varchar(2),datepart(ss,IC.FH_CREACION)),
    IC.NUMERO_CARPETAS,IC.NUMERO_DOCUMENTOS,
    ICP.CV_APLICACION_DES,ICP.ID_GABINETE_DES
    FROM IMX_ORG_CARPETA IOC, IMX_CARPETA IC, IMX_CARPETAPUENTE ICP
    WHERE
    IOC.TITULO_APLICACION=@pt_gaveta
    AND IOC.ID_GABINETE= @pl_idexp
    AND IOC.TITULO_APLICACION = IC.TITULO_APLICACION
    AND IOC.ID_GABINETE = IC.ID_GABINETE
    AND IOC.ID_CARPETA_HIJA = IC.ID_CARPETA
    AND IOC.TITULO_APLICACION *= ICP.TITULO_APLICACION                
    AND IOC.ID_GABINETE *= ICP.ID_GABINETE
    AND IOC.ID_CARPETA_HIJA *= ICP.ID_CARPETA
    AND ID_CARPETA_PADRE= @pl_idcar;
    OPEN imx_descendencia
         FETCH NEXT FROM imx_descendencia INTO @id_carpeta_hija,@nombre_hija,@fh_creacion,@fecha,@hora,
              @numero_carpetas,@numero_documentos,@cv_aplicacion_des,@id_gabinete_des
         WHILE @@FETCH_STATUS = 0
         BEGIN
              SELECT @identa_modificado = @identa+1          
              IF (@id_gabinete_des IS NOT NULL)
              BEGIN
                   SET @liga = '../jsp/imxvisor.jsp?gaveta='+@cv_aplicacion_des+'&idExp='+convert(varchar(10),@id_gabinete_des)+'&cierre=si'     
                   BEGIN TRAN
                        --INSERT INTO IMX_ARBOL_TEMPORAL VALUES(@nombre_hija,@liga,@identa,0,'_blank','1',1,1)          
                        SELECT @nombre_hija,@liga,@identa,0,'_blank'
                        EXEC lista_doctos @pt_gaveta,@pl_idexp,@id_carpeta_hija,@identa_modificado
                   COMMIT TRAN
              END
              ELSE
              BEGIN
                   SET @liga = '../jsp/datosarbol.jsp?opcion=0&idcarpeta='+convert(varchar(10),@id_carpeta_hija)+'&carpetas='+convert(varchar(10),@numero_carpetas)
                   SET @liga = @liga + '&documentos='+convert(varchar(10),@numero_documentos)+'&hora='+@hora
                   SET @liga = @liga + '&fecha='+@fecha+'&idExp='+@pl_idexp+'&gaveta='+@pt_gaveta
                   BEGIN TRAN
                        --INSERT INTO IMX_ARBOL_TEMPORAL VALUES(@nombre_hija,@liga,@identa,0,'DATOS','1',1,1)
                        SELECT @nombre_hija,@liga,@identa,0,'DATOS'
                        EXEC lista_doctos @pt_gaveta,@pl_idexp,@id_carpeta_hija,@identa_modificado
                   COMMIT TRAN
              END
              EXEC desc_doctos @pt_gaveta,@pl_idexp,@id_carpeta_hija,@identa_modificado
              FETCH NEXT FROM imx_descendencia INTO @id_carpeta_hija,@nombre_hija,@fh_creacion,@fecha,@hora,
                   @numero_carpetas,@numero_documentos,@cv_aplicacion_des,@id_gabinete_des
         END
    CLOSE imx_descendencia
    DEALLOCATE imx_descendencia
    and this is my java code
    import java.sql.*;
    public class pruebasSQL{
         public static void main(String[] args){
              try{
                   Class.forName("com.inet.tds.TdsDriver").newInstance();     
                   Connection connection;
                   connection = DriverManager.getConnection("jdbc:inetdae7:localhost","user","pass");
                   connection.setCatalog( "DataBase");
                   CallableStatement statement = connection.prepareCall("{call desc_doctos ('NVA_EST',1002,0,1)}");
                   ResultSet rs = statement.executeQuery();
                   rs.last();
                   System.out.println(rs.getRow());
                   rs.close();
                   connection.close();
              catch(Exception e){
                   System.out.println(e);
    Hope u can help me =)
    Raul Medina
    [email protected]

    Hi! I managed to resolve this problem. This is what I did, hope somebody finds it usefull
    //connection, declarations, etc...
    PreparedStatement ps = connection.prepareStatement("exec desc_doctos 'NVA_EST',1002,0,1");
                   ResultSet rs = ps.executeQuery();
                   rs.next();
                   System.out.println(rs.getString(1));
                   while(ps.getMoreResults()){
                        rs = ps.getResultSet();
                        rs.next();
    +" "+rs.getString(2)+" "+rs.getString(3)+" "+rs.getString(4)+" "+rs.getString(5));
                        System.out.println(rs.getString(1));
    ------------

  • I have 3 drop down boxes in my report done SQL SSRS .. I want t to put them in the same row (just one row) ..how can I do it.?

    I have 3 drop down boxes in my report done SQL SSRS .. I want t to put them in the same row (just one row) ..how can I do it.?

    Hi Sashi123,
    Just as Ivan said, we do not have the ability to change the Report Manager in this way. Because we can’t change the parameters locations as this is not supported to write expressions for the location of parameters.
    While we can build a custom application in Visual Studio that we can get it through codes after deploying the report, then through URL we can get it by customization.
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Pages won't allow me to create a table with just one row.

    I'm trying to create a one row, two colum table in Pages. I have no problem with the columns. But I cannot create the table with just one row. Two rows apppears to be the minimum. Any ideas??

    In Pages 5.2, click the equal sign at bottom-left of table and reduce the row count to one.

  • Update one row at a time, Data Grid

    Is it possible to update one row of a mx:DataGrid at a time.  I want to be able to have a user push a button and info populates one row of the data grid, user changes some properties and pushes the button again and another row of values populate the DataGrid.  Everything I see does a mass population from an XML or what have you.
    Thanks

    I did this this to work, so for those of you who may find this info helpfull here is how I solved the issue.
    I instantiated an ArrayCollection object like so:
    private var _rowValues:ArrayCollection = new ArrayCollection();
    I simply referenced the .addItem() property of my ArrayCollection.
    I then added values to the ArrayCollection as follows
    _rowValues.addItem({Ingredient:ingredient, Amount:amount, Category:category}); //dataField:value
    and referenced the dataField proerpty of the DataGrid... so in my case my 3 dataField properties (in my mxml compontent) were as fillows:
    dataField="Ingredient"
    dataField="Amount"
    dataField="Category"
    all done, and it works.

  • How do I just backup just one user account on Time Machine?

    Hello everyone,
    I've moved to a new computer with Mountain Lion and didn't have my backup disc available when I first set up the computer.  Now, after restoring from my backup, I have two user accounts that I am trying to combine as per instructions here.  I know it's challenging and I may have to reinstall the OS and start from scratch, so I'd like to backup before I do it.  Unfortunately I haven't plugged in Time Machine since I've used Migration Assistant, because I didn't know if I could or if it'd overwrite my old data.
    How can I back up the new computer without creating two user accounts (the ones I'm trying to combine) on my external drive?  And please don't recommend just buying another external hard drive.  Any advice is appreciated.
    Thanks.

    Aside from starting over, losing whatever you've done on the new machine, see Pondini's Transferring files from one User Account to another. If you haven't done much and can afford to lose that data, I suggest starting over, following the steps in Pondini's Setup New Mac guide. That should result in just one user account.

  • My table lists only up one row at a time. dynamic don't work

    Hi!
    I have a table that consists of: ID, NAME, LINK and
    CONTENTID.
    It's 5 records in it at the moment.
    I create a recordset.
    I choose all (ID, NAME, LINK and CONTENTID).
    It only shows up ONE row. I mark the table and choose
    repeating behavior. I still only get up one row.
    I follow this tutorial:
    http://www.adobe.com/support/dreamweaver/building/users_delete_rcrds_php/users_delete_rcrd s_php03.html
    I use Dreamweaver CS3.
    Any good advice, cause I haven't got a clue.
    I've tried everything: the embassy, the German government,
    the consulate. I even talked to the U.N. ambassador. It's no use, I
    just can't bring my wife to orgasm.
    Marw

    Can't get it to work. But I start off with this:
    1.
    http://img521.imageshack.us/my.php?image=01tablexk1.png
    After I follow your instructions, and mark
    name I get this:
    http://img514.imageshack.us/my.php?image=02trselectedzg6.png
    But still I only get one post and have to use a Recordset
    navigation bar instead.
    Marw

  • How can I publish just one page at a time?

    I switched to a new computer, so I moved the domain file. When I open iWeb, all the pages are there. I made one small change, and only want to update the one page, but since it's on a new computer, all the pages are red and I can't publish just one page - every time I try, iWeb tries to publish all the pages, and it errors out every time. Can anyone tell me how to make it publish just one page at time in spite of the fact that all the pages in the sidebar are red? The only reason I can think for the error message is that there's too much content to do it all at once.

    Yes. If you are uploading to a server and not MobileMe, then just select the option publish to a local folder.
    When you have done this, then use Cyberduck or Transmit and upload just the one page from your site folder to your server, plus it's resultant file. So if you just want to upload a Welcome page for example, use Cyberduck to upload just the Welcome.html page and the Welcome files to your server and into your root folder on your server, which would be either a public_html folder, a www or htdocs folder.

Maybe you are looking for