Line copy tabular = > Apex 5

Hi all

For a driver (I build it on apex.oracle.com), I need to implement the ability to copy a line "checkboxed" a tabular form. I've done the research for hours and fell on multiples, most Javascript-based solutions (alas, I know a little Javascript).

I tried to implement a number of these solutions but always failed. What made me wonder was that one solution with a so-called working demo on apex.oracle.com does not either - maybe because of the upgrade to 5.0?

Now I wonder, if there are changes with Apex 5.0 that break traditional solutions.

And is there a 5.0 Apex "silver bullet", a best practice for what I want?


I would appreciate pointers.

Thank you and best regards

Tino

As I suspected, there are changes with Apex 5:

He now works as expected.

Thank you

Tino

Tags: Database

Similar Questions

  • How to show all lines of tabular form on a single Page?

    Dear Apex Experts,

    Is there a feature in the tabular Presentation , or the workaround even to show all lines of tabular form on a single page?
    as in the interactive report where 'ALL' option when selected displays all lines.

    Thank you in advance for any help you provide

    Best regards

    create an item
    assign a number 1000000 or more and on the area of research reports a number of lines returned to the point and set with the name of the element

  • Paging tabular - Apex 5.0

    I work with Apex 5.0 on apex.oracle.com. I just added a tabular presentation page to my application and let it default to 10 lines per page, with the option of paging "Line Range 1-15, 16-30". I have a small group of data, so I tried to increase the number of lines to 50, so I changed the value of "Number of Rows" at 50, saved the page change and refreshed the page but does not change the number of rows displayed.

    I messed around with most of the pagination options that include paging and still no joy. The number of rows displayed seems to be stuck on 10, no matter what I change these two values. I've never had a problem with this in previous versions (that I remember) so not sure what happens here. Am I missing something? Or is this a bug any? I don't want to go to this conclusion, there is a story too long and massive for Apex, but it's weird (for me).

    Earl

    Hi Earl,

    I have faced this issue earlier, but him clear the memory cache of the browser and disconnected and again helped me. But if it helps as well, can provide you your credentials for us so that we can see what is exactly the problem.

    Thank you

    Sunil Bhatia

  • JavaScript help: get the current line inside tabular

    Hello world

    I hit a roadblock for a simple JS code: to get a current line for my tabular form. My environment is: Apex 4.2.6 on Oracle 11.2 with 3 Bootstrap for styling.

    The query in tabular form is as simple as this:

    Select

    "REF #"

    «INV #»

    "MANUFACTURER."

    "DISCOUNT."

    'PRICE ',.

    "UPC",

    "DESCRIPTION."

    quantity,

    "LINE NO.",.

    "" step by step

    of Order_items

    Now the emphasis here is "stepper", it is defined as "text save any State", in the expression of the HTML, I added this:

    < div class = "btn-group" >

    < button type = "button" class = "btn, btn - lg" onclick = "plusClicked ()" > + < / button >

    < button type = "button" class = "btn, btn - lg" onclick = "minusClicked (); ">-< / button >

    < / div > <!-/-> button

    The screen is as follows:

    Screen Shot 2015-02-06 at 9.44.49 AM.png

    In the header of the Page Javascript section:

    function plusClicked() {}

    var line, qty;

    Row = $(this). Closest ("TR");

    I tried row = $(this) .parent () .closest ("tr");

    same undefined result

    Qty = Row.Find ('input [Name = F09]'). Val();  F09 is the entry for the qty column name

    Alert ('most clicked qty =' + Qty);

    }

    The result is always: 'most clicked qty = undefined ".  Inspect the code says this:

    Screen Shot 2015-02-06 at 9.57.49 AM.png

    Any help and suggestions are greatly appreciated.

    The few I tested it seems solid to me.  I think you have to pass 'this' to plusClicked and minusClicked.

    onclick = "plusClicked (this)" "

    Then, the function can do:

    function plusClicked (btn) {}

    var line, qty;

    Row = $(BTN). Closest ("TR");

    Qty = Row.Find ('input [Name = F09]'). Val();  F09 is the entry for the qty column name

    Alert ('most clicked qty =' + Qty);

    }

    The other approach, I like it for it's with a DA.  I would like to add a class to the buttons instead of the onclick.

    DA would be during the click on jQuery selector .btnPlus

    and the JS to run would be:

    var $row = $(this.triggeringElement) .closest ("tr");

    var qty = $row.find('input[name=f09]').val ();

    Alert ('most clicked qty =' + Qty);

    I hope this helps.

    Thank you

    -Jorge

  • Looking for ideas on how to get large amounts of data to the line in via APEX

    Hi all

    I am building a form that will be used to provide large amounts of data in row. Only 1 or 2 columns per line, but potentially dozens or hundreds of lines.

    I was initially looking at using a tabular subform, but this feels like a method heavy since more than an insignificant number of lines.

    So now I'm wondering what are the solutions others have used?

    Theoretically, I could just provide a text box and get the user to paste in a list delimited by lines and use the background to interpret code on submit.

    Another method that I've been thinking is to get the user to save and download a CSV file that gets automatically imported by the form.

    Is there something else? If not, can someone give me any indication of which of the above would be easier to implement?

    Thank you very much

    PT

    Hi PT,.

    I would say that you need a loading data wizard to transfer your data with a CSV file. 17.13 Creating Applications with loading capacity of data

    It is available for apex 4.0 and distributions, later.

    Kind regards

    Vincent

    http://vincentdeelen.blogspot.com

  • 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

  • Adding empty lines to tabular form on page load

    Hello
    I use APEX 4.1.1 on 11gXE and Windows Vista.

    I created a tabular form on a page. When the page loads I want the::AddRow() to call x number of times where x is the value returned by a list of selection (from 1 to 10) on another page. If the value 3 is selected::AddRow() is called 3 times. This is similar to the example of Denes Kubicek, but I am interested in the use of a dynamic action instead. Here is the link to Dene

    http://Apex.Oracle.com/pls/OTN/f?p=31517:209

    I created a dynamic action that fires when the page loads and runs the following code:

    var i = 0, z = $v ('P1_NO_ITEMS');

    While (I < z)
    {
    ::AddRow();
    i ++ ;
    }

    When I put P1_NO_ITEMS 3 and go to the tabular presentation page, it loads but does not add 3 empty lines in the form. I tried hard coding a value into the javascript code and that works very well. for example

    var i = 0, z = 3;

    When I add an alert in the code the value of P1_NO_ITEMS seems to be undefined, and I get a white for its value. If I check the session state P1_NO_ITEMS has the value 3.

    Any ideas where I'm wrong? I have a feeling that it is something simple...
    Thank you very much
    Helen

    Hi Helen
    >
    I use APEX 4.1.1 on 11gXE and Windows Vista.

    I created a tabular form on a page. When the page loads I want the::AddRow() to call x number of times where x is the value returned by a list of selection (from 1 to 10) on another page. If the value 3 is selected::AddRow() is called 3 times. This is similar to the example of Denes Kubicek, but I am interested in the use of a dynamic action instead. Here is the link to Dene

    http://Apex.Oracle.com/pls/OTN/f?p=31517:209

    I created a dynamic action that fires when the page loads and runs the following code:

    var i = 0, z = $v ('P1_NO_ITEMS');
    >
    JavaScript works only on elements in the HTML DOM. Once you have navigated away Page 1 the P1_NO_ITEMS not available in JavaScript.
    >
    While (i<>
    {
    ::AddRow();
    i ++ ;
    }

    When I put P1_NO_ITEMS 3 and go to the tabular presentation page, it loads but does not add 3 empty lines in the form. I tried hard coding a value into the javascript code and that works very well. for example

    var i = 0, z = 3;

    When I add an alert in the code the value of P1_NO_ITEMS seems to be undefined, and I get a white for its value. If I check the session state P1_NO_ITEMS has the value 3.

    Any ideas where I'm wrong? I have a feeling that it is something simple... >

    Change

    z=$v('P1_NO_ITEMS');
    

    TO

    z='&P1_NO_ITEMS.';
    

    See you soon,.

  • Remove line in tabular form

    Hi all

    I have a tabular form wizard created, adding a row is easy using the function: AddRow(), is possible that I can remove the line about him?

    Let's say that I added a line and do not send the form, but now I want to delete only the rank of the form, how can I do?

    Apex 4.1
    Oracle 11g R2

    Kind regards
    Tauceef

    There is no standard functionality (API) to remove a line via javascript to my knowledge (similar to addRow()), but you could probably build your own

    for example http://viralpatel.net/blogs/2009/03/dynamically-add-remove-rows-in-html-table-using-javascript.html
    http://www.DaniWeb.com/Web-development/JavaScript-DHTML-AJAX/threads/143193/add-remove-table-row.-JavaScript#post1298269

    And anyway, if there is an empty line when he clicks on submit, the standard functionality of the apex is that this line is ignored. that is, don't try to add a blank line.

    Edit: btw, how do you it would work? Delete a single button Delete button to remove all empty lines - related to the existing? How the difference between deleting the lines vs client-side has actually delete rows in the database? Remove a button on each line? etc.

  • Insert/update of the lines in tabular form from one table to another table

    Hello

    I'm having a tabular presentation for a table (equip_test) with 2 columns (equip_id, equip_name). I create a new

    Button (submit_alt) in this tabular form. I need to insert or update lines that are changed in this table to form

    another table (equip_staging) when you press the submit_alt button. How can I do this? How can I identify which lines are

    Insert or update? The process of the page I am trying since this button is
    begin
    
    FOR i in 1..APEX_APPLICATION.G_F01.count
    
    LOOP
    insert into equip_staging values(APEX_APPLICATION.G_F02(i),APEX_APPLICATION.G_F03(i));
    END LOOP;
    
    end;
    But it does not work. Help, please

    Thank you

    TJ

    Unchecking (does not) the column is a problem. Use this SQL instead (which is included in my examples):

    SELECT empno,
              empno
           || apex_item.hidden (33, wwv_flow_item.md5 (ename, sal, job))
                                                                    empno_display,
           ename, sal, job
      FROM emp
    

    and join this column hidden from your display column. In this way, it should work. When you feel there is no data found message in the treatment in a table, it will mean that the id does not exist.

    Denes Kubicek
    ------------------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    ------------------------------------------------------------------------------

  • Black line copy/scan number Officejet 7500 has

    OfficeJet 7500 has. When do face or scanning through feeding, copying or scanning has a vertical line from the top to the bottom, near the Center. When explorations or copies are made from the plateau, this line does not appear. We have cleaned the rollers and separator, but we always get this line in the middle. There is also no line when we print from the computer... Please advise as this is a brand new computer.

    Hello Ivrwm

    I hope that your trade goes well. If you have any other questions please post back.

  • Read the only attribute to make the new line edit tabular

    Hello

    I have a tabular layout with dynamic action to set some fields read only after refreshing the page... His work, well, if I insert a record without any validation...


    I've included a validation for a particular column not null, if the validation is successful its insert the record and become read only what is correct... to another validation is not successful then the fields are should be in editable mode... but it becomes readonly due to the updating of the page... How to avoid in this case?

    I created the dynamic action following this thread...

    In, click Add line readonly = false in a table...

    Thank you

    Infantraj

    Hi Infantraj,

    If you disable the datepicker and the field selection list, don't forget to activate before submitting the page.

    $('input[name="fcud"]').each(function() {
      var val = $(this).val();
      if (val === 'U') {
      var row_id = this.id.substr(5);
        $("#f03_" + row_id).attr("readonly", true).addClass('row_item_disabled');
        $("#f04_" + row_id).attr("readonly", true).addClass('row_item_disabled');
        $("#f06_" + row_id).datepicker('disable'); //datepicker field
      }
    });
    

    Activate the date picker field before sending the page

    Create dynamic action

    Event: Before the Page is sent

    Action: Run the JavaScript Code

    Fire on loading the Page: No.

    Code:

    $('input[name="f06"]').datepicker('enable');
    

    Hope this helps you,

    Kind regards

    Jitendra

  • How do the areas of adjustment between the fields and lines in the apex?

    (Request Express 4.2.5.00.08)


    Hello world

    I am beginner in the apex...  When I created the form page, I found different spaces between the fields and lines... But I can't adjust it...?


    Help me please


    PIC

    http://i.imgur.com/ZSFlmCi.PNG


    Demo https://apex.oracle.com/pls/apex/f?p=50581:3:4430339212420:

    PEAK http://i.imgur.com/T14TE3n.png

    Hello

    Solve this problem...

    In the section "Attributes of the HTML Form element" for item writing: style = "" margin: 0px 1px 0px; ""

    Thanks Amr

  • Copy the APEX Application

    Hello people:

    Oracle Database 11 g Express Edition version 11.2

    Request Express 4.0.2.00.08

    I have a question for you.  I developed a simple application for a Department within my organisation:

    8 pages (no application process, process page 12)

    2 triggers

    2 sequences

    2 tables

    Other departments within my body as the application so they would like their own "copy".  Because of the type of information entered in the application, I can't have all the applications use 1 (of course I can but I need to create a somewhat complex authorisation schemes and I'd rather not go that route);


    Now, finally the question:


    Is there a way to the APEX to copy an application and recreate all the components (table, triggers, etc) from the new table names?  APEX makes it definitely easy to make a copy of an application, but I then go through the copy with a fine comb to change all references to the old names of table and replace it with new table names.


    Suggestions?  Comments?  I thank all members of this community of Oracle, because you communicate knowledge where it is lacking...  

    AquaNX4 wrote:

    People of day:

    Oracle Database 11 g Express Edition version 11.2

    Request Express 4.0.2.00.08

    I have a question for you.  I developed a simple application for a Department within my organisation:

    8 pages (no application process, process page 12)

    2 triggers

    2 sequences

    2 tables

    Other departments within my body as the application so they would like their own "copy".  Because of the type of information entered in the application, I can't have all the applications use 1 (of course I can but I need to create a somewhat complex authorisation schemes and I'd rather not go that route);

    Now, finally the question:

    Alas, I fear, that's the wrong question.

    Is there a way to the APEX to copy an application and recreate all the components (table, triggers, etc) from the new table names?  APEX makes it definitely easy to make a copy of an application, but I then go through the copy with a fine comb to change all references to the old names of table and replace it with new table names.

    Any suggestions?  Comments?  I appreciate everyone in this community of Oracle, as share you information where it is lacking...

    If it becomes a business tier application, it must be generated using the level technology company, such as the authorisation schemes, VPD to the multi-tenant data to be stored in the same tables and sturdy PL/SQL API for the maintenance of the data rather than the process Assistant APEX.

    Authorisation schemes are of no use in restricting access to the data, they are used to control access to the APEX application components. You can use authorization to control if a user sees a report from the region, but not the rows that are displayed in the report. To do this you must use VPD or views (note that separate sets of tables are not even considered an option).

    If all departments use, how long before that some top-level executive wants to have access to the data for each of them? How easy it will be to predict that, when the data is distributed on several tables?

    That said, SPV is not available in the XE, and the fact that you use it means that you are unlikely to be able to switch to Enterprise Edition to get it.

    My recommendation would be to rebuild the application using a set of tables, the views that restrict access to data by the Department and the generation of reports and PL/SQL with API packages manage data.

  • problem with adding line in tabular form after that put 4.1.1 to level

    We have recently installed the Update 4.1 .1. We now have a problem with some of our tabular forms created using the wizard. The delete and update feature works fine, but when trying to insert a new record, it will insert only the first record, but after that, it will no longer inserts. It acts as ApplyMRU (updated online Multi) is not at all shooting. No success or error message. I tried to create forms based on the rowid and also on the suites (with and without triggers), and they all behave the same way.

    This happens both in IE and Mozilla. Tabular forms were working fine before the upgrade.

    Everyone knows this?

    We just hit this issue and thanks to this thread and a light bulb above my head, resolved this question today. There is more to the story. Copy the necessary images in place works, but get the full version 4.1.1 images.

    We were already on 4.1.0.00.32, so I applied only Patch 13331096 upgrade to 4.1.1.00.23. Patch 13331096, at least one that I downloaded a few weeks ago IS NOT ALL OF THE NECESSARY IMAGES.

    Fortunately, I thought to download both. When I did a number of files in the directory images between the full version and the patch, the County came up short for the patch.

    If you have this problem, get your hands on the full release 4.1.1.00.23, NOT Patch 13331096and copy these files to image in place. Who sets the we.

  • SQLite3 command-line copy at the other Table? Help

    Hi all.

    I'm trying to copy a row in a table and copy it to another table.

    That's what I currently have.

    Insert into Table2 select * from Table2 where ROWID = 1;

    But I get on to a General Protection Fault by the following SQLitefunction, which is located in the sqlite3.c file

    /*
    * Report the allocated size of the prior return of xMalloc()
    * or xRealloc().
    */
    public static int sqlite3MemSize(void *pPrior) {}
    sqlite3_int64 * p;
    If (pPrior == 0) return 0;
    p = (sqlite3_int64 *) pPrior;
    p-- ;
    Return (int) p [0];
    }

    Can someone please help me solve this problem?


Maybe you are looking for