Change iten property when Add Row button pressed

hi,
I have advance table on one update page. There are two requirements on that page:
1. One key Item has to be READ_ONLY for saved rows. It can be changed when new row added using Add New Row button. I followed Changing UI properties (SPEL) example. The read_only property changed for all rows, not just for the added new row.
2. New added row can be removed and saved row can not deleted.
Please help me.

Mahendra,
It works for READ_ONLY field. I used same concept to control the delete image using swither. Enable image did show up since the value is null for new added row. Following is my query.
SELECT SumryRuleLinesEO.RULE_ID,
SumryRuleLinesEO.LINE_ID,
SumryRuleLinesEO.LINE_CODE,
SumryRuleLinesEO.LINE_NAME,
SumryRuleLinesEO.ENABLED,
DECODE(LINE_CODE, NULL, 0, 1) LINECODE_SW,
DECODE(LINE_CODE, NULL, 'REnabled', 'RDisabled') LINE_REMOVE_SW
FROM BOLINF.GEOR_STG_SUMRY_RULE_LINES SumryRuleLinesEO
LINECODE_SW is used for READ_ONLY using SPEL. It works.
LINE_REMOVE_SW is used for delete image. It did not work since the LINE_REMOVE_SW is null for newly added row.
Any idea?
Thank you for your help.
DeeDee

