Issue Using CreateInsert to Add Row to ADF Table

I am using JDev 11.1.2 and have a pretty simple application. The application contains tabs and each tab displays a page fragment. In each page fragment, I have a panelstretch layout. In the top facet I have a form and in the center facet I have a table. I am having an issue once deploying to a standalone WLS server. It works as desired when run locally through the integrated wls. User clicks CreateInsert button and it clears the form and inserts a blank into the table. User clicks Commit and the data appears in the adf table. Pretty simple and straight forward. However, when deployed to the standalone wls the user clicks CreateInsert button the form clears and all the rows in the adf table disappear. I can reload the page and then the rows appear, including the blank one. I have tested this in IE 8 (both in and out of compatibility mode), Firefox 12, and Chrome and get the same results.
I have one page fragment that it works correctly on when deployed to standalone WLS. All other fragements behave like I described above. I compared the jsff, pagedef, and view objects. I do not see any difference between them. I posted the jsff code below, but I can also post the pagedef code if needed. Any direction on how to resolve this would be great. Am I missing something obvious?? Thanks for any help or advice you can lend!
******Working jsff*****
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
xmlns:f="http://java.sun.com/jsf/core">
<af:panelStretchLayout id="psl1" styleClass="AFStretchWidth" startWidth="0px" topHeight="185px" bottomHeight="0px"
endWidth="0px" dimensionsFrom="auto">
<f:facet name="bottom"/>
<f:facet name="center">
<af:panelGroupLayout id="pgl1" layout="scroll">
<af:panelCollection id="pc1" styleClass="AFStretchWidth">
<f:facet name="menus">
<af:menu text="Print Menu" id="m1">
<af:commandLink text="Print Notes" id="cl1" useWindow="true" partialSubmit="true">
<af:setActionListener from="au_notes" to="#{pageFlowScope.jrxml}"/>
<af:fileDownloadActionListener contentType="application/pdf" filename="Report"
method="#{JasperBean.printreport}"/>
</af:commandLink>
</af:menu>
</f:facet>
<f:facet name="toolbar">
<af:toolbar id="t2">
<af:commandButton actionListener="#{bindings.CreateInsert.execute}" text="Insert"
disabled="#{!bindings.CreateInsert.enabled}" id="cb2"/>
<af:commandButton actionListener="#{bindings.Delete.execute}" text="Delete"
disabled="#{!bindings.Delete.enabled}" id="cb3"/>
</af:toolbar>
</f:facet>
<f:facet name="statusbar"/>
<af:table value="#{bindings.TAuOrgNotesView1.collectionModel}" var="row"
rows="#{bindings.TAuOrgNotesView1.rangeSize}"
emptyText="#{bindings.TAuOrgNotesView1.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.TAuOrgNotesView1.rangeSize}" rowBandingInterval="0"
selectedRowKeys="#{bindings.TAuOrgNotesView1.collectionModel.selectedRow}"
selectionListener="#{bindings.TAuOrgNotesView1.collectionModel.makeCurrent}" rowSelection="single"
id="t1" styleClass="AFStretchWidth" partialTriggers="::cb2 ::cb3 :::cb1" autoHeightRows="10">
<af:column sortProperty="#{bindings.TAuOrgNotesView1.hints.NoteDate.name}" sortable="false"
headerText="#{bindings.TAuOrgNotesView1.hints.NoteDate.label}" id="c1" width="60">
<af:outputText value="#{row.NoteDate}" id="ot1">
<af:convertDateTime pattern="#{bindings.TAuOrgNotesView1.hints.NoteDate.format}"/>
</af:outputText>
</af:column>
<af:column sortProperty="#{bindings.TAuOrgNotesView1.hints.NoteInitials.name}" sortable="false"
headerText="#{bindings.TAuOrgNotesView1.hints.NoteInitials.label}" id="c2" width="60">
<af:outputText value="#{row.NoteInitials}" id="ot2"/>
</af:column>
<af:column sortProperty="#{bindings.TAuOrgNotesView1.hints.NoteNote.name}" sortable="false"
headerText="#{bindings.TAuOrgNotesView1.hints.NoteNote.label}" id="c3" width="700" noWrap="true">
<af:outputText value="#{row.NoteNote}" id="ot3"/>
</af:column>
</af:table>
</af:panelCollection>
</af:panelGroupLayout>
</f:facet>
<f:facet name="start"/>
<f:facet name="end"/>
<f:facet name="top">
<af:panelBox text="Note Info" id="pb1" rendered="#{bindings.NoteSeqNumber.inputValue!=null}">
<f:facet name="toolbar">
<af:commandButton actionListener="#{bindings.Commit.execute}" text="Save" id="cb1" partialSubmit="true"/>
</f:facet>
<af:panelGroupLayout layout="horizontal" id="pgl2" valign="top"
rendered="#{bindings.NoteSeqNumber.inputValue!=null}">
<af:panelFormLayout id="pfl1">
<af:inputText value="#{bindings.NoteSeqNumber.inputValue}" label="#{bindings.NoteSeqNumber.hints.label}"
required="#{bindings.NoteSeqNumber.hints.mandatory}"
columns="#{bindings.NoteSeqNumber.hints.displayWidth}"
maximumLength="#{bindings.NoteSeqNumber.hints.precision}"
shortDesc="#{bindings.NoteSeqNumber.hints.tooltip}" id="it1" visible="false">
<f:validator binding="#{bindings.NoteSeqNumber.validator}"/>
<af:convertNumber groupingUsed="false" pattern="#{bindings.NoteSeqNumber.format}"/>
</af:inputText>
<af:inputDate value="#{bindings.NoteDate.inputValue}" label="#{bindings.NoteDate.hints.label}"
required="#{bindings.NoteDate.hints.mandatory}"
columns="#{bindings.NoteDate.hints.displayWidth}"
shortDesc="#{bindings.NoteDate.hints.tooltip}" id="id1">
<f:validator binding="#{bindings.NoteDate.validator}"/>
<af:convertDateTime pattern="#{bindings.NoteDate.format}"/>
</af:inputDate>
<af:selectOneChoice value="#{bindings.NoteInitials.inputValue}" label="#{bindings.NoteInitials.label}"
required="#{bindings.NoteInitials.hints.mandatory}"
shortDesc="#{bindings.NoteInitials.hints.tooltip}" id="soc1">
<f:selectItems value="#{bindings.NoteInitials.items}" id="si1"/>
</af:selectOneChoice>
<af:inputText value="#{bindings.NoteNote.inputValue}" label="#{bindings.NoteNote.hints.label}"
required="#{bindings.NoteNote.hints.mandatory}" columns="105"
maximumLength="#{bindings.NoteNote.hints.precision}"
shortDesc="#{bindings.NoteNote.hints.tooltip}" id="it2" rows="5">
<f:validator binding="#{bindings.NoteNote.validator}"/>
</af:inputText>
</af:panelFormLayout>
<af:panelFormLayout id="pfl2" rows="2" maxColumns="2">
<f:facet name="footer"/>
<af:inputText value="#{bindings.NoteCreatedBy.inputValue}" label="#{bindings.NoteCreatedBy.hints.label}"
required="#{bindings.NoteCreatedBy.hints.mandatory}"
columns="#{bindings.NoteCreatedBy.hints.displayWidth}"
maximumLength="#{bindings.NoteCreatedBy.hints.precision}"
shortDesc="#{bindings.NoteCreatedBy.hints.tooltip}" id="it3">
<f:validator binding="#{bindings.NoteCreatedBy.validator}"/>
</af:inputText>
<af:inputText value="#{bindings.NoteModifiedBy.inputValue}" label="#{bindings.NoteModifiedBy.hints.label}"
required="#{bindings.NoteModifiedBy.hints.mandatory}"
columns="#{bindings.NoteModifiedBy.hints.displayWidth}"
maximumLength="#{bindings.NoteModifiedBy.hints.precision}"
shortDesc="#{bindings.NoteModifiedBy.hints.tooltip}" id="it4">
<f:validator binding="#{bindings.NoteModifiedBy.validator}"/>
</af:inputText>
<af:inputDate value="#{bindings.NoteDateCreated.inputValue}" label="#{bindings.NoteDateCreated.hints.label}"
required="#{bindings.NoteDateCreated.hints.mandatory}"
columns="#{bindings.NoteDateCreated.hints.displayWidth}"
shortDesc="#{bindings.NoteDateCreated.hints.tooltip}" id="id2">
<f:validator binding="#{bindings.NoteDateCreated.validator}"/>
<af:convertDateTime pattern="#{bindings.NoteDateCreated.format}"/>
</af:inputDate>
<af:inputDate value="#{bindings.NoteDateModified.inputValue}"
label="#{bindings.NoteDateModified.hints.label}"
required="#{bindings.NoteDateModified.hints.mandatory}"
columns="#{bindings.NoteDateModified.hints.displayWidth}"
shortDesc="#{bindings.NoteDateModified.hints.tooltip}" id="id3">
<f:validator binding="#{bindings.NoteDateModified.validator}"/>
<af:convertDateTime pattern="#{bindings.NoteDateModified.format}"/>
</af:inputDate>
</af:panelFormLayout>
</af:panelGroupLayout>
</af:panelBox>
</f:facet>
</af:panelStretchLayout>
</jsp:root>
*** Non Working jsff****
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
xmlns:f="http://java.sun.com/jsf/core">
<af:panelStretchLayout id="psl1" styleClass="AFStretchWidth" startWidth="0px" topHeight="125px" bottomHeight="0px"
endWidth="0px" dimensionsFrom="auto">
<f:facet name="bottom"/>
<f:facet name="center">
<af:panelGroupLayout id="pgl1" layout="scroll">
<af:panelCollection id="pc1" styleClass="AFStretchWidth">
<f:facet name="menus"/>
<f:facet name="toolbar">
<af:toolbar id="t2">
<af:commandButton actionListener="#{bindings.CreateInsert.execute}" text="Insert"
disabled="#{!bindings.CreateInsert.enabled}" id="cb1"/>
<af:commandButton actionListener="#{bindings.Delete.execute}" text="Delete"
disabled="#{!bindings.Delete.enabled}" id="cb3"/>
</af:toolbar>
</f:facet>
<f:facet name="statusbar"/>
<af:table value="#{bindings.TAuInvestigatorsView1.collectionModel}" var="row"
rows="#{bindings.TAuInvestigatorsView1.rangeSize}"
emptyText="#{bindings.TAuInvestigatorsView1.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.TAuInvestigatorsView1.rangeSize}" rowBandingInterval="0"
selectedRowKeys="#{bindings.TAuInvestigatorsView1.collectionModel.selectedRow}"
selectionListener="#{bindings.TAuInvestigatorsView1.collectionModel.makeCurrent}" rowSelection="single"
id="t1" styleClass="AFStretchWidth" partialTriggers="::cb1 ::cb3 :::cb2" autoHeightRows="10">
<af:column sortProperty="#{bindings.TAuInvestigatorsView1.hints.InvFirstName.name}" sortable="false"
headerText="#{bindings.TAuInvestigatorsView1.hints.InvFirstName.label}" id="c1" width="60">
<af:outputText value="#{row.InvFirstName}" id="ot1"/>
</af:column>
<af:column sortProperty="#{bindings.TAuInvestigatorsView1.hints.InvLastName.name}" sortable="false"
headerText="#{bindings.TAuInvestigatorsView1.hints.InvLastName.label}" id="c2">
<af:outputText value="#{row.InvLastName}" id="ot2"/>
</af:column>
<af:column sortProperty="#{bindings.TAuInvestigatorsView1.hints.InvStatus.name}" sortable="false"
headerText="#{bindings.TAuInvestigatorsView1.hints.InvStatus.label}" id="c3">
<af:outputText value="#{row.InvStatus}" id="ot3"/>
</af:column>
<af:column sortProperty="#{bindings.TAuInvestigatorsView1.hints.InvInitials.name}" sortable="false"
headerText="#{bindings.TAuInvestigatorsView1.hints.InvInitials.label}" id="c4">
<af:outputText value="#{row.InvInitials}" id="ot4"/>
</af:column>
</af:table>
</af:panelCollection>
</af:panelGroupLayout>
</f:facet>
<f:facet name="start"/>
<f:facet name="end"/>
<f:facet name="top">
<af:panelBox text="Investigator Info" id="pb1">
<f:facet name="toolbar">
<af:group id="g1">
<af:commandButton actionListener="#{bindings.Commit.execute}" text="Save" id="cb2" partialSubmit="true"/>
</af:group>
</f:facet>
<af:panelFormLayout id="pfl1" maxColumns="2" rows="2">
<af:inputText value="#{bindings.InvFirstName.inputValue}" label="#{bindings.InvFirstName.hints.label}"
required="#{bindings.InvFirstName.hints.mandatory}"
columns="#{bindings.InvFirstName.hints.displayWidth}"
maximumLength="#{bindings.InvFirstName.hints.precision}"
shortDesc="#{bindings.InvFirstName.hints.tooltip}" id="it1">
<f:validator binding="#{bindings.InvFirstName.validator}"/>
</af:inputText>
<af:inputText value="#{bindings.InvLastName.inputValue}" label="#{bindings.InvLastName.hints.label}"
required="#{bindings.InvLastName.hints.mandatory}"
columns="#{bindings.InvLastName.hints.displayWidth}"
maximumLength="#{bindings.InvLastName.hints.precision}"
shortDesc="#{bindings.InvLastName.hints.tooltip}" id="it2">
<f:validator binding="#{bindings.InvLastName.validator}"/>
</af:inputText>
<af:inputText value="#{bindings.InvStatus.inputValue}" label="#{bindings.InvStatus.hints.label}"
required="#{bindings.InvStatus.hints.mandatory}"
columns="#{bindings.InvStatus.hints.displayWidth}"
maximumLength="#{bindings.InvStatus.hints.precision}"
shortDesc="#{bindings.InvStatus.hints.tooltip}" id="it3">
<f:validator binding="#{bindings.InvStatus.validator}"/>
</af:inputText>
<af:inputText value="#{bindings.InvInitials.inputValue}" label="#{bindings.InvInitials.hints.label}"
required="#{bindings.InvInitials.hints.mandatory}"
columns="#{bindings.InvInitials.hints.displayWidth}"
maximumLength="#{bindings.InvInitials.hints.precision}"
shortDesc="#{bindings.InvInitials.hints.tooltip}" id="it4">
<f:validator binding="#{bindings.InvInitials.validator}"/>
</af:inputText>
</af:panelFormLayout>
<af:panelFormLayout id="pfl2" maxColumns="2" rows="2">
<f:facet name="footer"/>
<af:inputText value="#{bindings.InvCreatedBy.inputValue}" label="#{bindings.InvCreatedBy.hints.label}"
required="#{bindings.InvCreatedBy.hints.mandatory}"
columns="#{bindings.InvCreatedBy.hints.displayWidth}"
maximumLength="#{bindings.InvCreatedBy.hints.precision}"
shortDesc="#{bindings.InvCreatedBy.hints.tooltip}" id="it5">
<f:validator binding="#{bindings.InvCreatedBy.validator}"/>
</af:inputText>
<af:inputText value="#{bindings.InvModifiedBy.inputValue}" label="#{bindings.InvModifiedBy.hints.label}"
required="#{bindings.InvModifiedBy.hints.mandatory}"
columns="#{bindings.InvModifiedBy.hints.displayWidth}"
maximumLength="#{bindings.InvModifiedBy.hints.precision}"
shortDesc="#{bindings.InvModifiedBy.hints.tooltip}" id="it6">
<f:validator binding="#{bindings.InvModifiedBy.validator}"/>
</af:inputText>
<af:inputDate value="#{bindings.InvDateCreated.inputValue}" label="#{bindings.InvDateCreated.hints.label}"
required="#{bindings.InvDateCreated.hints.mandatory}"
columns="#{bindings.InvDateCreated.hints.displayWidth}"
shortDesc="#{bindings.InvDateCreated.hints.tooltip}" id="id1">
<f:validator binding="#{bindings.InvDateCreated.validator}"/>
<af:convertDateTime pattern="#{bindings.InvDateCreated.format}"/>
</af:inputDate>
<af:inputDate value="#{bindings.InvDateModified.inputValue}" label="#{bindings.InvDateModified.hints.label}"
required="#{bindings.InvDateModified.hints.mandatory}"
columns="#{bindings.InvDateModified.hints.displayWidth}"
shortDesc="#{bindings.InvDateModified.hints.tooltip}" id="id2">
<f:validator binding="#{bindings.InvDateModified.validator}"/>
<af:convertDateTime pattern="#{bindings.InvDateModified.format}"/>
</af:inputDate>
</af:panelFormLayout>
</af:panelBox>
</f:facet>
</af:panelStretchLayout>
</jsp:root>

