Flash CFGRID Insert Row Problem

I think others have posted similar issues, but I've been
unable to find a resolution to it. I have a Flash grid in an
Accordion page that I need users to be able to insert data into.
Most of the time, the grid will be empty when the user enters data.
I've tried using the picturebar insert button, I've tried using
onClick="GridData.insertRow(mygrid);". I even tried a fairly
extensive script that seemed to be a timer that would detect a
double click to insert. None of these work well. The
onClick="GridData.insertRow(mygrid);" is the best in that I only
have to click a column field about 3 times before I can enter data
in the field. Multiple clicks to activate the field is just not
useable.

Hi,
Thanks for the reply, I have the same problem. The suggestion you gace did not work as it works only for flash grids. I am using an HTML grid.I just want to set a default value of OLST to the Client column. Please help!
<cfgrid name = "FirstGrid"
format="html"
height="320"
width="580"
font="Tahoma"
fontsize="12"
query = "rsIncidentTypes"
bgcolor="orange"
selectmode="edit"
selectcolor="teal"
delete="true"
insert="true"
insertButton = "Insert a Row"
deleteButton = "Delete selected row"
onChange="FirstGrid.dataProvider.editField(FirstGrid.selectedIndex,'Client', 'OLST');"
>

Similar Messages

  • Flash CFGRID Rows

    Is there a way to limit the number of rows on a Flash CFGRID?
    The maxrows attribute just limits the number of data rows to
    display, not the number of rows on the grid. The grid's always show
    7 rows, whether there is data or not, but I want to shorten
    that.

    I can't help with the flash grid, but the html grid problem
    can be solved with a custom column renderer
    http://blog.cutterscrossing.com/index.cfm/2007/11/30/CF8-Ajax-Grid-Renderers-and-Events
    Check out the above link and instead of an image replace with
    a check box.
    Ken

  • Rows of Data cannot be inserted (Loop Problem) (urgent)

    Hi Guys
    create table JobWorker
    (JobID               Integer,
    JobName          char(20),     
    Name               char(20),      
    Department          char(20),
    Responsibilities char(30),
    JobRating char(20),
    Primary Key (JobID));
    Above is my table that requires rows of data.
    Create sequence demoseq increment by 1 start with 1;
    DECLARE
    v_rows integer := 1000; -- THIS IS THE KEY VALUE = NUMBER OF ROWS IN TABLE
    v_JobName char(20);
    v_temp integer := 1;
    BEGIN
    FOR v_counter IN 1 .. v_rows LOOP
    IF (v_temp > 10) THEN
    v_temp := 1;
    END IF;
    IF (v_temp = 1) THEN
    v_JobName := 'Pharmacist';
    insert into JobWorker values (demoseq.nextval, v_JobName, 'Richard Smith','Medical', 'Import and Export', 7);
    ELSIF (v_temp = 2) THEN
    v_JobName := 'Security Officer';
    insert into JobWorker values (demoseq.nextval, v_JobName, 'Matt Stevens', 'Security', 'Check Club Tickets', 6);
    ELSIF(v_temp = 3) THEN
    v_JobName := 'Systems Analyst';
    insert into JobWorker values (demoseq.nextval, v_JobName, 'Navdeep Kamboz', 'Finance', 'Analyse Systems', 10);
    ELSIF(v_temp = 4) THEN
    v_JobName := 'Mathematician';
    insert into JobWorker values (demoseq.nextval, v_JobName, 'Paul Potts', 'Algebra and Data Handling', 'Teach Algebra', 4);
    ELSIF(v_temp = 5) THEN
    v_JobName := 'DB Administrator';
    insert into JobWorker values (demoseq.nextval, v_JobName, 'Christine Bleakley', 'Oracle, SQL, DB2', 'Granting User Privileges', 9);
    ELSIF(v_temp = 6) THEN
    v_JobName := 'Dentist';
    insert into JobWorker values (demoseq.nextval, v_JobName, 'Edward Walker', 'Manager', 'General Checkups', 8);
    ELSIF(v_temp = 7) THEN
    v_JobName := 'Electrician';
    insert into JobWorker values (demoseq.nextval, v_JobName, 'Dave Panesar', 'Engineering', 'Examine Specifications', 3);
    ELSIF(v_temp = 8) THEN
    v_JobName := 'Cricketer';
    insert into JobWorker values (demoseq.nextval, v_JobName, 'Sachin Tendulkar', 'Batsman', 'Scoring Hundreds', 9);
    ELSIF(v_temp = 9) THEN
    v_JobName := 'Personal Trainer';
    insert into JobWorker values (demoseq.nextval, v_JobName, 'Brock Lesnar', 'Weights Dept', 'Train People on Weights', 5);
    ELSIF(v_temp = 10) THEN
    v_JobName := 'Area Manager';
    insert into JobWorker values (demoseq.nextval, v_JobName, 'Joe Hoffland', 'Midlands', 'Visit Stores and Examine', 2);
    END IF;
    END LOOP;
    END;
    It does work...but the following problems I get are...
    As you can see I have populated the tables as a Loop..
    But if I was to generate a statement : Select * from JobWorker WHERE Name = 'Joe Hoffland';
    It provides me with the result as 'No Rows Selected'.
    The first Insert consists of someone called Richard Smith. Every row of data is only populated with his name and his row of data.
    I cannot get the other 9 insert rows to work....
    Is there something wrong with the above code? I require your help guys! Thank You!

    Incrementing v_temp would help :). Also column department length is too small. You need to increase it to 25. And sing CHAR isn't a good idea. Use VARCHAR2 instead:
    SQL> DECLARE
      2  v_rows integer := 1000; -- THIS IS THE KEY VALUE = NUMBER OF ROWS IN TABLE
      3  v_JobName char(20);
      4  v_temp integer := 1;
      5 
      6  BEGIN
      7  FOR v_counter IN 1 .. v_rows LOOP
      8 
      9  IF (v_temp > 10) THEN
    10  v_temp := 1;
    11  END IF;
    12 
    13  IF (v_temp = 1) THEN
    14  v_JobName := 'Pharmacist';
    15  insert into JobWorker values (demoseq.nextval, v_JobName, 'Richard Smith','Medical', 'Import and Export', 7);
    16  ELSIF (v_temp = 2) THEN
    17  v_JobName := 'Security Officer';
    18  insert into JobWorker values (demoseq.nextval, v_JobName, 'Matt Stevens', 'Security', 'Check Club Tickets', 6);
    19  ELSIF(v_temp = 3) THEN
    20  v_JobName := 'Systems Analyst';
    21  insert into JobWorker values (demoseq.nextval, v_JobName, 'Navdeep Kamboz', 'Finance', 'Analyse Systems', 10);
    22  ELSIF(v_temp = 4) THEN
    23  v_JobName := 'Mathematician';
    24  insert into JobWorker values (demoseq.nextval, v_JobName, 'Paul Potts', 'Algebra and Data Handling', 'Teach Algebra', 4);
    25  ELSIF(v_temp = 5) THEN
    26  v_JobName := 'DB Administrator';
    27  insert into JobWorker values (demoseq.nextval, v_JobName, 'Christine Bleakley', 'Oracle, SQL, DB2', 'Granting User Privileges',
    9);
    28  ELSIF(v_temp = 6) THEN
    29  v_JobName := 'Dentist';
    30  insert into JobWorker values (demoseq.nextval, v_JobName, 'Edward Walker', 'Manager', 'General Checkups', 8);
    31  ELSIF(v_temp = 7) THEN
    32  v_JobName := 'Electrician';
    33  insert into JobWorker values (demoseq.nextval, v_JobName, 'Dave Panesar', 'Engineering', 'Examine Specifications', 3);
    34  ELSIF(v_temp = 8) THEN
    35  v_JobName := 'Cricketer';
    36  insert into JobWorker values (demoseq.nextval, v_JobName, 'Sachin Tendulkar', 'Batsman', 'Scoring Hundreds', 9);
    37  ELSIF(v_temp = 9) THEN
    38  v_JobName := 'Personal Trainer';
    39  insert into JobWorker values (demoseq.nextval, v_JobName, 'Brock Lesnar', 'Weights Dept', 'Train People on Weights', 5);
    40  ELSIF(v_temp = 10) THEN
    41  v_JobName := 'Area Manager';
    42  insert into JobWorker values (demoseq.nextval, v_JobName, 'Joe Hoffland', 'Midlands', 'Visit Stores and Examine', 2);
    43 
    44  END IF;
    45  v_temp := v_temp + 1;
    46  END LOOP;
    47  END;
    48  /
    PL/SQL procedure successfully completed.
    SQL> Select * from JobWorker WHERE Name = 'Joe Hoffland';
         JOBID JOBNAME              NAME                 DEPARTMENT                RESPONSIBILITIES               JOBRATING
            10 Area Manager         Joe Hoffland         Midlands                  Visit Stores and Examine       2
            20 Area Manager         Joe Hoffland         Midlands                  Visit Stores and Examine       2
            30 Area Manager         Joe Hoffland         Midlands                  Visit Stores and Examine       2
            40 Area Manager         Joe Hoffland         Midlands                  Visit Stores and Examine       2
            50 Area Manager         Joe Hoffland         Midlands                  Visit Stores and Examine       2
           120 Area Manager         Joe Hoffland         Midlands                  Visit Stores and Examine       2
           130 Area Manager         Joe Hoffland         Midlands                  Visit Stores and Examine       2
           140 Area Manager         Joe Hoffland         Midlands                  Visit Stores and Examine       2
         JOBID JOBNAME              NAME                 DEPARTMENT                RESPONSIBILITIES               JOBRATING
           970 Area Manager         Joe Hoffland         Midlands                  Visit Stores and Examine       2
           980 Area Manager         Joe Hoffland         Midlands                  Visit Stores and Examine       2
           990 Area Manager         Joe Hoffland         Midlands                  Visit Stores and Examine       2
          1000 Area Manager         Joe Hoffland         Midlands                  Visit Stores and Examine       2
    100 rows selected.
    SQL> SY.

  • Cfgrid list all inserted rows

    I build a cfgrid without any rows(no bind, no query), then I let user inserts some rows. I wan to read the user inserted rows back in javascript when click a button.
    I have code like this:
                   grid = ColdFusion.Grid.getGridObject('animal_group_grid');                  
                    selec=grid.getSelectionModel();
                    selec.selectAll();
                    sele = grid.getSelections();               
                    alert(sele[0].data.groupID );
    groupID is a column name in grid.
    However, It returns "undefined"
    What is wrong?

    Hi,
    IF you want to select all the rows for VBAK-
    Write-
    Data:itab type table of VBAK,
           wa like line of itab.
    SELECT * FROM VBAK into table itab.
    Itab is the internal table with type VBAK.
    Loop at itab into wa.
    Write: wa-field1,
    endloop.

  • DataGrid high rate insert rows

    Hi everyone,
    I'm working in a project where we have a high rate messages (like 2-3k per second) . We use Java on server side, BlazeDS and Flex.
    We have a problem on flex side, the messages are insert on a DataGrid where we just show the last 1k messages, after the 100k messages passed through to the application, the datagrid start to refresh slower than before.
    Do you know how can i solve this problem?
    I executed the profiler and i saw that we don't have memory leaks
    Thanks in advance.

    sorry if i sound dense but i am picking up on the phrase "but i never tried to increase the rate "
    i don't know anything about your architecture but are you cramming data back in some forced rate ?  are you force streaming ? what exactly are you doing  !!
    that poor flash player sounds overwhelmed.
    Date: Thu, 28 Apr 2011 10:05:12 -0600
    From: [email protected]
    To: [email protected]
    Subject: DataGrid high rate insert rows
    There are 7 columns and the messages are around 200 bytes each, this means that the 200 bytes are split in the 7 columns.
    Those messages are encapsulated in an object Message inside of which there are MessageFields that have two properties, tag and value.
    Initially i sent 2.5k message per second but i never tried to increase the rate while the message were been delivered, when i resolve this issue i am going to try that.
    At the begin (with 2.5k per sec) the refresh rate is quite good (almost realtime), i mean that the datagrid refreshes the sequence number of the messages really fast, each second i saw the sequence number increase in 2.5k.
    After the first minute the datagrid starts to collapse and it refreshes every few seconds, like 5 seconds for example, and once its refreshed the sequence number increases in 5 * 2.5k, so the message are coming at the rate.
    Regarding the use of cpu i underestimated that point, i was focus on the memory usage but i've showed that flash plugin recently it's between the first 3rd process and sometime took the 1st place.
    How i can reduce the use of cpu?
    >

  • Flash CFgrid Limitations?

    Hey Guys-
    I have a situation that I'm a little confused with. I have a
    Flash-based CFGrid, populated with a query. This query, I added a
    null/empty column to and use that to display a checkbox for each
    row. This works fine. I use the checkboxes to select what rows will
    be sent to the next page for some processing.
    The problem I am having is, when you submit, only 8 rows are
    sent on to the next page. Even if you select more than 8
    checkboxes. Now, if I change the grid format to HTML, it sends on
    more than 8 no problem.
    The issue with an HTML grid is the column that holds the
    checkboxes doesn't display a checkbox unless you double click on
    the cell, so it's not apparent what is in that field.
    Anyone know what the limitations are on the flash cfgrid for
    sending this sort of data on? How can I figure this out???
    Thanks!

    I can't help with the flash grid, but the html grid problem
    can be solved with a custom column renderer
    http://blog.cutterscrossing.com/index.cfm/2007/11/30/CF8-Ajax-Grid-Renderers-and-Events
    Check out the above link and instead of an image replace with
    a check box.
    Ken

  • Not able to insert row programticaly

    hi am trying to insert row to another viewObject from another viewobject programaticaly ,can somebody help me,i have recreate the problem i upload it in hostfile,am in jdeveloper 11.1.1.6.0
    am geting this log error
    Caused by: oracle.jbo.InvalidOwnerException: JBO-29114 ADFContext is not setup to process messages for this exception. Use the exception stack trace and error code to investigate the root cause of this exception. Root cause error code is JBO-25030. Error message parameters are {0=UamUserdetails, 1=oracle.jbo.Key[marksn ]}
         at oracle.jbo.server.EntityImpl.internalCreate(EntityImpl.java:1341)
         at oracle.jbo.server.EntityImpl.create(EntityImpl.java:1020)
         at oracle.jbo.server.EntityImpl.callCreate(EntityImpl.java:1197)
         at oracle.jbo.server.ViewRowStorage.create(ViewRowStorage.java:1152)
         at oracle.jbo.server.ViewRowImpl.create(ViewRowImpl.java:498)
         at oracle.jbo.server.ViewRowImpl.callCreate(ViewRowImpl.java:515)
         at oracle.jbo.server.ViewObjectImpl.createInstance(ViewObjectImpl.java:5714)
         at oracle.jbo.server.QueryCollection.createRowWithEntities(QueryCollection.java:1993)
         at oracle.jbo.server.ViewRowSetImpl.createRowWithEntities(ViewRowSetImpl.java:2492)
         at oracle.jbo.server.ViewRowSetImpl.doCreateAndInitRow(ViewRowSetImpl.java:2533)
         at oracle.jbo.server.ViewRowSetImpl.createAndInitRow(ViewRowSetImpl.java:2498)
         at oracle.jbo.server.ViewObjectImpl.createAndInitRow(ViewObjectImpl.java:11042)
         at worklis.view.beantest.addnew(beantest.java:138)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1256)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
         at org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:148)
         at org.apache.myfaces.trinidad.component.UIXTable.broadcast(UIXTable.java:279)
         at oracle.adf.view.rich.component.UIXTable.broadcast(UIXTable.java:145)
         at oracle.adf.view.rich.component.rich.data.RichTable.broadcast(RichTable.java:402)
         at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1018)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:386)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)Edited by: adf009 on 2013/02/15 4:43 PM
    Edited by: adf009 on 2013/02/15 4:57 PM
    Edited by: adf009 on 2013/02/15 7:22 PM

    the code am using is below
        public void addnew(ActionEvent actionEvent) {
            // Add event code here...
            // Add event code here...
            //Code to get the bindings for TargetVO :
            Map<Object,String> mp=new HashMap<Object, String>();
                    DCBindingContainer bindings2 =
                       (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
                   JUCtrlHierBinding obj = (JUCtrlHierBinding)bindings2.findCtrlBinding("UamUserdetailsView2");
                   ViewObject targetVO = obj.getViewObject();
              DCBindingContainer bindings =
                       (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
                   DCIteratorBinding empIter =
                       bindings.findIteratorBinding("DeltTable1Iterator");
            //SourceVO1Iterator is the iterator under Executables section for the SourceVO1 bindings.
            RowSetIterator roleRSIters = empIter.getRowSetIterator();
            RowSetIterator rs1 = roleRSIters.getRowSet().getViewObject().createRowSetIterator(null);
            rs1.first();
                   NameValuePairs nvp = null;
                   String username = null;
            while (rs1.hasNext()) {
                               Row r = rs1.next();  
                       nvp = new NameValuePairs();
                      // nvp.setAttribute("organisationid", r.getAttribute("organisationid"));
                       nvp.setAttribute("Organisationid", getorgid());
                       System.out.println("printedorgid" +getorgid());
                       nvp.setAttribute("Username",r.getAttribute("Username"));
                       nvp.setAttribute("Username1",r.getAttribute("Username"));
                       nvp.setAttribute("Firstname",r.getAttribute("Firstname"));
                       nvp.setAttribute("Surname",r.getAttribute("Surname"));
                       nvp.setAttribute("Emailaddress",r.getAttribute("Emailaddress")); 
                       // username = (String)r.getAttribute("Username");
                       System.out.println("prininstead " + nvp);
                     //  targetVO.createAndInitRow(nvp);
                        r = targetVO.createAndInitRow(nvp);
                        targetVO.insertRow(r);
                        //createAndInitRow(AttributeList nvp);
            //Row row = targetVO.createAndInitRow(nvp);
              //      targetVO.insertRow(row);
                   rs1.closeRowSetIterator();
                   targetVO.getApplicationModule().getTransaction().commit();
        }i have re-created the problem i upload in this hostfile,you can have the whole picture of what am trying to do
    http://www.4shared.com/zip/RaZ07PWS/createRow.html
    Edited by: adf009 on 2013/02/15 7:36 PM
    Edited by: adf009 on 2013/02/15 7:38 PM
    Edited by: adf009 on 2013/02/15 8:01 PM

  • Database got halted while inserting rows

    I have a 9i database running on solaris not restarted for 15 days.It just got halted or hanged while inserting rows in a table.When restarted everything is just fine and those rows have been inserted in no time!!What might be the reason?Dont tell me 'lock' because I have already checked for ora:60 error in alertlog.Would you please give some direction to drill it down .

    Did you met the problem , only when you inserting the rows ? Or is there something else which leads this situation ? most of the occasion when
    you found your database halt is because of your archivelogs . I would
    still like to know if you running your db in archivelog mode ? It also be the
    case that you set archive_log_start = true in the pfile and diden't fire
    alter database archivelog at the sql prompt .
    Hare Krishna
    Alok

  • Error while inserting rows in a table

    Hi,
    We have recently migrated from 9i to 10g. We have a scheduled job out our DB which first deletes all the rows from a table and then inserts them back by selecting rows from 5 tables. This table has a composite primary key based on 6 columns in it. In 9i, when i try to insert rows into the table after deleting all the rows from it, I am able to insert the data successfully . However, in 10g, when i try doing the same operation, it fails with the ORA error:
    ORA-00001: unique constraint violated
    The same query which works perfectly in 9i fails in 10g
    If anybody has some ideas on how to resolve the same, kindly let me know.
    Thanks in advance.

    Hi,
    I was finally able to resolve the reason behind that error message and found it even more weird. The error was because I was using the substr function for extracting the characters 1-4 from a column which is 5 characters long. When i specify the query as:
    select substr(column1, 1, 4)) from table1;
    only the characters 1-3 are retrieved. Now if i change the query to select substr(column1, 1, 5)) from table1, in that case also only 3 characters are retrieved although i have specified the substr to start from 1 and read till 5 characters. Also, when i run the query:
    select length(substr(column1, 1, 4)) from table1 or select length(substr(column1, 1, 5)) from table1
    I get the answer as 3.
    However, the most amazing part is that the query is working perfectly in 9i and is retrieving the data correctly i.e. from substr 1-4.
    Can anyone suggest what the problem could be?
    Thanks
    Edited by: CrazyAnie on May 13, 2009 1:34 AM

  • Inserting row in ALV

    hi  experts ..
    I want to add a row in the alv when i click on add button..
    I know there is insert row and append row buttons available in alv but i dont want those names ..
    Can i change the name of standard buttons or is there sm class that i can use to develop this functionality.
    jagruti.

    Hi Jagruti,
    You just have to add a new button with whatever name you want, and map it to the existing functionality in ALV. It will work and you dont need to do anything else.
    The code will be:
    data:
    lr_button type ref to cl_salv_wd_fe_button,
    lr_function type ref to cl_salv_wd_function.
    CREATE OBJECT lr_button.
    lr_button->set_text( 'Your text' ).
    lr_button->set_tooltip( 'Your tooltip' ).
    lr_function = l_alv_model->if_salv_wd_function_settings~create_function( id = 'INSERT' ).
    <b>lr_function->set_function_std( IF_SALV_WD_C_STD_FUNCTIONS=>EDIT_APPEND_ROW ).</b>
    lr_function->set_editor( lr_button ).
    The method set_function_std sets your funcion to take the behaviour of the standard ALV function for inserting rows. So it would work automatically. You have only changed the text.
    <b>If your problem is solved, please award points and close the threads. Couple of your previous threads are still open, please close them</b>
    Regards,
    Nithya

  • Help in inserting rows into a table

    I have a table called acct_fact,
    I need to insert rows in the table using a script but the problem is there's a column called seq_nbr which has random seq nbr of 14character length like 'ZWX98MGD9MVAD6J','ZWX98MG67RVAD6J' etc.,
    While inserting rows I need to generate such seq_nbr for those columns and insert rows into the table, can I use any such mechanism in my insert query to insert such random nbr's while inserting rows into a table.
    If so please suggest me

    Hi Peter,
    Thankyou for the quick reply:)
    can you suggest me how to implement it here in my script snippet:
    while read var_acct_nbr
    do
    echo "update acct_attr set acct_attr_exp_dt ='$ExpDate' where Acct_Attr_Value_Text='15' and acct_attr_exp_dt is null and person_id='LDCarrBillAgrm' and acct_nbr='$var_acct_nbr' ;" >> ./$DirectoryName/SQLQuery_$TimeStamp.sql
    echo "insert into acct_fact values ('$var_acct_nbr','$ExpDate','$ExpTime','*seq_nbr*','N','ProjTereza','Remoção de acordo d; data de expiração: $ExpDate',null,'1','LDE',null);" >> ./$DirectoryName/SQLQuery_$TimeStamp.sql
    done < ./$DirectoryName/ExpireAccts_$TimeStamp.LOG
    the script takes each acct_nbr nbr form a input file and fires an insert statement.
    The one in bold is the column where such sequence need to be inserted.can you help me in implementing the way you suggested in my script i.e., insert statement
    Thanks in Advance:)
    Edited by: rkrish on Jun 27, 2012 3:04 AM

  • Insert row into database table via dynamic form -

    I have developed a portlet via Portal. I used a dynamic page. I replaced the default "<ORACLE>select * from scott.emp</ORACLE>" text to call a package procedure that uses HTP.P to render the web page. My goal is to show all rows in a table and allow edits to any row, and also add a checkbox on each row to allow the user to mark for delete. I am successfully using a FOR loop and showing all of the data in a grid. My problem - How do I update and delete the data? I have a submit button with nothing behind it currently. I would ideally like to use pl/sql code to do the updates and/or deletes as marked on the page by the user, but I'm not sure how to hook the submit button to calling a procedure to execute the updates/deletes.
    Any help would be appreciated -
    Thanks -
    Kent

    Hi Patrick - Thanks for your response! I have browsed your page quickly - very informative and I will look in more detail. My form design looks as below (using a simple example with emp id and emp name columns) - perhaps this will have to change, but I wanted the user to be able to insert using html fields id_add and name_add, then update (or mark for deletion) any of the existing rows (they are rendered with for loop in pl/sql - eg, id_1/name_1, id_2/name_2, etc for each row in the table). I was hoping the submit action would call a pl/sql that would look at all rows, and then act if an update or delete were required. This makes it difficult to use parms, I believe - I may be able to change the design to show an "update row" below the current "insert row" so that, as in your example, when the user highlights a row, it populates in the update area where changes can be made, and an update button used to effect the changes to a single row at a time.
    Thanks again, I appreciate your input!
    Kent
    ______________ _________________ <insert_button>
    Emp Id (textbox) Emp Name (textbox) Del_Checkbox
    ______________ _________________ ___ <SUBMIT_BUTTON>
    ------------------------- ----------------------------- ------

  • Help with a flash html inserting into DW

    Hello,
    I have created a enquiry section in flash for one of my html DW pages for my site. When I publish the flash doc ti creates a html page (Contact.html). When I open the flash html page in DW or upload it to my server, everything works fine. I recieve an email at my prefered destination etc etc. But as its only a section of my contact page of my website i need to insert it into my site page (get_in_touch.html) soon as i try and take all the stuff from contact.html and insert it into a div in my get_in_touch.html it doesn't respond when the submit button is pressed..... Can someone please help!!!!!
    Dan

    Thanks for all your help. I've managed to sort out the problem, still not
    sure what it was.... My sites live now.
    Just one question for you if you dont mind.
    The page which has the flash on it (yes this one again!) Well if someone
    goes to the page with out having flash player installed on their machine,
    i'm looking for some script to detect that there computer doesn't have
    Flash and redirect them to another html page I've created.
    Would really appreciated any advice you may have.
    many thanks,
    Dan
                                                                                    pziecina                                                 
                 <[email protected]>                                                                               
    To
                 09/09/2009 16:40                Daniel Herrington        
                                                 <[email protected]
                                                 m>                       
                    Please respond to                                       cc
                 clearspace-571537347-50                                  
                 [email protected]                               Subject
                      ums.adobe.com              Help with a
                                                 flash html inserting into DW
                                                                                    Hi
    Somewhere above your tag, you will have a line similar to this - Also in your tag the swf file -
    These are the files that I said may be wrong or missing.
    However if you just edit the flash generated page and include the items you
    require in this, and maintain the same file position, you should have no
    problems,
    PZ

  • ORA-01840 error on inserting row trough object browser

    Dear Oracle Community,
    I'm getting the ORA-01840: Input value not long enough for date format error when I try to insert a row with the date value 24-MAY-10 with my object browser.
    This is the problem column:
    Column Name | Data Type| Nullable| Default | Primary Key
    SIGNUPDATE |DATE |No | - | -
    Now this will look like I'm using the wrong date format so I have googled and found that I should use the following query to check for the correct date format my database uses.
    select * from nls_session_parameters where parameter = 'NLS_DATE_FORMAT';
    This returns the DD-MON-RR format so I think I'm inserting the correct date format here.
    What am I doing wrong?
    I have already tried inserting with the following formats and tried replacing the - sign with the / sign.
    DD-MON-RR
    DD-MON-YY
    DD-MON-YYYY
    I have also tried using the SYSDATE is in the DD-MON-RR format trough the SQL commandline.
    I'm feeling like an idiot this should be simple right?
    Please help me out here this is frustrating, many thanks in advance.
    J Nijman

    using the SYSDATE is in the DD-MON-RR format trough the SQL commandlineIn sqlplus try:
    insert into <tablename> ( <date columnname> [, ... ] ) values ( sysdate [, ...] );
    To get a sysdate date value added. Or specify the format string with a to_date expression:
    insert into <tablename> ( <date columnname> [, ... ] ) values ( to_date( '24-may-10', 'dd-mon-yy') [, ... ] );
    The engine isn't picky about separators agreeing with the format string, most any character in place of the '-' dash is acceptable.
    Now to get an ora-1840 out of the object browser (Table/Data/Insert Row), I'm not having any luck trying to duplicate that. With the default nls_date_format 'DD-MON-YY' even trying bad dates (i.e. 30-feb-10 or 30-feb-2010, or even 31-apr-10) it either does an ora-1839: date not valid for month specified, or with a four digit year it gives an ora-1830: date format picture ends before converting entire input string.
    Any RDBMS presents programmers with date and datetime challenges, its not just an oracle-frustration thing ;)

  • Netweaver Error in Logs - JRA - Could Not Insert Row To ResultSet

    Hi there
    we have an MII 12.1.5 instance (with Patch) installed on a Netweaver platform (SP 3).  We're using the JRA action blocks to call an RFC (we populate the request doc with multiple nodes first) and they're all executing completely without any problems at face value.  When I look at the Netweaver logs (MII filter on), I'm getting quite a few entries per transaction run which hold the following Error Messages:
    Message:
    Could Not Insert Row To ResultSet
    Category:
    /Applications/XMII/Xacute
    or
    com.sap.xmii.storage.connections.JRAUtil
    Location:
    com.sap.xmii.storage.connections.JRAUtil
    Application:
    sap.com/xappsxmiiear
    Has anyone seen these errors or know what could be causing them?
    Thanks,
    Lawrence

    Hi.
    This is a known issue and have been there in some versions, the JRA action block seems to be working (but causes this problem in the Netweaver log) and the JCO action block do not have this problem.
    I have just reported as an OSS to SAP.
    BR
    Poul.
    Edited by: Poul Klemmensen on Apr 12, 2010 4:57 PM

Maybe you are looking for