ADD ROW in tabular form with new max value for a certain field

All,
I have a tabular form with an 'ADD ROW'-button.
When a row is added the field 'TemplateID' should get
automatically a new value which is MAX from TEMPLATEID + 1.
I would be very glad, if someone has a hint for me.
Thanks in advance,
lucio

Hi
the cause of not seeing the 'Default Item Field' is,
that during creation of a 'Tabular Form' the column with the
primary key doesn't get that feature, why so ever.
I still hope that someone could give me a hint why that code isn't working:
function SetNewID(vDBID)
v_check = $v('P20_MAX_TEMPLATEID');
pNd = $u_Carray(vDBID);
     for(var i=0;i<pNd.length;i++){
          var node = $x(pNd);
          node = $x_Check_For_Compound(pNd[i])
          var lTr = $x_UpTill(node,'TR');
updateRow = lTr.rowIndex - 1;
document.wwv_flow.f02[updateRow].value=$v(v_check)
Many thanks in advance
lucio                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Add rows to tabular form with apex_item.checkbox?

    Hi,
    I have created a data manipulation process to add a row to a tabular form. The issue is that I have some checkboxes and when I click the button to call the add row process it doesn't
    create any of the checkboxes only the text fields. Is there anyway for me to accomplish creating the checkboxes in this manner?
    Thanks in advance!

    Hi,
    So any existing data on the table must be hidden from view, so that this tabular form is, in effect, for inputs only?
    If so, you can create dummy rows using something like:
    SELECT NULL EMPNO, NULL ENAME, etc
    FROM DUALAs long as the process still refers to the EMP table that should be ok. If you still needed to include data from the EMP in certain circumstances, you could then just do a UNION ALL to the above and provide a WHERE clause:
    SELECT NULL EMPNO, NULL ENAME, etc
    FROM DUAL
    UNION ALL
    SELECT EMPNO, ENAME, etc
    FROM EMP
    WHERE :P1_SHOW = 1You could also delete the rows using javascript but you would lose any entered changes by the users - either of the above would be used during a page load, though, so any entered data would be saved when the page is submitted (unless you conditionally disabled the process)
    Andy

  • Add row in tabular form fails, "gErrItems is undefined"

    I'm struggling to get Apex working on my new laptop.
    Apex 4.1.1, Oracle 10.2.0.5, Windows 7 64 bit.
    I click 'Add row' on the detail region (the tabular form) on my Master - Detail page.
    The row appears, but after clicking 'Apply changes' it's gone again.
    Using Firebug, I see that the javascript causes an "gErrItems is undefined" error, something coming from apex_4_1.min.js
    The same application works fine on apex.oracle.com, so it's the installation on my laptop.

    It seems to be a problem with apex_listener under Glassfish.
    I'll post in the proper forum again.

  • Add Row on Tabular Form - column from read only to update/insert allowed

    APEX 4.2.2
    Newbie in the APEX forums, go easy please.
    I'm building a rather simple tabular form based on a table with a primary key (emp_number). Sounds like an Oracle tutorial but trust me, it's a real table. This table has, for this example's sake the following attributes:
    Table Name: EMP_EXCEPTIONS
    EMP_NUMBER      NUMBER (PK)
    UPDATE_EXEMPT VARCHAR2(1)
    I've used the Tabular Form wizard to create a nice looking tabular form page, all good and works as intended. Of course the primary key value is non update able by the wizard and that's by design - I've no need to update any primary keys. When I click the add rows button however, I'd like to be able to include the emp_number field as a input able field. At the moment, when I click the add rows button it inherits the property of the emp_number as read only. The user entering the new row would know the employee number and whether they were update_exempt or not. So rewinding my head in Oracle Forms, this would have been done by setting the row attribute as update allowed when the button is clicked. Is there such simple functionality in APEX and if so can you point me in the right direction?

    It seems to be true:
    - if there is ascending order on columns which fields are null in new line (have no default value), new row is visible in current "pagination" page
    - but if there is DEScending order OR ANY sort order is set on columns which fields are NOT null in new line (have default value), new row is NOT visible in current "pagination" page
    thank you!

  • Add row to tabular form pagination problem when sorted

    Hi,
    I have a problem with a tabular form that has various sortable columns. If the user tries to add a row when the sort order is set to something where possibly the nulls are appearing first in the list, then the user cannot enter any data (since the last page of results is always shown after clicking the add row button).
    I know the empty record is in the list somewhere since the pagination page count is increased by 1, but there is no way for the user to enter data into that record since traversing back pages then removes the empty record. How can I fix this? Is it possible to programatically reset all column sorting?
    Cheers!

    Hi,
    Sort orders in reports are stored as user preferences - these can be removed using PL/SQL. Have a look at: Need to do column SORTING only when I click the column heading and Re: Default sort and pagination placement not working in reports
    Or, you could try adding a blank row in your SQL statement itself: Problems With "Add A Row"
    Andy

  • Add Rows in Tabular Forms

    Hi,
    I have created a tabular form using wizard.I am inserting into the table using a procedure which is being called at Page process.This procedure I am call
    My problem is that when I click Add Row to create an empty row(we type in data to be saved in this empty row) on the form,my procedure to save the records into the table is being called which I do not want.I want the procedure to be called only when we click the Add Row to save.
    This problem exists when I try to add row on entering the page from anther page.
    If i click add row continuously without moving out from the page,it works without any problem.
    please suggest a work around.
    thanks and regards,
    k.tanna

    Hi,
    Kindly go to the url
    http://apex.oracle.com/pls/otn
    Workspace:kdoyen
    user:demo/demo
    Application:60347 - test
    You can login into the application using demo/kdoyen
    Go to the tab 'Orders',clicking on an existing order,it will take to the page view/modify orders.
    Go to sql commands and run the query select * from DEMO_ORDER_ITEM_DETAILS;check the records...
    Click on Add Item to Order.
    Go to sql commands and run the query select * from DEMO_ORDER_ITEM_DETAILS;
    you will see a row has been added to the table even without entering any data on your empty row.
    Now enter data in your empty row,and click add item to order,the row will be added in your table which works fine.
    my problem is when we click Add item to Order to create an empty row,my procedure is called.
    I hope you have understood.
    Please let me know if you have any queries.

  • Add rows to tabular form does not work

    When two user try to "Add row" simultaneously then nothing happens i.e no new row is added.
    When one of the user clicks on the "Previous" pagination buttons then only its possible to add a new row. The following pagination options is used in the report:
    Row Ranges 1-15 16-30 in select list (with pagination)
    I use internal Application Express account credentials and login page in this application as my authentication scheme.

    Any idea, what is not working here.
    Help!

  • Dynamic Action on tabular form: to auto set value for all changes rows

    Hi All:
    I am using APEX4.2.3 and I am not very familar with JQUERY or Javascript.
    I am having a tabular form to support Update and Delete action. The tabular form has 4 columns:
    Column A: ID                      (Number)     : Read-only column
    column B: Name                 (Varchar2)   : Editable
    Column C: Age                    (Number)     : Editable
    Column D: ChangeFlag      (Varchar2)   : Read-only column                             ==> however, I want this column been automatically upldated by my APEX application
    Here is the requirement: First user update Column B, or C or both for # of rows; then user click "Save Change" button. For ALL updated rows, I need to automatically update Column D with below logic:
    For a given row,
                   IF Column D IS NULL  THEN
                         set value = 'M'                           -- M means modified
                   ELSE --- column D has a value already
                        IF last character of Column D is 'M', THEN
                               don't do anything;
                        ELSE
                              set value of D = existing value + 'M'                       (here + means concatenate
                       END IF;
                END IF;
    I thought this can be done by creating dynamic action on tabular form ... I have researched this on this forum and can't find a good match example ..
    I know I can implement this using a DB trigger; however, I want to learn if this can be achived via Dynamic Action.
    Thanks!
    Kevin

    Hi Expert:
    Anyone can offer any direction or help on this?
    Thanks!
    Kevin

  • Just need the record from the right (many) table with the max value for the Record on the left (one) side table

    SELECT
      ADHOC.ATS_ESH.Entry_Num
      ,ADHOC.ATS_ESH.Importer
      ,ADHOC.ATS_ESH.Version AS [ATS_ESH Version]
      ,ADHOC.ATS_ESL.Version AS [ATS_ESL Version]
    FROM
      ADHOC.ATS_ESH
      INNER JOIN ADHOC.ATS_ESL
        ON ADHOC.ATS_ESH.Customs_Entry_Num = ADHOC.ATS_ESL.Customs_Entry_Num
    I just need to see the MAXIMUM version number in the ESL table for each Entry_Num in the ESH table. ESH is the one side, ESL is the MANY side.

    Do you understand what this query is doing? Did you check the blogs I pointed you to?
    The query I provided gets the latest ESL version for each custom number. So, if max ESL version is higher than ESH version, it's just a coincidence. If you only want to see rows where versions do not match, just add an extra where condition, e.g.
    SELECT * FROM cte WHERE Rn = 1
    AND  [ATS_ESH
    Version] <>  [ATS_ESL
    Version]
    BTW, what is the type of these version
    columns and what kind of data in them? If they are character columns, sorting them in DESC order will not necessary return the latest version. Can you show some samples of the data in these two columns?
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles

  • Multiple 'add row to updateable form' buttons on same page

    Hi,
    I have a master-details page with 1 master region and 2 details regions. Both details regions are updateable reports. In each details region, I created a 'Add row' button, with a different name. Then I created 2 'Add rows to tabular form' processes, one for each button.
    The issue is that both buttons add a row to the same details report. How to specify which button adds a row to which report?
    Thanks,
    Guillaume

    Guillaume,
    The built-in tabular form feature only supports one tabular form on each page. You'll have to put the two forms on separate pages. Or use simple reports as the detail reports with edit links to an edit form page.
    Regards,
    Marc

  • Tabular form with non base table field

    I want to develop a tabular form with
    1. A non-base table edit field to accept a value
    2. Insert/update another table based on the input value
    3. Also, computed field on each row based on other fields on the records (like post-query trigger in oracle forms at block level - for each row)
    Thanks,
    Rachna

    Thanks for your reply.
    Varad, I like the link you sent me. It has a lot of good information.
    I created a process (under page processing) called "Update/Insert Process" that dosn't seem to be working.
    Question, I created a manual tabular form with SQL Query and created a process (under page processing) called "Update/Insert Process", then I check for each record in the tabular form. If the old value <> new value then I update/insert in the new table.
    Any step by step will be highly apprciated - to create process/validation etc.
    Thanks,
    Rachna

  • Custom Tabular Form with working days by quarter

    Hi All, I'm trying to create an application to improve an old excel that some people use in my office. I came across a challenge: create a page when a user can submit for each business day the amount of hours worked, the real problem is that I have to show on the same page 40 business days that need to be dynamic, I mean that there is a "period" table that has a start date and end date, the range between those two MINUS the Saturdays and Sundays should be the amount of COLUMNS that the report show.
    create table CT_PERIOD(
    PERIOD_ID VARCHAR2(6),
    PERIOD_FY VARCHAR2(4),
    PERIOD_QUARTER VARCHAR2(1),
    PERIOD_START_DATE DATE,
    PERIOD_END_DATE DATE,
    PERIOD_DAY_COUNT NUMBER,
    insert into ct_period values ('1', 'FY14', 'Q1', to_date('01-JUN-2013', 'DD-MON-YYYY'), to_date('25-AUG-2013', 'DD-MON-YYYY'), 56);
    commit;
    I searched in the web for some example of this with no luck, if somebody did something like this or knows where I can see an example that would be great!
    Thanks!

    Hi guys,
    I'm having exactly the same problem, I need a tabular form with days as columns to add actual working hours for each day as for each row ( task)

  • How to build a tabular form with a by the user insertable primary key

    I have build a build a tabular form with the wizzard. Wat should I do to make the primary key insertable by the user.
    When I change the PK from 'hidden' to 'text field', I get a checksum error when i am trying to insert.

    Fred: When you use the tabular form wizard, notice the help text on the right hand side of each page. The help page where you define the type of primary key (Existing trigger, PL/SQL function, existing sequence) clearly states
    Tabular forms do not support user entered primary key values
    Makes sense when you think about it. The MRU process needs to determine whether to update a record or insert a new record. It does that by comparing the checksums (and/or) pk values from when the page was first rendered and then when you make changes and submit it. Newly inserted rows will have a blank PK/checksum.
    If you allow user to change the PK, how will the system know which rows are new and which ones are old?
    For example, lets say you have
    create table t
    pk int primary key,
    data varchar2(10)
    )You have 2 rows
    1 red
    2 yellow
    If the PK were to be editable, user could go in and change the above to
    2 red
    1 yellow
    Now what? Would you like the system to create a new row with 1/yellow or change the existing pk=1 row to yellow? Same with the other row.
    Bottom line: The built-in processes dont support this. You can always write your own manual tabular form and implement whatever you logic you wish in your After Submit processes.
    Hope this helps.

  • Tabular form with select list not updating

    I have created a tabular form with a dynamic select list
    select primary_key, column1,
    htmldb_item.select_list_from_query(10,column2, 'select descr d, column_value r from lookup_table where column_value = '||column1) column2
    from main_table
    The select list appears to work correctly but the new value is not saved to the database. I assume this is because the tabular form element display as field for column2 is set to "standard report column" but when I select any of the "display as text" or "LOV" options either the current data is not displayed or errors are generated.
    Any suggestions?
    Thanks,
    Bob

    Hi Ian,
    As you have seen, sorting on the project_manager_id column will sort by the id value rather than the textual value. This is, of course, because this is the value in the field.
    I haven't tried this out, but one thing that may work is the fact that you don't have to include the ORDER BY fields within the SELECT statement. You could, for example, do:
    select p.project_number, p.project_manager_id
    from projects p, users u
    where p.project_manager_id = u.id (+)
    order by u.name
    Obviously, you won't be able to do this in the existing statement as you would then be blocked from using column sorting. However, it implies that if you could construct the SQL statement dynamically, appending appropriate ORDER BY strings to the end of the base select statement, you could sort by anything you like. This does, of course, mean that you would have to create a mechanism to allow the user to select the sort order, generate the appropriate string and reconstruct the entire sql statement.
    I had had a similar request quite a while ago. The underlying reason for that request turned out to be that the user just wanted to quickly locate records relating to one person. In the end, we agreed that a search filter was the best thing to do.
    Regards
    Andy

  • Error tabular form with validation

    Hi everyone,
    I have built a tabular form with the wizard and I every time a validation check is done and fails,
    getting an error in the place where the tabular form should be. I get to see the tabular form again when pressing the cancel button or refreshing the page.
    I'm not quite able to reproduce this error, but I was wondering if anyone knows of this error and a workaround for it.
    The error that's displayed is: report error: User-Defined exception
    using Apex version 4.1.1. I've already tried building a new tabular form, but that didn't seem to resolve the issue.
    I would appreciate the help.
    Kind regards,
    Cleopatra

    Possible solution?
    Validation returns : no data found + unhandled user-defined exception
    See post by user 794496 there.

Maybe you are looking for

  • I have problem with my battery

    hello. macbook 2.4 2008 late (upgrade Lion) 4Gb Ram i have problem with my battery cause i used 4 years... and i check that the count down time is wrong onces is 2:10 and the next minute is 1:45 so i buy a new one.. and i check that again i have the

  • ADF form data

    i have ADF form in which one mandatory column is user-id which need to fiIl automatically when the user logged in,i am storing user-id is a session variable .I am able to see user-id in form column but when i press commit button , i am getting error

  • Methods of Performing Maintenance on a Two Node Exchange 2007 CCR Cluster

    What methods do you have for performing maintenance on a two node Exchange 2007 CCR cluster? This is what I use:Via the EMS (pre-maintenance steps)On the passive node: Get-StorageGroup | SuspendGroupCopyCheck Event ViewerOn the passive node, check re

  • [SOLVED] Opera doesn't get along with gsfonts

    Minor but extremely annoying issue. When I have both opera (version 11.61) and gsfonts (1.0.7pre44-3) installed Opera uses different than default, ugly-looking set of serif fonts in almost all possible places. Removing the gsfonts solves the issue, b

  • Dreamweaver CS3 CSS Capacity

    Do any professionals out there have this tool yet, are the new CSS capabilities worth it? None of the other enhancements seem worth it.