Multiple add possible lines?

Hello

I created a form simular in tabular form several example Dennis Kubicek.

If you add a row in the first table form and do not save the record, it will be deleted if you add a row in the second table form.
I was wondering if there is a way to back up the folder of the first form when you add a line in the second form?

Rgds,

Astrid

Published by: Astrid on November 18, 2008 23:44

Hi Astrid,.

There are several possibilities, you can try (I don't have necessary to several tabular forms so have not tried these myself):

1. make sure that the SQL statements include a line empty. For example:

SELECT NULL EMPNO, NULL EMPNO_DISPLAY, NULL ENAME FROM DUAL
UNION ALL
SELECT EMPNO, EMPNO EMPNO_DISPLAY, ENAME FROM EMP

The first line of the form will be empty and still appear. If the user fills in a row for a form and submits the page (or click the add a line), a blank line will still create again for both forms.

2 - Turn the button, add a line to trigger the creation of a line for BOTH forms

3 - using javascript to create the line (I've seen examples of people who are trying to do, do not know if there are however examples of work)

4 - put something in a field that creates a real record - probably can cause more problems than it solves, although

Andy

Tags: Database

Similar Questions

  • Add bus lines?

    Hello

    I was wondering if it is possible to add buses lines (with verification by Apple of course) as public transport network which has 22 lines around my town, but the Maps app informs he...

    Sincerely

    Hello

    It is a community of user-oriented support.

    If you want to send a feature request to Apple, you can do it here:

    https://www.Apple.com/feedback/iPhone.html

  • I need to find all of the XML elements and add a line break for the text of each of them

    I need to find all XML elements and to add a line break the text of each of them.

    Is it possible with a script?

    Try this piece of code as it is. I hope that's what you want...

    var myDoc = app.activeDocument;
    var inddRooElement = myDoc.xmlElements.item(0);
    var xPathElements = inddRooElement.evaluateXPathExpression("//*");
    var elementCount = xPathElements.length;
    for(var eId=0; eId
    

    ----------------

    Green4ever

  • Add the line in the long-form Master

    Hi all

    I wonder if there is a way to simply add a line in the form of master (tabular) detail without actually submitting the page. So if the user has updated an existing line before clicking on the add a line button, the update does not have to be submitted by click on the button Add a line. If possible, so I want to submit (insert) the newly added line, but also the updates made to existing lines when the user click on the button 'apply changes '.

    A little luck?

    Thanks for the help.

    Milan

    Milan,

    Well, your intent is not UPDATED when the user has clicked on the "ADD ROW" button.

    When we create tabular, AEPX creates two submit after MRU (for updating the table) processes, a MRU runs when you click the button SUBMIT and other MRU runs when you click on the button 'ADD ROW '. Then change this SRM process and set it to run EVER (conditional processing > Type of Condition)

    Kind regards
    Hari

  • Advanced table add another line

    Hi all

    I created a table in my custom page region. This isn't a region required in my page, but there are other fields that are required in the page. At the moment, I can't add another line in the advanced table unless all other required fields on the page are given to certain values.

    Is it possible to comeout of this situation.

    Thank you.

    PK

    SKO

    the validation of the side game server disable to true.

    Thank you
    Kumar

  • Add a line in a text file

    Hello

    I'm using Oracle 11 g.

    I'm storing text in XML DB files and access them using Java, pl/sql, and FTP.

    Sometimes, these files are huge, and all I need is to add a line.

    Is it possible to do so without reading the full content of the file, using PL/SQL? Or Java?

    Thanks for all the help you can give me.

    procedure writeDebug (P_LOG_MESSAGE VARCHAR2)
    as
    pragma autonomous_transaction;
    CLOB V_LOG_CONTENT;
    BLOB V_LOG_BUFFER;

    V_SOURCE_OFFSET integer: = 1;
    V_TARGET_OFFSET integer: = 1;
    Integer V_WARNING;
    Integer V_LANG_CONTEXT: = 0;

    BLOB V_DEBUG_CONTENT;

    Start
         
    createDebugOutputFile;

    Update RESOURCE_VIEW
    set RES = updateXML (RES,'/ Resource/DisplayName/text () ', extractValue (RES,'/ Resource/DisplayName/text () '))
    where (RES, G_DEBUG_OUTPUT_FILE) equals_path = 1;

    Select extractValue(RES,'/Resource/XMLLob')
    in V_DEBUG_CONTENT
    of RESOURCE_VIEW
    where (RES, G_DEBUG_OUTPUT_FILE) equals_path = 1;

    V_LOG_CONTENT: = Chr (13) | Chr (10) | TO_CHAR (systimestamp,'YYYY-MM-DD "T" HH24:MI:SS.) FF') | ' : ' || P_LOG_MESSAGE;
    DBMS_LOB.createTemporary (V_LOG_BUFFER, true);
    DBMS_LOB.convertToBlob (V_LOG_BUFFER, V_LOG_CONTENT, DBMS_LOB.getLength (V_LOG_CONTENT), V_SOURCE_OFFSET, V_TARGET_OFFSET, nls_charset_id('AL32UTF8'), V_LANG_CONTEXT, V_WARNING);
    DBMS_LOB.freeTemporary (V_LOG_CONTENT);
    DBMS_LOB. Open (V_DEBUG_CONTENT, DBMS_LOB.lob_readwrite);
    DBMS_LOB. Append (V_DEBUG_CONTENT, V_LOG_BUFFER);
    DBMS_LOB. Close (V_DEBUG_CONTENT);
    DBMS_LOB.freeTemporary (V_LOG_BUFFER);
    commit;
    end;

  • How to add directional lines on a map in a phone book to show the destinations?

    Directions in iPhoto do not match the real software. How do I add directional lines on a map to show where we left and where are final destination will be?

    What version of iPhoto do you use?  Or you use 'Photos for Mac', as you post the pictures to Mac forum?

    In iPhoto 9.6.1 between that you can add markers place lines by activating the lines in the options for the cards.  The value 'Lines' 'Right' or 'curve '.

  • JavaScript function to add a line/record to grid

    How to add a line/record to a grid defined by the designer of service using Javascript? Are there predefined functions / no work around

    Here are some examples of JavaScript, you can use:

     function AddRowToGrid(gridName) { var grid = nsServiceRequest.extjsGridList[gridName]; var store = grid.getStore(); grid.stopEditing(); var newRow = store.getCount(); var currentRecord = store.getAt(0); var myEntry= store.recordType; var newRowEntry= new myEntry(); store.insert(newRow, newRowEntry); }

  • tabular: Add the line: line does not get inserted

    Hi all

    I have a tabular presentation based on a products table, quantity, unit_price and product_id columns

    in the form of Tha also has a calculated field price (unit_price * amount) and a total on the price column

    When the user changes unit_price or quantity, the price is calculated together total whith, this is done using javascript

    I want to accomplish is add when you click line, and then the total row of the report should remain the last row

    I managed to do it, but when I add a line and then fill in the same row is ignored by apex, 0 rows inserted

    This is because when you change a field in the hidden input field fcud_xxxx does not change to would be "to 'C'

    How can I fix this, I have to write a change event for each column?

    any other ideas?

    I put the code on apex.oracle.com

    workspace: martijnke

    login/password: demo/demo

    application: 78396: apex advance

    Start the application and click orders, and then click on any order to go to the edit page 4 control elements

    Click Add line and see what happens

    the javascript code is on page 4, the function is called switch_last_row()

    I found this in widget.tabular.js:

       // Register change handler on new row form fields, change "fcud_*" hidden element to C if a change occurs
            lNewRowIndex = tabular.pad( ( tabular.gNumRows + tabular.gNewRows ), 4 );
            $( ":input[id^=f][id$=_" + lNewRowIndex + "]", apex.gPageContext$ ).change( function() {
                $( "#fcud_" + lNewRowIndex, apex.gPageContext$).val( "C" );
            });
    

    Why change this event not working for my vacuum dial-up?

    DB: 11 GR 2

    Apex 5.0.2

    KR

    Martin

    Martijnke wrote:

    I have a tabular presentation based on a products table, quantity, unit_price and product_id columns

    in the form of Tha also has a calculated field price (unit_price * amount) and a total on the price column

    When the user changes unit_price or quantity, the price is calculated together total whith, this is done using javascript

    I want to accomplish is add when you click line, and then the total row of the report should remain the last row

    I managed to do it, but when I add a line and then fill in the same row is ignored by apex, 0 rows inserted

    This is because when you change a field in the hidden input field fcud_xxxx does not change to would be "to 'C'

    How can I fix this, I have to write a change event for each column?

    any other ideas?

    I put the code on apex.oracle.com

    workspace: martijnke

    login/password: demo/demo

    application: 78396: apex advance

    Thanks for the creation of the example. Makes it so much easier to understand the problem and to work there.

    Start the application and click orders, and then click on any order to go to the edit page 4 control elements

    Click Add line and see what happens

    the javascript code is on page 4, the function is called switch_last_row()

    I found this in widget.tabular.js:

    1. Sign change on the form fields Manager new line, change "fcud_ *" element hidden C if a change occurs
    2. lNewRowIndex = tabular.pad ((tabular.gNumRows + tabular.gNewRows), 4);
    3. $(«: entrée [id ^ = f] [id$ = _ » + lNewRowIndex + «]», apex.gPageContext$) .change (function() {}
    4. $(«_#fcud__»_+_lNewRowIndex,_apex.gPageContext$).val ('C');
    5. });

    Why change this event not working for my vacuum dial-up?

    It does not work because the use of the method. html() in this function replaces the DOM elements these managers events are related to the:

    function switch_last_row(){
          var l_total =  $('td[headers="CHECK$01"] b').parent().parent().html();
      var l_last = $('td[headers="CHECK$01"]');
      var count = l_last.length;
      //$('td[headers="CHECK$01"] b').parent().parent().html(l_last[count - 1].innerHTML);
      var v_html = $(l_last[$('td[headers="CHECK$01"]').length - 1]).parent().html();
          //alert(l_total);
          //alert(v_html);
          $(l_last[count - 1]).parent().html(l_total);
          $(l_last[count - 2]).parent().html(v_html);
    }
    

    Event managers are left intact by using an approach much more simple that moves the total line node below the newly added in the DOM instead of exchanging their content:

    function switch_last_row() {
      var totalRow = $('td[headers="CHECK$01"] b').closest('tr');
      totalRow.next().after(totalRow);
    }
    

    I created a demonstration of this in page 4 a new application in your workspace. However, this leads to a number of other problems. As I'm not sure of the magnitude that these additional questions were present or planned in the original, I left things to this page 4 and started from scratch on pages 586 and 587. In general, the JS code in the example seems to be too procedural. It does not entirely the ability to work at a higher level of abstraction using jQuery (' write less do more ") and the DOM objects. Doing this, in conjunction with dynamic actions APEX gives more compact code, better separation of concerns and an application that is much easier to debug and maintain. Compare the use of the CSS level page and unique dynamic action to bind several columns of report versus change events manually adding/changing the attributes of style event and online at the column level.

  • How to add two lines when the second row is not visible, but also gets the first data line too?

    Mr President

    Jdev worm is 12.2.1

    How to add two lines when the second row is not visible, but also gets the first data line too?

    I want to add two lines like below picture, but want the second to remain invisible.

    tworows.png

    I asked this question but my way of asking was wrong, that's why for me once again.

    Concerning

    Try to follow these steps:

    1. in the database table to add the new column "JOIN_COLUMN" and add the new sequence "JOIN_SEQ".

    2. Add this new column in the entity object. (You can add this in entity object by right clicking on the entity object and then select "Synchronize with database" then the new column and press on sync)

    3. in your bookmark create button to create only one line NOT 2 rows.

    4 - Open the object entity--> java--> java class--> on the entity object class generate and Tick tick on the accessors and methods of data manipulation

    5 - Open the generated class to EntityImpl and go to the doDML method and write this code

      protected void doDML(int operation, TransactionEvent e)
      {
        if(operation == DML_INSERT)
        {
          SequenceImpl seq = new SequenceImpl("JOIN_SEQ", getDBTransaction());
          oracle.jbo.domain.Number seqValue = seq.getSequenceNumber();
          setJoinColumn(seqValue);
          insertSecondRowInDatabase(getAttribute1(), getAttribute2(), getAttribute3(), getJoinColumn());
        }
    
        if(operation == DML_UPDATE)
        {
          updateSecondRowInDatabase(getAttribute1(), getAttribute2(), getAttribute3(), getJoinColumn());
        }
    
        super.doDML(operation, e);
      }
    
      private void insertSecondRowInDatabase(Object value1, Object value2, Object value3, Object joinColumn)
      {
        PreparedStatement stat = null;
        try
        {
          String sql = "Insert into table_name (COLUMN_1,COLUMN_2,COLUMN_3,JOIN_COLUMN, HIDDEN_COLUMN) values ('" + value1 + "','" + value2 + "','" + value3 + "','" + joinColumn + "', 1)";
          stat = getDBTransaction().createPreparedStatement(sql, 1);
          stat.executeUpdate();
        }
        catch (Exception e)
        {
          e.printStackTrace();
        }
        finally
        {
          try
          {
            stat.close();
          }
          catch (Exception e)
          {
            e.printStackTrace();
          }
        }
      }
    
      private void updateSecondRowInDatabase(Object value1, Object value2, Object value3, Object joinColumn)
      {
        PreparedStatement stat = null;
        try
        {
          String sql = "update table_name set column_1='" + value1 + "', column_2='" + value2 + "', column_3='" + value3 + "' where JOIN_COLUMN='" + joinColumn + "'";
          stat = getDBTransaction().createPreparedStatement(sql, 1);
          stat.executeUpdate();
        }
        catch (Exception e)
        {
          e.printStackTrace();
        }
        finally
        {
          try
          {
            stat.close();
          }
          catch (Exception e)
          {
            e.printStackTrace();
          }
        }
      }
    
  • Apex 4.2: The button "Add a line" does not not in table form

    Hello

    We have an application migrated from 3.2 to 4.2 Apex

    Afterwards, the 'Add Row' button does not work. When I try to click that, new line is not get added.

    I even tried to delete the tabular form and creates a new array of 4.2 Apex environment itself, but of no use, new line is not get added.

    "Also, is to launch a page fault"Message: 'length' is null or not an object"

    Browsed little of the previous announcement in OTN for this problem and found that by changing the theme, this problem can be solved.

    'Length' is null or not an object for tabular forms V4 error

    Apex 4: the 'Add Row' button doesn't work is not in tabular form

    The user is comfortable with the current theme and does not change the theme.

    Current theme used is "blue-gray - 13.

    Is it by a patch or workaround, we will be able to do the work of button "Add a line" normal.

    Kindly guide me in this issue. Thanks in advance.

    Kind regards

    Shiva

    OK, my dyslexia kicked in.  Modify the report model and correct the field before the lines replacing the #STATIC_REGION_ID # #REGION_STATIC_ID #.

    ***

  • can I add horizontal lines on muse? to separate the text

    One can tell me how to add horizontal lines

    Try here:

    How to insert a line dotted with Muse?

  • Add a line to the table programmatically

    Hello

    How do I add lines to the af: table of the java class? for that to editable object view exist on the JSPX page

    Thank you

    Chaya

    You can see the following code to add a line at the end of the table programmatically:

    public String cb1_action() {}

    Add the code in the event here...

    BindingContainer bc is BindingContext.getCurrent () .getCurrentBindingsEntry ();.

    JUCtrlHierBinding hierBinding = (JUCtrlHierBinding) bc.get ("EmployeesView3");

    DCIteratorBinding dciter = hierBinding.getDCIteratorBinding ();

    NavigatableRowIterator nav = dciter.getNavigatableRowIterator ();

    NewRow row = nav.createRow ();

    newRow.setNewRowState (Row.STATUS_INITIALIZED);

    Line lastRow = nav.last ();

    int lastRowIndex = nav.getRangeIndexOf (lastRow);

    nav.insertRowAtRangeIndex (lastRowIndex + 1, newRow);

    dciter.setCurrentRowWithKey (newRow.getKey () .toStringFormat (true));

    Returns a null value.

    }

    For the case where you must add a line in different places of the table, see the link below:

    http://adfsonal.blogspot.in/2013/02/create-row-at-end-of-ADF-table.html

  • Add several lines in tabular form which object to list different shows to all rows

    Hello

    Apex 4.2, oracle 11 g 2

    I have a table on the emp table where when I click on Add button line

    then I get no lines that are stored in the string.

    for this element of the page creation PX_job that return the value of separate employment with two points separate values by the

    for example seller: Analyst: Clerk: Manager: President

    to add several lines to add lines.

    by using the dynamic action

    event: click on

    selection type: button

    Action: run javascript code

    as follows

    var a = $v("PX_job").split(":") // Delimiter is a string
    for (var i = 0; i < a.length; i++)
    {
    
    apex.widget.tabular.addRow();
    
    }
    
    

    This work that well it adds the number ranks equal to 5

    now I'm post job as select list

    now I want to display the list of work in form of tables as row 1 poster list entry, second row entry list second poster... last line shows last entry from list

    but working this column in all the rows by first writing list of projects in the work list

    How to solve this problem.

    Leave.

    Hi, go,

    Yes, you need to replace "myvalue" with the return value of the select list. But even in this case it would be a problem because it would change all the lines.

    In any case, I changed the code to do this:

    apex.widget.tabular.addRow (); Add the line

    var checkboxIndex is apex.jQuery('input[name=f01][value=0]').eq (i) .parent () .parent () .index ();. get the number of the line that was added

    var SelectItem = apex.jQuery('select[name=f04]').eq (checkboxIndex); Use this number to get the selection list

    iOption var = apex.jQuery (SelectItem) .children () .eq (i) .val (); Get the i option value

    apex.jQuery (SelectItem) .val (iOption); Set the value of the option

    I hope it's clear.

    Kind regards

    Joni

  • Add a line automatically when a page loads

    db11gxe, apex 4.0, firefox 24,

    Hi all

    I have a master form / retail, the shape of the table is displayed in the page but without lines, I have to click on the button 'Add the line' to view the lines, and that's the problem,

    I want to see at least a line or more when I go to this page tab or when it loads?

    It is written like this

    JavaScript:AddRow();

    Thanks, it worked

Maybe you are looking for