Show a new row when an event is triggered

Hi
I have a requirement where in i have to create a new row when clicked on a add row button.
In order to complete the requirement i have created a rowLayout region in the page and in the Controller i am adding the childs to the region in the PR.
Childs are geting inserted in the same row..But i am not able to add child in the next row...
Any body having any clue...then plz help...
This is urgent...any help will be appreciated...

Hi guys,
I tried to create row dynamically by having a rowLayout region in the page and then creating the childs and adding to the rowLayout region.
Below is the code:
OARowLayoutBean rowLayoutBean = (OARowLayoutBean)webBean.findChildRecursive("rowLayout");
OARowLayoutBean bean1 = (OARowLayoutBean)this.createWebBean(pageContext,OARowLayoutBean.ROW_LAYOUT_BEAN,null,"rowLayout2");
String TextBox = "TextBox";
for(int i=0;i<4;i++){
TextBox = TextBox + String.valueOf(i);
OAMessageTextInputBean bean = (OAMessageTextInputBean)this.createWebBean( pageContext,OAMessageTextInputBean.MESSAGE_TEXT_INPUT_BEAN,null,TextBox );
bean.setPrompt(TextBox);
bean1.addIndexedChild(bean);
rowLayoutBean.addIndexedChild(bean1);
I am able to do so from processRequest but when i am tring to handle the button or partial event in the ProcessFormRequest then i am getting an error.
Below is the error details:
Error
(This developer mode error is thrown instead of being registered due to the lack of the page context object.) The OA passivation framework coding standard has been violated. Web bean properties cannot be modified in the controller processFormData or processFormRequest method. Web bean properties should be modified in the processRequest method only. An attempt to modify a web bean has been made in the following call stack: java.lang.Throwable at oracle.apps.fnd.framework.OACommonUtils.getCallStack(Unknown Source) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.addIndexedChild(Unknown Source) at oracle.apps.fnd.framework.webui.beans.layout.OARowLayoutBean.addIndexedChild(Unknown Source) at Koelisupplier.oracle.apps.po.poprint.webui.TestCreateRowCO.processFormRequest(TestCreateRowCO.java:93) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source) at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(Unknown Source) at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(Unknown Source) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source) at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(Unknown Source) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source) at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(Unknown Source) at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(Unknown Source) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source) at OA.jspService(_OA.java:71) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453) at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239) at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34) at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:595)

