Add more rows problem

I have an advanced table that displays a single row. Users can use Add more rows if they require more.
I have 2 small isses.
Firstly, there are 2 fields. Cost Centre and description. Cost centre has an LOV and description is mapped and populated from the LOV as well.
When I click on add more rows, the description column of the first record is cleared.....I obviously want this to remain.
Second issue. When I choose the value from the LOV on rows 2 and above i want to ensure this has not been chosen before in a previous record - any quick way to do this>?
Robert

Regarding 2: You can write your Lov VO query with NOT IN :1. Use the CO in your LOV and try to get the value entered by user in above row(s) and bind it in LOV VO query using your Lov CO. Please note that LOV CO might get called before coming to page CO processFormRequest. So try to keep a stringBuffer value in OADBTransaction, which shall concat the values selected in all above rows. Use this value in LOV CO each time.
Hope it helps.

Similar Messages

  • Row Level PPR in Advanced Table with Add More Rows Button

    <br>
    I have programmatically fired PPR event on MessageChoice. But it is in Advanced Table with
    Add More Rows Button. When the value is changed in MessageChoice I Show/Hide Custom LOV
    through SPEL like this ${oa.BioEmployeePVO.EmpManagerRender} .
    But it is <b>hiding the all the ROWS</b> not just the row where the value has been changed.
    I even tried with this code and get NULL for rowReference.
    String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    In Processrequest()
    String pageName = pageContext.getRootRegionCode();
         Hashtable params = new Hashtable (1);
         params.put ("param1", pageName);
         Hashtable paramsWithBinds = new Hashtable(1);
        paramsWithBinds.put ("param2",new OADataBoundValueFireActionURL (mcb, "{$AttendeeType}"));
        mcb.setFireActionForSubmit ("empPositionChange", params, paramsWithBinds,false, false);
    In ProcessFormRequest() {
    if ("empPositionChange".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))   
          String rowReference = pageContext.getParameter("param2");
        //    String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
         Serializable[] parameters = { rowReference };
          am.invokeMethod("handlePositionChangeEvent", parameters);
    <br>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    HI Kumar,
    Answer to your last post is "yes".
    Now to your doubt regarding the code:
    Hi Anna
    I am trying to understand your code.
    FireAction firePartialAction = new FirePartialAction("fireHideEvent"+(i/noOfTlaColSpan));
    HideImgBean.setAttributeValue(PRIMARY_CLIENT_ACTION_ATTR,firePartialAction);
    1. What is this i/noOfTlaColSpan ?
    :)Forget abt this in your case it should be the event name which u r firing and capturing the it in the PFR.
    Like FireAction firePartialAction = new FirePartialAction("YOurEventName");
    and in PFR u can capture tht as:
    if("YOurEventName".equals(pageContext.getParameter(EVENT_PARAM)))
    //your logic to invoke AM method
    2. I believe this HideImgBean would be MessageChoice for me?
    :)Yep ur right
    3. This brcdOhInventoryViewUpdateVOImpl would be the Custom PVO(Extending Seeded Base VO)
    I create by adding the transient attributes?
    :)Yep ur right
    4. I cannot understand this code. Could you explain.
    :)Please look at my comments in some of the lines .I have explained wht i am doing
    if(updateIter==null)
    updateIter[0]= invViewVO.createRowSetIterator("updateIter");//This initViewVo should be ur custom VO object
    if(cnt>0)
    updateIter[0].setRangeStart(0);
    updateIter[0].setRangeSize(cnt);
    for(int i=0;i<cnt;i++)
    row = (brcdOhInventoryViewUpdateVORowImpl)updateIter[0].getRowAtRangeIndex(i);
    String selectFlag=(String)row.invokeMethod("getPartNumber");//This getPartNuber should be replaced by the Prim Key inoke methd of ur VO
    if(RowID.equals(selectFlag))
    //This is my logic to set the transient attributes based on the msgChoiceBean value ..u have to pass the value when u invoke this method
    if(reserveMethod.equals("BINARY"))
    System.out.println("In Binary");
    Boolean bVal= new Boolean("false");
    Serializable sr[]={bVal};
    Class []methodParamTypes = { bVal.getClass() };
    row.invokeMethod("setshowreservetxt",sr,methodParamTypes);
    Boolean bVal1= new Boolean("true");
    System.out.println("bVal1"+bVal1);
    Serializable sr1[]={bVal1};
    Class []methodParamTypes1 = { bVal1.getClass() };
    row.invokeMethod("setShowreservemsgchoice",sr1,methodParamTypes1);
    break;
    In my AM I am doing this. Am i doing right?:)Yep u r right
    BioPrescribersPVO is the custom VO(extending seeded base VO).
    public void handlePositionChangeEvent(String param)
    OAViewObject vo = (OAViewObject)findViewObject("BioPrescribersPVO");
    OARow row = (OARow)findRowByRef(rowReference);
    if (row != null)
    String position = (String)row.getAttribute("AttendeeType");
    if (("PRESCRIBER".equals(position)) )
    // BioEmpManagerRender is the transient attribute in BioPrescribersPVO.
    row.setAttribute("BioEmpManagerRender", Boolean.TRUE);
    row.setAttribute("BioPresManagerRender", Boolean.FALSE);
    else
    row.setAttribute("BioEmpManagerRender", Boolean.FALSE);
    row.setAttribute("BioPresManagerRender", Boolean.TRUE);
    } // end handlePositionChangeEvent()
    // Initializing the custom VO
    /*No need to initialize the VO because this is not a PVO(Propeties View object)
    U r just using the existing VO and tht vo shloud have a primary key.Tht way u can match the rowref u r getting with the actual row from the View object*/
    public void init()
    OAViewObject appPropsVO = (OAViewObject)getBioPrescribersPVO();
    if (appPropsVO != null)
    if (appPropsVO.getFetchedRowCount() == 0)
    appPropsVO.setMaxFetchSize(0); appPropsVO.executeQuery();
    appPropsVO.insertRow(appPropsVO.createRow());
    OARow row = (OARow)appPropsVO.first();
    row.setAttribute("RowKey", new Number(1));
    handlePositionChangeEvent("");
    } // end init()
    Thanks
    Anna

  • Add more rows with LOV

    I have an LOV based on a VO containing on transient attributes.
    The LOV has 3 return items, 1 is the item the LOV is attached to, the second is a messageStyledText field and the thirds is a formValue.
    When I click on Add more rows (above fields are the sole fields in a classic table) I get a new row, however the value in the messageStyledText is not retained.
    I was planning on storing the same value as the messageStyledText in a formValue and perhaps grabbing the addRows event and setting the values to be the same. Now I have not quite got this working yet.
    So the question is - is this the right approach and if so any pointers?
    If I continue to add rows will I have to continually look through the VO and re-map the formValue back to the messageStyledText?

    Thanks sumit
    This works perfectly. The issue I had was the formValue and messageStyledText were associated with different VO attributes. I was therefore catching the addRows event and setting the attribute manually.
    Thanks a lot

  • Add/Delete Rows problem

    I'm having a problem with the add row and delete row for my table.  I have a table set up with the add row button in the header, and the delete row button in the first cell of the row beneath the header.  I have it set so that the initial count of the row is 2.  My problem is if the user adds several rows with data, and save the form.  When that user goes back into the same form later, it keeps the several rows that the user entered, which is fine, but then it automatically adds 3 more blank rows to the table, which I don't want.  I don't understand why it is doing this.  Does anyone have a clue to why this is happening?
    Thanks
    Connie

    Hi Connie,
    Just make sure that you have checked the below thing.\
    File > Form Properties > Run tIme > Scripting > Automatically is checked.
    Thanks,
    Bibhu.

  • Cycle rows in KSU5: can add more row?Is it sequential?

    Hi guyz,
    Regarding cycle rows in KSU5:
    1. Can I add more cycle rows in KSU5?
        If I need more than 13 rows that is provided, where I can do it and how?
    2. Is SAP read and execute the cycle rows by sequential?
        Ex.: If I put cycle B001 at row 1, and then cycle B002 at row 2.... Does it executed first from B001 and then B002?
    Need your answers asap..Thanking you..

    Hi Meila Santiana,
    In KSU5, the cycles are picked up by system dynamically depending on system resources. So the cycles can run in parallel if more application servers activated.
    For your case, you can either change your cycles to put into one cycle with different segments because the segments in one cycle is processed by sequence, or create background jobs one after another if you think to run in foreground takes long time monitoring.

  • Add more rows - a whole page full

    I grew up on Microsoft Works and AppleWorks/Clarisworks
    (spreadsheets) where you didn't run out of rows - you could
    just scroll indefinitely down the spreadsheet at hearts content -
    but in Numbers I find myself hitting the bottom at 44 rows. I
    see they can be added one at a time but is there another way?
    I don't want to add another sheet, table or whatever - just more
    rows. please.
    Thanks very much.
    Tom
    Numbers '09
    MacOS 10.7.4

    Hi Tom,
    quinn

  • Add more rows in record working time

    Hello Guru's,
    IN ESS- Record Working Time - the number of rows visible are set to 8 in the Web Dynpro Java Code.
    I had a look at the Note:
    Note 957741 - Few lines in the data entry grid of the timesheet webdynpro
    The question I had is to have more than 8 rows visible, is it Java Code modification or any other alternative to change the number of Visible Row....
    Please reply back asap.
    Thanks in advance for your time.
    Best Regards,
    Punit
    This question has been asked a few times already
    PL search this forum
    Edited by: Suresh Datti on Sep 10, 2009 4:02 PM

    Hi,
    You can personalize the iView to achieve this. I explain how to do this in another thread (second post) : /message/8131024#8131024 [original link is broken].
    Regards,
    Pierre

  • Adding more rows in a html table(enclosed inside a jsf tabbed pane)

    hi,
    i m facing a problem. i have a html Table inside a jsf Tabbed Pane and a button to add more rows.whenever i click on the button it should add 5 more rows to the table using javscript.
    can anyone hlp me in solving this problem.
    thankx in advance

    Use the elegant JSF h:dataTable instead of plain HTML table with a heap of DOM stuff.

  • When I add a row, I lose the formula!

    I made a simple check register spreadsheet a year ago & when I run out of rows I add more rows by dragging the handle in the lower right of the spreadsheet DOWN. I can also click the handle with the number of the row in the lower left to add just one more row. Or I can select the lower right cell (account balance) & hit enter & it created one more row.
    None of these methods preserve my formula! I could swear that dragging the lower right handle in the past has preserved the formula.
    What am I doing wrong?
    Thanks!

    growler62000 wrote:
    =IF(AND(ISBLANK(E2),ISBLANK(F2)),"",Beginning Balance :: B2-E2+F2)
    A = ref #/ck #
    B= Date
    C= Description
    E=Debit
    F= Credit
    G=Balance
    I assume the above formula is in G2. What's the formula in G3?
    If you've created it by filling down, it should be:
    =IF(AND(ISBLANK(E3),ISBLANK(F3)),"",Beginning Balance :: B3-E3+F3)
    But I suspect it's this:
    =IF(AND(ISBLANK(E3),ISBLANK(F3)),"",G2-E3+F3)
    ...and the difference is what's preventing the formula from being automatically filled into new rows.
    My solution DOES work perfectly although I probably explained it poorly.
    Yes it does. Your solution was clearly described, and with one formula in column G that's different from the rest, it's also the most efficient one available.
    BTW, I wish I could force column B to order the entries by date as sometimes I will 1st enter today's date & then next row I enter yesterday’s date, etc
    What messes up sorts is the references to specific cells in the formulas. If you can replace those with references to the appropriate cells wherever the formula actually winds up, the problem is solved.
    Two tools that numbers provides that help with this are
    1. the ability to reference a cell in the same row using only its column reference
    2. the OFFSET function.
    Both are used in the example below. The table on the left is a snapshot after data was entered, and before the table was sorted. The one on the right shows the same table after sorting the selected rows.
    You'll note that I added a second Header row to allow space for the beginning balance to be placed in a header row on this table. That's to make it possible to have the same formula in every non-header row of column G so that the formula will be automatically entered into new rows as they are added.
    Your formula will still work in the first non-header row, should you choose not to make this modification (Just enter the formula below into the row below that and fill down to the bottom row), but I would caution you to not include this first body row in any sort in that case.
    Here's the formula in G3 of the example (and filled down to every row below that):
    =IF(AND(ISBLANK(E),ISBLANK(F)),"",OFFSET($A$1,ROW()-2,6)-OFFSET($A$1,ROW()-1,4)+ OFFSET($A$1,ROW()-1,5))
    Note that the first references to E and F omit the row numbers, and the references to the previous balance, debit and credit cells are through an offset from cell A1.
    You can find out more about OFFSET in the iWork Formulas and Functions User Guide.
    Regards,
    Barry

  • Control array's scrollbar shows more rows than dimensions

    When an array's dimension and Number of Rows property are set to the same value, its vertical scrollbar is shown and implies there is one more row available in the array than the actual array size.
    This happen only if the array is a control, not when it is an indicator.  As an indicator, no scrollbar is shown at run time.  In edit mode, a scrollbar is shown when as an indicator.
    Is there a way to not have the scollbar appear if the number of rows equals the array size yet have it appear when the number of rows is less than the array size ?
    Example vi attached.
    Attachments:
    Array scroll bar dimension.vi ‏18 KB

    Jennifer,
    In practice, the number of displayed array rows is restricted so that only enough rows are shown to remain within the bounds of the front panel.  Otherwise as the array size is increased, the array will extend off the bottom of the screen.  My modified version shows this restriction.  But notice that as a control, the array shows one more dimension than it had been allocated to (and is shown as a disabled row).   In fact, clicking on the bottom arrow of the scollbar will continue to add more rows to the array control.
    Steve
    Attachments:
    Array scroll bar dimension.vi ‏22 KB

  • Batch input: how to fill in more rows than the ones for the screen's size.

    Hi everybody,
    I am working on a batch input for transaction ME38.
    When, through my abap code, I am filling in the second screen's table, the system stops, telling me there is no field "43" on the screen.
    Here is a summary of the batch input:
    EKET-MENGE(1)               66,000
    RM06E-EEIND(1)     30.06.2009
    EKET-MENGE(31)               66,000
    RM06E-EEIND(31)     30.06.2009
    EKET-MENGE(43)               66,000
    RM06E-EEIND(43)     30.06.2009
    In fact, my screen has 31 lines, but 43 entries must be filled.
    I can program a logic to go to the next screen when entry 31 has been filled, but how to know what is the screen limit?
    Because my program will not always be started by me, and will, most probably, be started in background jobs...
    Do you see a way to process that can help me?
    Is there a way to not be "screen size dependant"?
    Thanks in advance for your help.
    Regards,
    Rudy

    Hi...
    This issue can be resolved by creating a recording in SHDB transaction for 43 records and press add more rows button evytime you do that..
    As the rows will be added to the table during runtime you need not worry about the limit of the table entries.. and it will work fine..
    Hope this helps

  • Single Master, multiple details add-rows problem

    Hi, hope to get a replay at least this time (last threads have gone unreplied :-( )
    We've built a master-multiple details table. Everything in visualization has worked OK until we've got the need to add rows to each
    detail table separately (i.e. for same master row, one could add N rows to one detail and M rows to the other).
    Keeping the standard "addRows" table buttons doesn't work because the same addRows event is fired for both the subtables, so
    adding a row in one just adds a row also to the other, until a dedlock situation is reached.
    So we tried to set a different button so we could intercept the originator table (SOURCE_PARAM) in the processForm but here we're facing
    some big problems.
    First at all, the methods and names are correct: we've tried to use the same code (cut and paste) for the table putting the inner table "outside"
    and buttons are working as expected.
    But when the detail table is put back "within" the master, what happens is that the AM method called by pFR in the Controller is executed, so
    we reach the end of the processFormRequest, but at this time something happens and we get the exception error message reported more below.
    I've read that via the VL it is not the original detail VO instance which is showed, so wonder if the error has something to do with that...
    So to summarize:
    1) all the objects exist and are ok, and the VL is defined OK; and indeed the standard AddRows management works (as said, the problem
    is that we need to differentiate two different details...)
    2) the methods are OK as they work as soon as the details are put outside the master table.
    Any suggestion ? Do we need to refer to a specific details VO instance ???
    Thanks in advance. Rgds.
    GN
    ## Detail 0 ##
    oracle.apps.fnd.framework.OAException: oracle.jbo.InvalidObjNameException: JBO-25005: Nome oggetto per il tipo Oggetto vista non valido
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1408)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2704)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1707)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:511)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:432)
         at OA.jspService(OA.jsp:33)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    oracle.apps.fnd.framework.OAException: oracle.jbo.InvalidObjNameException: JBO-25005: Nome oggetto per il tipo Oggetto vista non valido
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1408)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2704)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1707)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:511)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:432)
         at OA.jspService(OA.jsp:33)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)

    Any suggestion on this ? What I need, in other words, is to put two details table under the same master table...

  • How to add more than one rows to form, without submitting to database

    Hi!
    I have an updatable report similar to this http://htmldb.oracle.com/pls/otn/f?p=31517:163:3149788972931514::NO
    Now, as much as I'm aware the standard thing is that when I add a row, put in data and then add a nother row, previous data is commited and another row is added.
    I, on the other hand, would like to add as much rows as I need and populate them with data and then submitt all the changes in the end. So the user nows, that when he SAVES data it's submited to db, not in between.
    My form is not standard, it uses SQL, and APEX_ITEM, I even have more updatable reports on one page etc, so I presume, processes like AddRowToTabularForm don't come handy.
    Thanx for any suggestions,
    N.

    user10824271 wrote:
    I, on the other hand, would like to add as much rows as I need and populate them with data and then submitt all the changes in the end. So the user nows, that when he SAVES data it's submited to db, not in between.So you would have a select list for the number of rows?
    Add that X(select list) number of rows, populate rows, then insert?
    Is that how you vision it?
    Did you try this? [Tabular Form Add Rows Using Item | http://htmldb.oracle.com/pls/otn/f?p=31517:209:3291656615866862:ADD:NO:::]
    Edited by: MHolley on Mar 11, 2009 8:53 AM

  • HT1752 I am working on a chart in paged with 7 columns. Problem has occurred with amount of row. I have completed 999 rows and it won't allow me to continue. As I need to do approx 3000+ rows, can anyone explain to me how to add extra rows. Thanks Jane

    I am working on a chart in pages with 7 columns.
    Problem has occurred with amount of rows. I have completed 999 rows and it won't allow me to continue. As I need to do approx 3000+ rows, can anyone explain to me how to add extra rows. Thanks Jane

    Try posting in the Pages forum
    https://discussions.apple.com/community/iwork/pages

  • Add more than one row at a time

    How do I add multiple rows in one step? I periodically d/l a small sheet of data and paste it into a master sheet. I have to add enough rows between the data and the summary row one at a time. Is there a quicker way?
    Geoff

    Geoff,
    Let's say that you want to add 5 rows. Select the 5 rows just above where you want to add 5 more and select Table > Add Rows Below. A number of rows equal to the number you have selected will be added.
    Jerry

Maybe you are looking for

  • Macbookpro or Macbook air

    Is apple coming out with a new version for Macbook Pro MD101HN/A ? what should i go for Macbook Pro or Macbook air ? My usage are basic mainy internet , word , excel , powerpoint etc. Can i upgrade Macbook Pro MD101HN/A to Mavericks and other new s/w

  • What is better to buy a ipad 2nd gen or laptop

    what do you think is better an ipad or laptop? what are the differences between them? Andjonny

  • Need Code Or Logic

    Dear All, I need to store 10 items list as one row. could you explain how can i do it. I need like. user_name sysdate item1_name item1_price item1_Qty item2_name item2_price item2_Qty Thanks, MuthyaM

  • I am having problems opening any document in CS3.

    I keep getting an error mesage that reads... the specified module could not be found C:\Program Files\Common Files\AdobeVAdobe Version Cue CS3\3.3.0\Version CuwUI.DLL.  The program then closes. How do I fix this problem. I have Windows Vista Home Pre

  • Help how to simplify this problem code.

    Is there a way to edit the code to enable that i don have so many if statements.. what can do to improve pls help. my code is: public class tradeFair1 {      public static void main(String[]arguments){           double studentM=1.00, studentA=1.20, s