This is too much code to digest, and it's not formatted (read the FAQ https://forums.oracle.com/forums/help.jspa to find out how to do this).
So some general remarks: as it runs on your embedded WLS but not on a stand alone server it might be a configuration mismatch. Have you made sure that the standalone WLS runs the exact adf runtime libraries our jdev is using?
Any errors in the log file on the standalone server?
Have you tried to switch the tab order to find out if the problem is still on the not working jsff?
Timo

Similar Messages

  • Add row in ADF table

    I'm trying to add a new row to ADF table. Here are my steps:
    1. Create new entities from tables (New -> EJB -> Entities from Tables)
    2. Create Session Bean (New -> EJB -> Session Bean) with all requested methods for earlier created entity
    3. Create Data Control out of it (right click on session bean -> Create Data Control) - it creates "testFindAll"
    4. After these steps, I drag&drop my "testFindAll" from data controls to form and create table
    5. Now, I drag&drop operation Create from my "testFindAll -> Operations", create button and change action from Create to CreateInsert
    And now, the troubles : ((.. When I click button to add new row I get null pointer exception. Here is part of trace:
    java.lang.NullPointerException
    at oracle.adf.model.adapter.bean.UpdatableBeanDataControl.createRowData(UpdatableBeanDataControl.java:137)
    at oracle.adf.model.bean.DCBeanDataControl.createRowData(DCBeanDataControl.java:642)
    at oracle.adf.model.bean.DCDataVO.doCreateData(DCDataVO.java:870)
    at oracle.adf.model.bean.DCDataRow.create(DCDataRow.java:306)
    at oracle.jbo.server.ViewRowImpl.callCreate(ViewRowImpl.java:432)
    at oracle.jbo.server.ViewObjectImpl.createInstance(ViewObjectImpl.java:4679)
    at oracle.adf.model.bean.DCDataVO.createInstance(DCDataVO.java:567)
    at oracle.jbo.server.QueryCollection.createRowWithEntities(QueryCollection.java:1818)
    at oracle.jbo.server.ViewRowSetImpl.createRowWithEntities(ViewRowSetImpl.java:2211)
    at oracle.jbo.server.ViewRowSetImpl.doCreateAndInitRow(ViewRowSetImpl.java:2257)
    at oracle.jbo.server.ViewRowSetImpl.createRow(ViewRowSetImpl.java:2233)
    at oracle.jbo.server.ViewObjectImpl.createRow(ViewObjectImpl.java:9404)
    at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1223)
    at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2120)
    at oracle.adf.model.bean.DCBeanDataControl.invokeOperation(DCBeanDataControl.java:464)
    at oracle.adf.model.adapter.AdapterDCService.invokeOperation(AdapterDCService.java:307)
    at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:693)
    at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:394)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:217)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:176)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    I know that I it possible to do this if you create ViewObject instead of Entities from Tables and SessionBean. But I need this approach.
    Thanks a lot!

    Hi Goran,
    What is your JDev version? Are you trying with EJB 3.0 or 2.1? I just tried (with 3.0) and it is working fine (tested in JDev 11.1.1.2.0).
    Here is my pagedef
    <action IterBinding="deptFindAllIterator" id="Create"
                RequiresUpdateModel="true" Action="createRow"/>Infact, i don't have to change the Create action to CreateInsert. By default it was CreateInsert only.
    -Arun

  • Query for create manual tabular form using apex collection add row button functionality

    Hello everyone
    My requirement is i created a tabular form manually using apex collection but if i click on add row button then previously selected data refreshed and added new row in this form it is fine.but i don't want to refreshed previously selected data and click on add row button then add new row .how it is possible? plz help
    Thanks & Regards,
    Ujwala

    Ujwala
    Instead of starting a new thread with the same question as Query for create manual tabular form using apex collection add row button functionality.
    Could you answer the question about what you see while debug the javascript code.
    If you don't understand the question or have trouble debug javascript let us know.
    Nicolette

  • Is there a way to add rows to a table in a fillable PDF?

    I have created a fillable form, but the table I've created only has 9 rows. I'd like to be able to expand the rows on demand. If they're needed, then the user could add rows to the table as needed. It's an expense form, so the rows need to be there when there are multiple expenses, but not there when there are only a few expenses. Any/all help is appreciated. Thanks!

    here's more background infomation... I have some audits setup on my database for one of my users. Every quarter I have an automated job that runs that creates a usage/statics report for this person using data in aud$. at the end of the job I export the aud$ table and truncate it. However last quarter I found that there was a mistake in my report and my export did not run properly thus my audit data was gone. i also have full datapump exports that run daily but found that aud$ was not there. so that is why I thought I'd like to include sys.aud$ in the full datapump exports.
    i understand why other sys tables would be left out of a full export but aud$ data cannot be reproduced so to me it makes sense to include it in a full export.
    don't worry, we run our true backups using rman which is eventually how I got the aud$ data back by creating a copy of my database up until the time of the truncate. however this was quite time consuming.

  • Focusing a field/column in the new row of adf table

    Hi all,
         I am using JDeveloper 11.1.2.4.0. and UI-Shell Template in Main application and sub applications are added to this master application as ADF library jar files. Application is working fine.
    I am trying to focus to make focus on a column in the newly created row in one of the sub application by referring the below link
    http://adfnbpel.wordpress.com/2013/08/14/focusing-a-fieldcolumn-in-the-new-row-of-adf-table/
    I created a single application and found that its working
    But in my application focus is not working.
    When i checked the java script by using FireBug console it is found that comp = AdfPage.PAGE.findComponent(‘”+inputId+”‘); is getting as "undefined" , where inputId = table.getClientId(facesCtx) + “:” + rowId + “:” + “it3″; I am getting the exact row id also. When i tried with by passing the table id as input id like inputId = table.getClientId(facesCtx) ; the fire bug console then showing the table id. So its sound strange.
    What may be the cause of not able to find the input text it3 by using findComponent ?
    Is any body can suggest a solution for this.
    Thanks in advance,
    Gijith

    Hi,
    read up about "findComponentByAbsoluteLocator" in http://www.oracle.com/technetwork/developer-tools/jdev/1-2011-javascript-302460.pdf
    or check ...
    AdfPage JS doc
    Frank

  • How to set a row as default row in adf table

    Hi,
    I have a requirement: when page is launched there are multiple records with different status displayed on the page and i had to make the first record with Status = XXX as default selected row in adf table. How to code it?
    Thanks!
    Susan

    Hi Frank,
    Thanks a lot for your quick response!
    We are using Jdev 11g. After received your response, i went through all of your responses in ADF coner and OTN for the related topics (setting detail row) and got some ideas(Specially, i got your detail coding for moving makeCurrent expression into selection listener method into backing bean, etc ) and was ready for coding this function. But our PM changed their mind and we dont need this function. So, I had to move to another area......
    Your articles and your responses really help me!
    Thanks again for your help!
    Susan

  • Adobe Form (add row to  flowed table )

    Hi, experts
    I have a problem.
    I need add a row to subform flowed table , but when i  want to see preview a get an error:
    "Invalid inumerated value: indexChange
    the fault occured on line 1532.
    Script failed ( language is formalic; context is xfa[0].form[0].data[0].#subform[0].SubFormTable[0].Table1[0].Row1[0])
    script =
    ERROR: no expression encountered -- script result is undefined
    How can i solve this problem or how add row to flowed table  in different way.
    Thanks
    Larissa

    Larissa,
    Did you drag the Table element from standard library and used the first option of Create Simple Table? This should make the table static and you cannot add a row. Select the second option while creating a table and choose "Body Rows vary depending on data".
    Now drag-drop a button element from the standard library and in the click event make sure you have following code in JavaScript:-
    Table1.Row1.instanceManager.addInstance(1);
    Chintan

  • Fixed number of rows in ADF table

    Can we specify fixed number of rows for ADF table so even no rows displayed it will still show 10 empty rows.

    the rangesize property determines how many rows will be displayed and controls paging. If there are no rows to begin with (if I understand the question correctly) rangesize won't have any effect.

  • Issue in retrieving all the records from ADF Table with multiple row

    Hi,
    As per my requirement, I need to fill the table with multi selected LOV values and when user clicks on commit, I need to save them to database.
    I am using ADF 11g, Multi select table. Using the below ADD method, I am able to add the records but if user clicks on cancel, I need to remove those from view and clear the table as well.
    But the Issue I am facing is, in my cancel method, always I am getting half of the records. Lets assume table contains 100 records but in my cancel method, I am getting only 50 records.
    Please let me know what is the issue in my source code.
    ADD Method:
    public void insertRecInCMProcessParamVal(String commType, String processType, Number seqNumber){       
    try{
    Row row = this.getCmProcessParamValueView1().createRow();
    row.setAttribute("ParamValue7", commType);
    row.setAttribute("ProcessType", processType);
    row.setAttribute("CreationDate", new Date());
    row.setAttribute("CreatedBy", uid);
    row.setAttribute("ParamValueSeqNum", seqNumber);
    row.setAttribute("ProcessedFlag", "N");
    this.getCmProcessParamValueView1().insertRow(row);
    }catch(Exception e){           
    e.printStackTrace();
    Table Code:
    <af:table value="#{bindings.CmProcessParamValueView11.collectionModel}"
    var="row"
    rows="#{bindings.CmProcessParamValueView11.rangeSize}"
    emptyText="#{bindings.CmProcessParamValueView11.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.CmProcessParamValueView11.rangeSize}"
    rowBandingInterval="1"
    selectedRowKeys="#{bindings.CmProcessParamValueView11.collectionModel.selectedRow}"
    selectionListener="#{bindings.CmProcessParamValueView11.collectionModel.makeCurrent}"
    rowSelection="multiple"
    binding="#{backingBeanScope.backing_app_RunCalcPage.t1}"
    id="t1" width="100%" inlineStyle="height:100px;" >
    <af:column sortProperty="ParamValue6"
    sortable="true"
    headerText="#{bindings.CmProcessParamValueView11.hints.ParamValue6.label}"
    id="c1" visible="false">
    <af:inputText value="#{row.bindings.ParamValue6.inputValue}"
    label="#{bindings.CmProcessParamValueView11.hints.ParamValue6.label}"
    required="#{bindings.CmProcessParamValueView11.hints.ParamValue6.mandatory}"
    columns="#{bindings.CmProcessParamValueView11.hints.ParamValue6.displayWidth}"
    maximumLength="#{bindings.CmProcessParamValueView11.hints.ParamValue6.precision}"
    shortDesc="#{bindings.CmProcessParamValueView11.hints.ParamValue6.tooltip}"
    id="it3">
    <f:validator binding="#{row.bindings.ParamValue6.validator}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="ParamValue7"
    sortable="true"
    headerText="Comm Type"
    id="c2">
    <af:inputText value="#{row.bindings.ParamValue7.inputValue}"
    label="#{bindings.CmProcessParamValueView11.hints.ParamValue7.label}"
    required="#{bindings.CmProcessParamValueView11.hints.ParamValue7.mandatory}"
    columns="#{bindings.CmProcessParamValueView11.hints.ParamValue7.displayWidth}"
    maximumLength="#{bindings.CmProcessParamValueView11.hints.ParamValue7.precision}"
    shortDesc="#{bindings.CmProcessParamValueView11.hints.ParamValue7.tooltip}"
    id="it4">
    <f:validator binding="#{row.bindings.ParamValue7.validator}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="ParamValue8"
    sortable="true"
    headerText="#{bindings.CmProcessParamValueView11.hints.ParamValue8.label}"
    id="c3" visible="false">
    <af:inputText value="#{row.bindings.ParamValue8.inputValue}"
    label="#{bindings.CmProcessParamValueView11.hints.ParamValue8.label}"
    required="#{bindings.CmProcessParamValueView11.hints.ParamValue8.mandatory}"
    columns="#{bindings.CmProcessParamValueView11.hints.ParamValue8.displayWidth}"
    maximumLength="#{bindings.CmProcessParamValueView11.hints.ParamValue8.precision}"
    shortDesc="#{bindings.CmProcessParamValueView11.hints.ParamValue8.tooltip}"
    id="it2">
    <f:validator binding="#{row.bindings.ParamValue8.validator}"/>
    </af:inputText>
    </af:column>
    </af:table>
    Backing Bean Code:
    DCBindingContainer dcBindings=(DCBindingContainer)getBindings();
    DCIteratorBinding dcIterator=dcBindings.findIteratorBinding("CmProcessParamValueView1Iterator");
    RowSetIterator rs = dcIterator.getRowSetIterator();
    System.out.println("In Cancel Row Count is : "+ rs.getRowCount());
    if (rs.getRowCount() > 0) {
    Row row = rs.first();
    row.refresh(Row.REFRESH_UNDO_CHANGES);
    row.remove();
    while (rs.hasNext()) {
    int count = rs.getRowCount();
    System.out.println("Count is : "+ count);
    Row row = rs.next();
    System.out.println("Row === "+ row);
    if(row != null){                   
    row.refresh(Row.REFRESH_UNDO_CHANGES);
    row.remove();
    Thanks.

    Issue resolved.
    remove selectionListener and selectedRowKeys....
    code to get all the selectedRows.
    RowSetIterator rs = dcIterator.getRowSetIterator();
    RowKeySet rks = this.t1.getSelectedRowKeys();
    Iterator rksIter = rks.iterator();
    while (rksIter.hasNext()) {
    List l = (List) rksIter.next();
    Key key = (Key)l.get(0);
    Row row = rs.getRow(key);
    Thanks.

  • Please!!!!!!   How can i add rows in html table dynamically [use jsp,bean]

    hello, i am a fresher in jsp. i want to add new rows in html table dynamically.In my coding, just only shows in one row . please help my problem with correct coding and i don't want to use database. Thanks ...............!
    Here is my coding-------------------
    ---------------- form.jsp --------------------->
    <%@ page import="java.util.*,newtest1.Validation" %>
    <jsp:useBean id="mybean" scope="page" class="newtest1.Validation" />
    <jsp:setProperty name="mybean" property="name" param="name" />
    <jsp:setProperty name="mybean" property="age" param="age" />
    <% s[i][j] %>
    <html>
    <head><title>Form</title></head>
    <body>
    <form method="get">
    <table border="0" width="700">
    <tr>
    <td width="150" align="right">Name</td>
    <td width="550" align="left"><input type="text" name="name" size="35"></td>
    </tr>
    <tr>
    <td width="150" align="right">Age</td>
    <td width="550" align="left"><input type="text" name="age" size="35"></td>
    </tr>
    </table>
    <table width="100%" border="0" cellspacing="0" cellpadding="5">
    <tr><td> </td></tr>
    <tr><td><input type="submit" name="submit" value="ADD"></td></tr>
    <tr><td> </td></tr>
    <tr><td width="100%" align="center" border=1>
    <% int count=mybean.getStart();
    for(int i=count; i<count+1; i++) { %>
    <tr>
    <td><jsp:getProperty name="mybean" property="name" /></td>
    <td><jsp:getProperty name="mybean" property="age" /></td>
    <td><%= count %></td>
    <% count+=1; %>
    </tr>
    <% } %></td></tr>
    </table>
    </form>
    </body>
    </html>
    ----------------- Validation.java ----------------->
    package newtest1;
    import java.util.*;
    public class Validation {
    private String name;
    private String age;
    static int start=0;
    public Validation() {    name=null;
    age=null;
    ++start;}
    public void setName(String username) { if(username!="")
    name=username;
    public String getName() { return name;  }
    public void setAge(String userage) {  if (age!="")
    {age=userage;}
    public String getAge() {  return age;   }
    public int getStart() {
    return start; }

    Hi, Do you mean to say,
    You have an HTML page in which you have a text field and an add button. If you enter anything in that text field and click on Add button the text field contents should be displayed in the same HTML page and you should be able to go on entering new values into the text field and you should be able to retain and display all the previously entered values..
    and finally the list of added items are not stored in the database..
    If this is the case
    i. Your html form should be submitted to the same page.
    ii. You need to have a Vector which holds the entered values.
    iii. Bind the vector object to the request object and collect the same vector object from the request and display its contents...
    I think this would help...

  • How to add new row to adf table progrmatically

    Hi,
    I have a bean with a list and correspoding getter & setter methods inside it.
    I created a datacontrol out of the bean and I am displaying af:table in the ui
    binded to this list.
    Ex:
    public class StudentBean {
    private List<Student> students;
    // getter & setter methods.
    jsp
    <af:table value="#{bindings.students.collectionModel}" var="row"
    rows="#{bindings.students.rangeSize}"
    emptyText="#{bindings.students.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.students.rangeSize}"
    rowBandingInterval="0"/>
    How to add a new row programitically to this adf table.
    I dragged and dropped 'Create' from operations menu on to jsp.
    But on click of that.no new row is being added to the current table.
    On click of a button in u.i I want to add a new row to the table.
    Thanks,
    Praveen

    Hi,
    The source code is as below.
    <af:table value="#{bindings.students.collectionModel}" var="row"
    rows="#{bindings.students.rangeSize}"
    emptyText="#{bindings.students.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.students.rangeSize}"
    rowBandingInterval="0"
    filterModel="#{bindings.rscGroupsQuery.queryDescriptor}"
    queryListener="#{bindings.rscGroupsQuery.processQuery}"
    filterVisible="true" varStatus="vs"
    selectedRowKeys="#{bindings.rscGroups.collectionModel.selectedRow}"
    selectionListener="#{bindings.rscGroups.collectionModel.makeCurrent}"
    rowSelection="single" id="t1"/>
    <af:commandButton actionListener="#{bindings.Create.execute}"
    text="Create" disabled="#{!bindings.Create.enabled}"
    id="cb1" partialTriggers="t1"/>
    Please let me know where am I doing wrong?
    On click of this button,it is not adding a row dynamically.
    Thanks,
    Praveen

  • Moving Rows in ADF Table Using Drag and Drop

    I implemented a drag and drop functionality it works fine, I want to accomplish the following functionality:
    The user selects the rows and what if he drags the selected rows and wants to move to section beyond the limit of the table I want to scroll the table in the direction the user is dragging.
    I think it should be a default behavior in the ADF table but it doesn't, could you please anyone tell me how to scroll the table while dragging the selected rows?
    Thank you,

    What make you think that this is a default behavior?
    Adf tables a data bound. So the data appears in an order (mostly defined by a sort condition on the db).
    Even if you implement this behavior (which is possible but hard to do) you loose the new order by the next round trip to the db.
    You may try to use trinidad tables but then you don't have the drag & drop featur (I guess).
    Timo

  • Row Curr/No Rows and ADF Table- Found the issue but no solution Attn: Frank

    I have an ADF table that has ten rows of data. I have set it to show 5. When I try to go to the next page by clicking "Next" and do a "Show All" I get Row Currency error and "No Rows." However, if I set the ADF Tbale to shopw 10 rows, it shows them all. Any ideas?
    I have been looking at it for a week.

    Error
    JBO-35007: Row currency has changed since the user interface was rendered. The expected row key was oracle.jbo.Key[]
    On the jspx, I have:
    ***** No rows yet. ******************
    In the message log, I have
    oracle.adf.controller.faces.lifecycle.FacesPageLifecycle addMessage
    WARNING: JBO-35007: Row currency has changed since the user interface was rendered. The expected row key was oracle.jbo.Key[]
    Oh, by the way, I see the message below, before any error happened
    Jun 11, 2008 12:29:38 PM oracle.adfinternal.view.faces.taglib.ValidatorTag createValidator
    SEVERE: attribute 'validatorId' is missing
    Jun 11, 2008 12:29:38 PM oracle.adfinternal.view.faces.taglib.ValidatorTag doStartTag
    WARNING: could not create validator for validatorId:null and binding:#{bindings.MenuId.validator}
    Jun 11, 2008 12:29:42 PM

  • How can I insert one row in ADF Table in JDeveloper 10.1.3

    Hi all,
    How can I add new row ADF Table in JDeveloper 10.1.3
    NOTE : I tried using create button still not working
    thanks

    If you are using ADF BC - try replacing the binding of the operation from Create to CreateInsert.
    See Re: A simple JSF Table CRUD - How To

  • Using SQL view object to create ADF table

    Hi,
    I have created a column called "Month" (which extracts month from the date column) and another column to count the no. of requests.
    i want to create an ADF table with 2 columns, a column showing the month and another is showing the no. of requests for that month.
    However, now I only managed to achieve the ADF table to show the overall total requests, which means if i add up all the requests for all the months and i get 500
    My ADF table shows this:
    Jan: 500
    Feb: 500
    Mar: 500
    How should I create the view or what should I do to make it such that the no. of request is based on the month?
    Please advice.
    Thanks (:

    Hi,
    For the given situation you can create a Query Based View Object with the following query
    SELECT
    COUNT(TEMP1.DT) REQUEST,
    TO_CHAR(TEMP1.DT, 'Mon') MONTH
    FROM
    TEMP1
    GROUP BY
    TO_CHAR(TEMP1.DT, 'Mon')
    where DT is the date column and temp1 is the name of the database table.
    Following are the steps that i followed to get this query :
    i have taken the following sample table :
    create table temp1
    (srno number primary key,
    dt date)
    *Note you may use any existing column instead of srno or use dt only (i took an extra column as u know we need a primary key /row id)
    the following is the sample data
    insert into temp1 values (1,sysdate);
    insert into temp1 values (2,sysdate);
    insert into temp1 values (3,add_months(sysdate,1));
    insert into temp1 values (4,add_months(sysdate,1));
    insert into temp1 values (5,add_months(sysdate,3));
    insert into temp1 values (6,add_months(sysdate,5));
    the table appears as follows
    SRNO DT
    1 22-JUN-12
    2 22-JUN-12
    3 22-JUL-12
    4 22-JUL-12
    5 22-SEP-12
    6 22-NOV-12
    To start with ADF View Object Creation (Using Jdeveloper 11.1.2):
    Create the view object using Create View Object wizard
    In Step 1. Name window
    set the value for Name : Viewab (you can use any of ur choice)
    In the data source section : select query
    In Step 2. Query window
    a. Click Query builder (it will pop up sql statment window)
    b. In the SQL Statement window
    in quick-pick objects section -> select temp1 table -> shuttle the columns from available list to selected list
    in select clause section -> select srno column from select list-> choose count() function from function drop down list -> insert function -> set alias to REQUEST-> click validate
    now select dt column from select list -> choose to_char() function -> click insert function -> alter the function to to_Char(temp1.DT,'Mon') -> set alias to Month -> click validate
    in the group by clause section -> Click the green symbol to add -> from the expression palette insert dt column -> insert the to_char function -> alter the function to to_char(temp1.DT,'Mon') -> click validate
    in the Entire SQL Query section -> click test query -> in the test query window -> click query result-> you will see the result -> click close -> click ok
    Click next
    Step 3: Bind Variables
    Click Next
    Step 4: Attribute Mappings
    click Finish
    So the view object is ready :)

Maybe you are looking for

  • Restoring my photos and metadata after hard drive format. yep, I'm THAT guy

    Hi guys, Unfortunately my 17,000 photo aperture library (master files stored externally to the aperture library - ie referenced) was accidently deleted (long story) in a drive consolidating effort around my house. The good news is that I was able to

  • How do I adjust the length of a genius list in Itunes 11

    Aside form any number of problems I am finding with this new version, my current favorite is how do you get more than 25 songs on a genius list? and don't get me started on what happened to find duplicates function. Thanks

  • Craetion of Valuation type

    Hi, During creation of new valuation type ( Split activation is active), in OMWC ,I am getting error 'No Changes made' for following data & new valuation type is not getting generated. Valuation Type  AA Ext. Purchase Orders    2 Int. purchase orders

  • ITunes 12 - App update text missing

    I'm running Yosemite and iTunes 12.0.1.26 on a Macbook 13" Retina. Since upgrading to itunes 12+, the text that describes the update to any particular app is missing. Here's an example: Anyone know how to fix this? Thanks! Doug

  • BDC not working in GB01

    Hi All, I have written a BDC program to upload data by GB01 tcode. In GB01 we have around 15 fields in my program after filling the first 8 fields i am using :  FLD 'BDC_OKCODE'    'DOWN' but, it is not working please see the below code. first 8 fiel