Similar Messages

  • Field values erases when Add Row button is pressed in Master Detail Form

    Hi,
    I am using APEX 4.0. There is a master-detail form in a page, this has 5 rows in it by default, has a Add row and a Delete button. I face two problems now:
    1. When the values are entered in all the 5 rows, that are in default, and Add Row button is clicked, these values are entered in the DB, but they are erased from the interface. Means when user clicks Add row he don't see the old values he has entered. All new empty rows are only seen. This might confuse the user. How can I resolve this.
    2. The values are saved to the DB only when the Add row button is clicked, so suppose if the user enters some wrong values in the default rows and after he clicks Delete button, all the field values are erased. Is there a way to delete only that particular row? (Please note: the values are not saved to the DB, unless the Add Row button is clicked)
    Please let me know how to resolve these 2 issues.
    Thanks.

    So let me get this straight:
    You enter information into a tabular form and then click the add row and the data is being duplicated from the prior row or being inserted into the table ?
    Thank you,
    Tony Miller
    Webster, TX
    A lady came up to me on the street, pointed at my suede jacket and said "Do you know a cow was murdered to make that jacket?"
    "I didn't know there were any witnesses", I replied " Now I'll have to kill you too"

  • How to keep pressing add row button to add new row

    Hello,
    I know that you can set the add row process to add many rows at once by pressing the button one time, but can anybody show me how to make it possible to keep hitting the add row button and it keep adding a new line?
    Right now it will only add one line and when I press the button again it does nothing.
    Thank you

    Hi, I have the same (or close) problem. I was trying to create a tubular form with ADDROW button and I did it. During creation wizard I did specify a table where added data should go. The solution I was looking for was to have only one empty row when I load my page and be able to add more empty rows one by one by clicking on ADD_ROW button. The problem is that when page loads it is already filled up with data from table (which I did specify during creation and where data should be writen to) and only when I press on ADD_ROW it will addd an empty one.
    Is there a way to do it the way I wanted?
    Thanks

  • Add row button on tabular form works from time to time

    Hi!
    we have two environments (dev & prod) with 10gR2 and APEX 3.2.1.00.12 (installed from one and only setup file)
    we have developed application on dev and moved it to prod,
    and on prod it was discovered that - from time to time (not always) -
    when you press 'add row' button on tabular form,
    tabular form does not display new record on the page,
    if number of records exceeds number of records allowed to show
    (i.e. with 10 records maximum it works fine when you add records from 1 to 10 and can't add record 11)
    but - interestingly - increases number of rows in pagination by 1
    (e.g. "rows 10-20 of 35" changes to "rows 10-20 of 36").
    on dev this tabular form works correctly.
    what is it and how to heal it?..
    I recall I had same issue in prior releases (3.0 - 3.1), is it known issue?

    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!

  • Behavior of ADD ROW button (v 2.0)

    Hi,
    I have a tabular SQL report form with 4 buttons: cancel, add row, submit, delete.
    I come to the screen with no records, execute a query. After that I need to perform insert.
    I press <ADD ROW> button, and correctly have one empty record for my possession. (in the process definition I have only 1 record to add.) I put some data into this row; and without the submitting I add another row by pressing <ADD ROW> button once more. And what happens? HTMLDB saves my 1st record and add another empty one! Is it expected behavior, that is what supposed to be? How to avoid it, not allow to save that recored (because in this case it by pass all my validations and insert a bad data) or at least alert the user that what is going to be?
    Please, help.
    Thanks,
    Jenny.

    Vikas,
    I've made some tests:
    1. ADD button does not add a new record when there are not rows on the screen
    2. if there is a row with invalid data (some mandatory fields are null) it does validations, it works, on the old record, which is on the screen.
    3. after submitting correct record (commit was perfomed), add button gives
    " Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process"
    I my old posting Re: Error handling on Tabular form you created a sample appl to test that null validation function foo() which I'm using now for this process. Can you try ADD button also in that sample appl of yours?
    I tried all these possibilities. So far, they do not work for me.
    Thanks,
    Jenny.

  • Add Row Button Submits

    I'm using a tabular form in a region on a larger form as an option to enter lines associated with the main form. Each time I hit the ADD ROW button it submits the page and thereby increments my PK for the main form. I may be shooting myself in the foot with the additional twist that I'm using nextval to increment my PK for the main form. But I can't imagine why this should be a problem if the ADD ROW button wasn't submitting each time I wanted to add another item to this tabular form.
    Obviously, I'm a novice at this.
    Thanks for your help -
    Alexandra

    OK, there are a variety of possible issues. I'll guess at a few by describing how the master/detail form works.
    First of all, when you create a standard m/d form, the expectation is that it will be invoked in one of two ways. The page item created for the PK controls this.
    So to set this up let's say my m/d form is on page 200, the name of the master table is STUFF and the name of the PK for the master table is STUFF_JOB_NUM. There will be an item created in page 200 for each column in STUFF, including an item P200_STUFF_JOB_NUM for the PK.
    Let's also say the detail table is MORE_STUFF with a PK called MORE_STUFF_PK. There will not be any items created on page 200 for MORE_STUFF because it will be handled as a tabular form rather than a standard form on a table.
    When page 200 is initiated from another page (via a button or other type of link) the value of P200_stuff_job_num is checked. If it is null, then it is assumed that the page will be used to add a new record to STUFF. If P200_stuff_job_num is not null, the it is assumed that the page will be used to edit the row in STUFF, or to add and/or edit rows in MORE_STUFF. There is a standard process (which in my example would be called Fetch Row from STUFF) that prefills the form if P200_stuff_job_num is not null.
    The linkage between STUFF and MORE_STUFF is assumed to be between STUFF_JOB_NUM and a field in MORE_STUFF (that should usually be indexed as a non-unique key) and that will contain the value from STUFF_JOB_NUM. Let's call this field MORE_STUFF_LINK. This column is in addition to the PK column in MORE_STUFF. The source of the region (look in the region section) for the tabular form will contain the SQL that defines what goes into the tabular table. There will be a WHERE clause in that SQL that links the tabular form rows to the master form. In my example the clause would be: WHERE MORE_STUFF_LINK = :P200_stuff_job_num.
    So the following things will be true:
    if P200_stuff_job_num is null then there will be a CREATE button at the top on the assumption that you are creating a new row. The tabular form will NOT appear on the page as there won't be any detail records yet nor any way to add them.
    if P200_stuff_job_num is not null then there will be DELETE and APPLY CHANGES buttons at the top on the assumption that you want either to delete or modify the row. ALSO, the tabular form will now appear, but it might be empty (just buttons, but no data). Now the "add row" button will add a row to the tabular table that can filled in and posted with APPLY CHANGES. If there are existing rows, they can be edited and changes saved with the APPLY CHANGES.
    ====
    (not done, but will get back later... I think I still need to explain how the page that invokes the m/d page should be set up.)

  • How to use add row button of a tabuler form.

    Hi all,
    I have created a Tabuler form in my application.Could you please tell me 'How can i use the add row button of this form' as When i click the button "NOTHING HAPPENS".
    Thanks
    Regards,
    Neha

    Hi,
    If you edit the button, the button name has to be 'ADD'. You can make the text / label whatever you like. On the form edit page, the button should appear with this text next to it: submit as "ADD".
    HTH

  • Weird Problem with Add Row Button in Master Detail Page

    I have a page that was created with a Master Detail Wizard. When I click the Add Row button on our Production Environment, the row counter increments BUT no blank row shows on the screen.
    In our Development Environment, when I click the Add Row button, a blank row appears as expected. Thinking there was some problem with the production app, I exported the Dev version and imported into Production. Still no blank row.
    Thinking perhaps it had something to do with the data, I copied our production application data back into the development application tables. Still, the development app creates the blank row where the production version does not.
    I even used the same browser window for both environments and still get the same results. This was working fine in production then just stopped one day.
    The only clue I have is that the Add Row WILL work if the Master Record has no details or less than a page worth. It seems to happen when the detail records are more than one page worth. Also, when I click the Add Row button, it goes to the last page of the list (say three pages of 10, 10, 6) but no blank row shows up. Again, works fine in the development environment no matter how many pages.
    Any ideas or suggestions why this is happening? Could there be some environment setting that is causing this to happen?

    I have a page that was created with a Master Detail Wizard. When I click the Add Row button on our Production Environment, the row counter increments BUT no blank row shows on the screen.
    In our Development Environment, when I click the Add Row button, a blank row appears as expected. Thinking there was some problem with the production app, I exported the Dev version and imported into Production. Still no blank row.
    Thinking perhaps it had something to do with the data, I copied our production application data back into the development application tables. Still, the development app creates the blank row where the production version does not.
    I even used the same browser window for both environments and still get the same results. This was working fine in production then just stopped one day.
    The only clue I have is that the Add Row WILL work if the Master Record has no details or less than a page worth. It seems to happen when the detail records are more than one page worth. Also, when I click the Add Row button, it goes to the last page of the list (say three pages of 10, 10, 6) but no blank row shows up. Again, works fine in the development environment no matter how many pages.
    Any ideas or suggestions why this is happening? Could there be some environment setting that is causing this to happen?

  • Add Row Button Not Working

    I've read the threads and done numerous searches.  Not sure why the add row button isn't working, other buttons work.
    Here's what I've found and done.
    Print button subform - positioned (have tried flowed, too) allow page breaks
    Table: body rows vary   -    Insert wrap in subform  - subform flowed - allow page breaks
         row 1 binding - repeat row for each data item - min 1, max 25 (why won't it  keep an initial count when I try putting in 1 or 0?)
    Form properties - preview in dynamic PDF, interactive   -   PDF render format dynamic xml, run in 9.0 or later (to remove errors)
    Insert Row Button in Subform Row 1 Cell 1 (not counting header row) on  click, JavaScript run at client tried table.row1.instancemanager.addinstance(1);   also tried full path
    saved as dynamic pdf
    My hierarchy looks like:
    form1   [autofit]
         master pages
              page 1
                   untitled content area
         printbuttonSubForm  [flowed, top to bottom, allow page breaks]
              untitled subform [flowed, top to bottom, allow page breaks]
                   printbutton1
              tablesf    [flowed, top to bottom, allow page breaks]
                   table1    [allow page breaks]
                        headerRow
                             cell1
                             cell2 etc
                        Row1   [allow page breaks, repeat row for each data item, min 1, max 25 (why won't it  keep an initial count when I try putting in 1 or 0?)]
                             subform   [allow page breaks, repeat row for each data item, min 1, max 25
                                            (why won't it  keep an initial count when I try putting in 1 or 0?)]
                                  button1    table1.row1.subform1.instanceManager.addinstance(1);
                             cell2, etc
         Referenced objects
    Questions:
    I click the Add Row button, but nothing happens, why?  The print button works.
    Found a reference to def instances of same row, what does that mean?
    Is my hierarchy correct?
    How to set Form1 to flow? Object says mixed objects with no options
    Many thanks for your assistance! Leslie

    Hi Leslie,
    There could be a few things.
    First check that the form is saved as Dynamic XML in the save as dialog. If it is saved as Static the add instance will not work.
    Make sure that the object you are targetting is set to repeat in the Object > Binding tab
    Check your syntax in the script editor (button above the editor). Some of your post is not camel case. For example addInstance and instanceManager. Note the capital letter for the second word.
    If you could share your form it would be easier to track down what the problem is. You can use Acrobat.com or YouSendIt.com or some other file sharing site. Just remember to post the published URL.
    Good luck,
    Niall

  • Problem in add row button in apex3.2

    Hi All,
    I have a requirement in tabular form in apex3.2 in which when i click the add row button the add row function is working and 1 row is loaded. again when i click the add row button it should load multiple rows according to my number of click. This condition is working in apex 4.1 but not in 3.2.
    With Regards
    Wildfire;;;

    apex 3.2 is different to 4.1, because in 4.1 it adds the rows on the fly without submitting the page.
    But in 3.2 it submits the page and adds the new row, when submitting the page it adds any newly entered row into database and adds a blank row.
    But in your scenario you are adding a blank row and not populating the values and clicking the add row to get another blank row, Which will try to post the existing blank row into database and adds new row(so you loose the first blank row)
    I guess there was an option in (button or process) 3.2 to specify the number of blank rows you want.
    Thanks

  • Advance Table - Add Row button and coloumn issue

    Hi all,
    I have created Advanced Table wth four coloumns.
    for two columns item style as messagtextinput and the rest are same as DATE.
    But when the page is rendering the table columns shows as messagestyletext , which means messagetextinput style item is not appearing.
    Kindly help me if am missed anything wrong.
    and also can u help me to create add row button featurs in advance table
    Thanks in advance.
    Senthur

    Senthur,
    I hv done this using row status initialised.I couldnt get the above lines.
    I have another doubt also. In Advanced table there is coloumn header, is there any Row header.There is nothing as such RowHeader. Let me know ur exact requirement.
    Name age salary
    empid1 xxx 21 100
    empid2 yyy 22 200Create a VO which return the above attributes and attach the same to the Adavanced Table Bean.
    Regards,
    Gyan

  • Hide Add Row button

    Hi All,
    I want to hide "Add Row" button which is of type "OAAddTableRowBean" without using PPR. If setRendered is used, I see there is no data coming up on the page although the buton is hidden.
    Apprecaite pointers to this.
    Thanks

    Hi
    Can you tell what is happening when you are rendering it false means whole table gets invisible or anything else..Do one thing instead of taking addTableRow default use a submit Button in Footer region where you have created this addTableRow and handle that item in your controller..
    Thanks
    AJ

  • Track add row button in alv

    Hello
    I would like to track the code of add row button in alv grid. When user cliks add row in avl toolbar what is the code? Is there some PAI module calls in that moment ? I found something about slis_selfield and something like mc_fc_loc_insert_row. I have tried write a code:
    data button type ui_func.
    button = gr_alvgrid -> mc_fc_loc_insert_row.
    After that, in PAI module of screen where alv is, I have tried to read that button. But no results.
    Frankly speaking I don't know how to use that all. Can anybody tell me how.
    I will be gratefully.

    Hi Sri,
    I think there is no standard way for this.
    Maybe with java script.
    Actually the users do not need to save data before they get the additional lines, A refresh is enough.
    So maybe you should just define a button calling the refresh command and just name the button different.
    regards
    Cornelia

  • 2 table rows - one "Add Row" button

    I am a novice, not alot of training with javascript.
    I need 2 table rows added to a table without having multiple "add row" buttons. I would like to be able to add both rows with one button.
    right now the button is set for the most current row:
    Table1._Week.addInstance(0);
    the row above is Table1._Codes
    How do I script this in order to have both rows appear when the Add Row button is selected?

    Hi,
    A couple of things without benefit of seeing the form.
    Are the repeating rows called:
    'Week' / 'Codes'?
    OR
    '_Week' / '_Codes'?
    The underscore '_' is shorthand for instanceManager, which is used to call the addInstance. If I assure that the repeating rows are just 'Week' / 'Codes' then the following javascript in the click event of the button should work:
    Table1._Week.addInstance(true);
    Table1._Codes.addinstance(true);
    This should add a row to each repeating row in one button.
    Please note that the parameter for the addInstance is either 0 (false) or 1 (true), which relates to whether the row will be data merged with the form.
    Hope that helps,
    Niall
    hmmm, see you have another thread on this: add multiple rows with add a row button ???

  • Add row button is not working in manual tabular form

    Hi,
    I have created a tabular form by using collections. In the same page there is a wizard tabular form also.
    Here my problem is whenever i giving request to the add row button its showing nothing. there is no any new row got added.
    IF :REQUEST ='ADD'
    THEN
    apex_collection.add_member(
    p_collection_name => l_collection_name
    END IF;
    END;
    Thanks.

    Hi,
    Thanks for ur reply.
    My problem got solved after deleting the tabular form wizard from the page then add row button is working.
    But i think its not the solution.
    Thanks.

Maybe you are looking for

  • Error while enhancing the Extract structure in LBWE

    Hi All, When I am trying to change the extract structure os logistic extractors in LBWE, it is giving me an error saying "Entries for application 11 still exist in the extraction queue". Below is my scenario: I have 3 clients in the same R/3 system,

  • External Hard Drive is not being recognized by Firewire 400

    Hi everyone, I update my Mac OS X (Leopard) last night, so this morning when I was going to connect my External Hard Drive (EDD) to my MacBook; the Firewire, which I normally used through Firewire 400, did not recognized my EDD. However, I tried by c

  • Automatic PO from PR

    Hello, I have a requirement while generating auto PO from PR.Normally while using ME59N for auto generation of PO from PR,conditions from info records will be copied into PO. As incoterms are maintained at purchase org /general level, at times wrong

  • Why does my Safari shut down every time I open a PDF attachment?

    I recently installed the new version of safari beta 3.0.2 and whenever I try to open an attachment without downloading it to my desk top first Safari close's all windows and supposedly sends an error message to apple. how do I fix this? Do i change a

  • Cannot install CC - and can't get help from Adobe

    I have had a problem installing CC.  After reading ALL the online comments and suggestions, I called Adobe customer support on Wednesday.  I was told that the problem had to be escalated and that someone would call me back in 24 hours.  When no one d