Similar Messages

  • Add new rows when query not input-ready

    In the Web Application Designer, is it possible to detect whether a query is in display or change mode, and depending on the outcome to set an Analysis Item parameter ?  This would provide a solution to the following:
    Background: I have a Web template used for sales quantity planning which contains two Analysis Items, each with their own input-ready query: ANALYSIS_ITEM_EXISTING allows users to enter plan values based on existing characteristic combinations, ANALYSIS_ITEM_NEW_ROWS allows users to enter new characteristic combinations and their plan values (using the 'Number of New Lines' parameter). These two separate Analysis Items are needed so that I can restrict the characteristic values differently for each. ANALYSIS_ITEM_NEW_ROWS shows only new rows, since I have set both parameters 'Number of New Lines' and 'Data Row to' to 5.
    Problem: If the query underlying ANALYSIS_ITEM_NEW_ROWS is not able to go into change mode (such as when there is an active data slice, or a locking conflict), then instead of seeing 5 empty rows the user sees existing data from the underlying query. This looks bad and is confusing for the user.
    Can anyone think of a solution?

    Hi Jacky,
    The Bex analyzer works in the same way as in the web. You've restrict all charateristics which are not in your rows or columns to a single value. Then you can see that in excel the last blank row has a  black border. If this is the case you can add a new row.
    By pressing F4 in an empty cell you can select values or if you've know the key you can type it directly. Also you can add multiple rows at once. IP collects all rows below the query.
    If this not works, just put all chars from your aggr. level in the rows and check if this works. And then for each change to the restriction/layout run the query and look if you can still add new rows.
    Hope it helps.
    Regards,
    J.

  • How can I show additional tab rows when using many open tabs?

    How can I show additional tab rows when using many open tabs?

    What method (code) did you use to get the Tab bar displaying in the space used for the Navigation Toolbar (location bar)?
    The Tab bar should be displayed above the Navigation Toolbar.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Problem creating a new row when using tabbed regions

    I am new to JHeadstart and ADF and have been using the evaluation version of JHeadstart (in JDev 11.1.1.3) to judge its efficacy for a new significantly-sized application. As part of that evaluation I have created a small application (you can do this with HR schema using say the Departments table) with a single entity and VO. On JHeadstart I have then placed some of the fields into multiple Item regions within a Tabbed region on the same page and below the Group (layout style Table, Table Overflow Style below With Splitter). Existing rows display fine and I can view the data on the separate tabs.
    However, if I try to create a row, I can fill in the data on the main region, but if I fill in data on the first tabbed region I cannot switch to the next tab without an error being generated.
    e.g. using Departments - fill in DepartmentId and DepartmentName on main region, fill in ManagerId on first tabbed region and try to switch to second tabbed region to fill in LocationId:
    Missing mandatory attributes for a row with key null of type HRModule.DepartmentsView1
    Attribute DepartmentId in HRModule.DepartmentsView1 is required.
    Attribute DepartmentName in HRModule.DepartmentsView1 is required.
    If you save, then you can navigate.
    You can also demonstrate something similar (different error message but probably the same root cause) on the myJHSTutorial demo. If you navigate to an employee off the regions page and try and create a new employee (using the '+' button below the 'Employees' label), then the tabs are not refreshed and any attempt to change the tabs results in an error
    Failed to validate a row with key oracle.jbo.Key[999 ] in HRModule.EmployeesView3
    Attribute Salary in HRModule.EmployeesView3 is required.
    Salary must be between 6000 and 12000 for this job.
    The JHS devguide does not help. Any thoughts? I can send the HR sample if you wish.

    OK, I was able to reproduce this. The problem is that when you switch tabs, a partial page request is send to the server which does not include the items filled in the table row itself, hence these items are not updated in the underlying view object row.
    Solution is to have a partial trigger at the table or group level listening to tab events. We will add that to the next release, but you can also apply the fix yourself by adding the following lines to the stackedRegionContainer.vm template:
    #if (${JHS.current.pageComponent.tableLayout} && !(${JHS.current.pageComponent.hasOverflowInline}))
    ## when creating a new row in a table, and using overflow right/below, when switching overflow tabs
    ## the items filled in the table itself must also be processed as part of JSF model update phase, to
    ## prevent required item error when clicking another tab in overflow area
    ## we can enforce this by making the whole group listen to tab events
    #ADD_CUR_GROUP_PARTIAL_TRIGGER("#REGION_ID()Tabs")
    #end
    Add these lines just before the line starting with
    <af:${elemName}
    Steven Davelaar,
    JHeadstart team.

  • Can't autofill new row when categorizing by column content.

    Hello. I'm working on my personal finances spreadsheet and I want to categorize my entries by date, so that they'll be divided by months and years. I did that, no problems so far. The thing is, when I add a new row (at the bottom, below a row in the middle) it's blank, without formulas and configurations set on inspector for the previous rows (e.g. drop down menus and cell format). When I don't use categories, it works as it's supposed to, autofilling with dropdown menus, formulas, cell format etc. Any clue how can I use categories and still autofill new rows? Thanks beforehand =)

    If all of your rows are independent (all formulas in a row refer only to other cells in that row), another thing you might be able to do is
    1) Add a new row by dragging down on the handle
    2) Select one of your existing rows (click on the row number to select the whole row) and copy it
    3) Paste it into the new row.
    You can do this for any of your data rows, not just the last row from the last category. However, if you choose to paste in a row other than the last one, your new row will immediately jump to its proper place in the categories.

  • How can we show data in rows when it is in Columns........

    I have strucked with a simple but a complex problem.
    I have a Report with data in vertical rows..need of the hour is how can we show that data into column structure.
    here is the table sample which i have in Database..
    Location      chrg_type    Effective_date
    xxxxxxx        xxxx          xx-xx
    thhis is the structure in effective date we have several months in it in a single column i want show the effective date or effective month in various columns instead of a single column.
    my required table is....
                                Effective_date     Effective_date
    Location      chrg_type     xx-xx              xx-xx
    xxxxxxx        xxxx          xx-xx
    any tough heads?????

    Hi Sunil,
    Your 1st problem is that you are going to need one more field to accomplish you goal. What type of data do want under your new date columns?
    Anyway, once you have that you need to move on to how to move the data out into columns based on date.
    Try something like this.
    0_Date = IF DATEPART('m',{tbl.Effective_date}) = DATEPART('m',CurrentDate) AND
    DATEPART('yyyy',{tbl.Effective_date}) = DATEPART('yyyy',CurrentDate)
    THEN {tbl.DataField}
    1_Date = IF DATEPART('m',{tbl.Effective_date}) = DATEPART('m',DATEADD('m', -1, CurrentDate)) AND
    DATEPART('yyyy',{tbl.Effective_date}) = DATEPART('yyyy',DATEADD('m', -1, CurrentDate))
    THEN {tbl.DataField}
    2_Date = IF DATEPART('m',{tbl.Effective_date}) = DATEPART('m',DATEADD('m', -2, CurrentDate)) AND
    DATEPART('yyyy',{tbl.Effective_date}) = DATEPART('yyyy',DATEADD('m', -2, CurrentDate))
    THEN {tbl.DataField}
    ... Repeat this process until you have all of the columns you need, following this format.
    Hope this works for you,
    Jason

  • I comment on controversial news articles, firefox no longer shows relevant news articles, when compared to the News section of IE it shows all news.

    Open yahoo and click the News tab in IE, and do the same for Firefox. IE displays real news but Fire fox is now displaying a watered down news and absolutely nothing of a controversial nature.

    hello dadjamey, firefox is just a browser and displays the site as it is received from a webserver (yahoo in your case) - if you have questions about the content served to you, you'd have to approach yahoo's support since only they control what news stories show up on their site.
    things might be different between browsers when you are signed in to the site with an account on one of them but not the other...

  • Problems adding fields when an event is triggered

    Hi,
    I need to create a button that with each click adds a textField. Looking some tutorials i see something like that:
    var name = "myRadio";
    var type = "radiobutton";
    var page = 0;
    var rb = this.addField(name, type, page, [1, 1, 412, 430]);
    this.addField(name, type, page, [400, 427, 412, 415]);
    this.addField(name, type, page, [400, 412, 412, 400]);
    rb.exportValues=["Yes", "No", "Cancel"];
    I have tried it with event form1.btn1::click  with javaScript Language and executing in Client Side. But doesn't work.
    The server uses NWDS 7.0.14 and Adobe LC 7.1
    Any idea?
    Thanks

    Hi Xavier,
    We have similar requirement. Can you please send us the link of the tutorial. If it is a PDF file you can mail it to [email protected] .
    Thanks in Advance,
    Neha

  • Null Pointer Exception When Adding New Row on Table

    Hello JheadStart Team
    I have used detail group with table layout , when I am clicking on AddRow button on detail table , I encounter NulllPointer Exception . I have traced the code and fount that in JhsCollectionModel when adding new row following
    condition occurs :
    DCIteratorBinding ib = getRangeBinding().getIteratorBinding();
    int rangeSize = ib.getRangeSize();
    int rowsInRange = ib.getAllRowsInRange().length;
    because getAllRowsInRange is Null then the error raise.
    My JheadStart ver is 10.1.3.3.85 .
    Detail Group with table layout setting is :
    Use Table range=true
    Show New Row at top=true
    New Rows:empty
    Show Add New Row Button :true
    Regards

    Given the build you are using, I assume you are an Oracle employee.
    Is this correct? if so, please post your question to the [email protected] mailing list.
    Steven Davelaar,
    JHeadstart team.

  • Inserting new row in Table in 11.1.2 from 11.1.1.3 not rendering table!!!!!

    Hey Guys, my status might say noob but i am well seasoned in ADF. We migrated from 11.1.1.3 to the new JDEV 11.1.2. We are doing a test run before we commit to it.
    I noticed the following:
    We have master detail forms that work flawlessly in 11.1.1.3 when we ran the app under 11.1.2 we noticed that any time you try to add a new row to a table the table does not render. The server logs show the action going through and the count goes up one but the table is not rendered anymore it disappears!!!!!!!!!!!!!!
    Now all of this was imported from the 11.1.1.3. all of our tables that have createInsert actions on them are doing this.
    If i drag the tables again and set them up from scratch it seems to work fine. Our issue is we have a good 300 of these tables in different panels and panel collections. we have to do all of that work all over again.
    No errors show in the log. IS THIS A BUG???????????????
    UPDATE: REFRESHING THE PAGE using the Browser Refresh Button Will show the new ROW....... THIS IS NOT GOOOD!!!
    Edited by: user8333408 on Jul 7, 2011 9:23 AM
    Edited by: user8333408 on Jul 7, 2011 9:24 AM
    Edited by: user8333408 on Jul 7, 2011 10:08 AM

    Thanks for the reply.
    The Project was in version 11.1.3 before I migrated. I had the issue above so I migrated to 11.1.1.4 then to 11.1.1.5 then to the New GREAT 11.1.2 to go by the matrix of support The issue is still there.
    Basic Page layout:
    SEARCH-MASTER-PANELTABBED LAYOUT (Hold all the CHILDREN RECORDS)
    PANEL TAB is made of ; SHOW DETAIL ITEM- PANEL COLLECTION- TABLE.
    the panel collection has a toolbar with 2 buttons in it.
    My issue varies:
    Hit create insert==> record count goes up one but the table does not render (it goes all blank even if records existed in it)
    Hit undo budo ==>table still not rendering. (click next on master record then click previous to come back, the table renders correctly.)
    other tables do the following:
    Hit Create insert == > table shows normally and I can enter new record.
    Hit undo ==> table count goes down but table does not render at all anymore.
    for this issue i noticed if i set cache results to false the table works after hitting undo
    IF I CREATE A NEW SHOW DETAIL ITEM and put exactly what the other tabs have in them and use the same layouts and buttons the new table works great!!!!!!!!!!!!???????????????????? WTF?!?!?!?!
    NO ERROR MESSAGES even at finest level are thrown.
    I HAD NO ISSUES IN THE PREVIOUS VERSIONS OF JDEV IS THIS A JSF 2.0 BUG????
    BY THE WAY JDEV 11.1.2 sometimes CRASHES or Hangs when viewing the Binding of Page when you click on Binding straight from the Design view. I have to open the Binding Page separate to view it. FYI
    Edited by: Nottallah on Jul 11, 2011 9:48 AM
    Edited by: Nottallah on Jul 11, 2011 9:51 AM

  • Not Show Newly  Added Row

    i want to when after execute emptyrowset() in view object.
    and add new row to view object adding values to new row object.
    I checked all the values already added to new row object.
    but in out put adf table didn't show add new row.
    below the my code
    BindingContext bc = BindingContext.getCurrent();
    JUApplication japp =
    (JUApplication)bc.getCurrentBindingsEntry().get("AMDataControl");
    AMImpl Am =
    (AMImpl)japp.getApplicationModule();
    CCBSViewObjectImpl voDetailsVO =
    Am.getDetailsVO();
    voDetailsVO .executeEmptyRowSet();
    Row newRow = voDetailsVO.createRow();
    newRow.setNewRowState(Row.STATUS_INITIALIZED);
    newRow.setAttribute("Id", next_seq);
    newRow.setAttribute("No", "3569");
    newRow.setAttribute("Time", "15");
    newRow.setAttribute("AgentId", "Sameera");
    newRow.setAttribute("Type", "SA");
    newRow.setAttribute("Status", "VF");
    newRow.setAttribute("BackType", "N");
    newRow.setAttribute("Remarks", "NOT CLEAR");
    newRow.setAttribute("UpTime", new Date());
    newRow.setAttribute("ResolvedTime", new Date());
    voLastCallDetailsVO.setCurrentRow(newRow);

    This is my mistake original can use correct VO i have below mentioned.
    voDetailsVO .executeEmptyRowSet();
    Row newRow = voDetailsVO.createRow();
    newRow.setNewRowState(Row.STATUS_INITIALIZED);
    newRow.setAttribute("Id", next_seq);
    newRow.setAttribute("No", "3569");
    newRow.setAttribute("Time", "15");
    newRow.setAttribute("AgentId", "Sameera");
    newRow.setAttribute("Type", "SA");
    newRow.setAttribute("Status", "VF");
    newRow.setAttribute("BackType", "N");
    newRow.setAttribute("Remarks", "NOT CLEAR");
    newRow.setAttribute("UpTime", new Date());
    newRow.setAttribute("ResolvedTime", new Date());
    voDetailsVO .setCurrentRow(newRow);

  • InsertRow does not show the inserted row on the view

    hello:
    The code below works well and shows the row on the view when added. However, when there are several existing rows and I have to scroll to next pages. an insert button on that page does not show the new Row at all. Is there a way for me to see the row even if I scroll over to the last page and try an insert?
    ViewObject myVO = this.getMyView();
    Row newRow = myVO.createRow();
    newRow.setAttribute("Id", myId);
    myO.insertRow(newRow);
    Thanks

    Hi,
    I also have problems with code above for inserting a new row.
    When I insert a new row in a table and click on column header (to change sorting), that row (and any other new row before committing) disappears from table. And if I commit that table (without missing row), the missing row reappears with next refresh.
    Selection in that table (using SelectOne component with Autosubmit=true) also doesn't work with new rows (with existing rows it works fine). Selection allways sticks on first inserted row!
    Something weird is happening here...
    Please help.

  • TileLayout new row in DataGroup

    I have some ItemRenders, which show 10 (or 5) img groups in one or two...ot three rows. Next group img must show in New Row.
    <s:DataGroup dataProvider="{arrayAC}" itemRendererFunction="itemRender"  height="500" >          
      <s:layout>
        <s:TileLayout id="Tile" requestedColumnCount="10" columnWidth="50" rowHeight="50"  />
      </s:layout>
    </s:DataGroup>
    private function itemRender(item:Object):ClassFactory
      var cl:ClassFactory;
      if (item.gun)
       cl = new ClassFactory(MyItemRender);
      else if ()
      //******Other Items and ItemRenders
      return cl;
    When using next ItemRender I need go to the next row. How do it ??
    Or use other methods...
    Thanks !
    sorry for english.

    This is the FCP forum...not the JUBLER forum...  They have forums there:
    http://jubler.org/smf/

  • New row in table not refreshing corresponding form

    I have a form in a detail item, that adds a new row to a table, there is another form in a detail item (both in an accordian) that is supposed to display the information of the selected row from the table. This works fine for existing rows in the table.
    But, after a row is added to the table by the first form, and I click on that new row in the table, the second form (for displaying the row's info), isn't showing the new row's data/information.
    Both forms and the table are being driven off of the same VO.
    Any ideas?
    Thanks,
    Joel

    Strong,
    You cannot generate this, but it is very easy to change post-generation. Look for the dataObjectNotFound forward and change it so that it forwards to the table page instead of back to the find page.
    Steven Davelaar,
    JHeadstart Team.

  • Add a new row in Detail form in MASTER DETAIL FORM

    Hello Everyone,
    I need help on the following.I have master detail form .In detail form i have Add Row button which adds a new row and i have save button to save the record .But now if i am adding a row its not adding a new row .It says it process but didn't show the new row .
    Can somebody help me on this
    thanks in advance

    Hello,
    How many records do you show in your detaii region and how many are there for that master? Maybe the new row is in the next set of records - or at the 'bottom' of the last set of records?
    Did you check if the row is inserted in the database (and just didn't show up for one reason or another)?
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    http://www.bloggingaboutoracle.org/
    http://www.logica.com/

Maybe you are looking for

  • FSB only 100 on Satellite 2410-304S

    Why ist the FSB for memory only 100MHz instaed of 133MHz? The chipset i845 can handle 133. Is there any possibility to change it?

  • Pricing condition type Issue YPR0--- ZPR1

    Hi All, WE have a pricing issue, for example we have a condition type YPR0 and we use a pricing procedure which i will call ZME600, we are basically creating a new condition type to be called ZPR1 to replace YPR0, now in the copy control, delivery do

  • Counter triggering

    Hello, I'm creating a program to control a gear tester. It works by driving a master gear which drives a test gear which is on a spring loaded slide hooked up to a linear probe. Both the motor's encoder and the linear probe have quadrature outputs. T

  • Using NOT IN operator

    For the life of me I can't remember how to do this. I have a query: SELECT username FROM ecae WHERE username NOT IN (#listsent#) where #listsent# is a comma delimited list. I know in these cases I need to wrap each entry in the list in single quotes,

  • E63 cant sign into MSN Messenger out of the blue

    I had the phone for almost a year, and out of the blue, I cannot sign in to my msn account. This is the message I got windows live is currently unable to connect. this may be because your phone is in the offline mode or you do not have a data connect