ADF 11g Input Table createinsert operation - can I manipulate?

Hi,
I am an ADF newbie, and trying to figure out how to best approach this, any help appreciated.
I am using JDeveloper 11.1.1.3.0 with ADF BC.
I want to create/delete from a table from UI. I followed 23.3 Creating an Editable Table and 23.4 Creating an Input Table from Fusion Dev Guide.
Basically, I:
- Created an entity object, call it xxEO
- Created a view object based on this entity object, call it xxEOVO
- Dropped xxEOVO from data control palette as ADF table, and added createinsert, delete, commit operations to toolbar.
This works great.
But now I am trying to prepopulate one of the fields on every new row creation when createinsert is clicked. Basically, I dont want the user to be able to change this value, i want it to just show a read-only value in the new row when they hit the createinsert button.
Is there an easy way to do this? What are my options? I dont see any generated code where I can plug my value in..
Thanks!
Kalp

user514831 wrote:
Thank you for your reply.
The existing ActionListener JDeveloper created for me when I dropped CreateInsert as a button is : #{bindings.CreateInsert.execute}.
So is it that if I want to do anything more complicated than showing all table columns and updating all table columns, I cannot use this and have to replace by custom code like the one you have provided?
Yes!
I guess, you want to make only few columns that you have defaulted to be read only & not the entire row.
If so, make these columns as readOnly
<af:column sortProperty="Jan" sortable="false"
headerText="#{bindings.Results.hints.Jan.label}" id="c2">
<af:inputText value="#{row.bindings.Jan.inputValue}"
label="#{bindings.Results.hints.Jan.label}"
readOnly="true"
required="#{bindings.Results.hints.Jan.mandatory}"
columns="#{bindings.Results.hints.Jan.displayWidth}"
maximumLength="#{bindings.Results.hints.Jan.precision}"
shortDesc="#{bindings.Results.hints.Jan.tooltip}"
id="it3">
<f:validator binding="#{row.bindings.Jan.validator}"/>
<af:convertNumber groupingUsed="false"
pattern="#{bindings.Results.hints.Jan.format}"/>
</af:inputText>
</af:column>
Thanks,
Navaneeth

Similar Messages

  • Urgent.. Tab out issue with ADF 11g Input List of Values..

    Hi,
    I have Customer Number Input List of values on the page(some people also "torch").When we type customer number and tab out it's not bringing the customer name automatically.
    It would be really appreciate if anyone can help me on this..
    Thanks

    Hi Frank,
    The scenario is like this:
    I have a LOV on Item Field,and the Customer table has CustomerNumber and CustomerName(around 100k records).
    User Enters the CustomerNumber say 1000 then the LOV Window should automatically validate and findout the CustomerName without poping up the window.
    Actually what ever user entered is a correct value.how can i solve this issue , if there is a correct matching value in table it shouldn't open up the LOV window.
    I am using jDeveloper 11.1.1.0.0
    Please let me know if you need any further infomation.
    Thanks

  • ADF Table: CreateInsert Problem

    Hi,
    My JDeveloper version is 11.1.1.5
    I am facing one big problem.....
    Whenever I click on a createInsert button a new row is being created with data of a first row present in that table......!
    Is there any property of the createInsert button to avoid this?
    I have set partialSubmit = true
    Could anyone help me resolving this?
    Many Thanks,

    Are you creating new row with default executable from the datacontrol? Or do you have your own method executable?
    It's better to share some more details, like code-snippet if you have it to help better understand the problem.
    There has been lot said about Create vs CreateInsert:
    Here's one forum post that talks about CreateInsert.
    Re: ADF 11g Input Table createinsert operation - can I manipulate?
    See if it gives you any clues.

  • Input table on BAPI

    Hi all,
    I have a problem when I call a BAPI parsing a input table.
    Normaly, I can define a input using: on the Custom Controller.
         Z_Bapi_Mov_Estoc_Input input2 = new Z_Bapi_Mov_Estoc_Input();
         wdContext.nodeZ_Bapi_Mov_Estoc_Input().bind(input2);
         input2.setParam1("test");
    but this bapi have a input table.
    How can I add this values?
    I've try with this code, but no work's:
         IPublicMagatzemListCust.IItemsElement newMaterialNodeElement;
         newMaterialNodeElement = wdContext.createItemsElement(new Zdetalle());
         wdContext.nodeItems().bind(newMaterialNodeElement);
         newMaterialNodeElement.setMatnr("3233");
         newMaterialNodeElement.setQuant(1);
    the table is mapped using Items node.
    Can anyone help me?
    thanks in advance,
    david

    Hi David
      Well lets say the table name is "MYTAB"
    Then what you need to do is in the model if you see you will get a Table class called "MYTAB"
    //After your lines
    Z_Bapi_Mov_Estoc_Input input2 = new Z_Bapi_Mov_Estoc_Input();
    wdContext.nodeZ_Bapi_Mov_Estoc_Input().bind(input2);
    input2.setParam1("test");
    //code to add values to table
    MYTAB tab = new MYTAB();
    //Set table attributes
    tab.set<attribute>();
    tab.set<attribute1>();
    now add the tab to the inp created
    input2.setMYTAB(tab);
    Hope that helps you. This will add the values to the table.
    regards
    ravi

  • ADF 11g can not select and copy data from cell of readonly table in IE

    hi,
    In ADF 11g, when render view object as readonly table with Single RowsSelection, using IE browser can not select and copy data from the cell, but it work in firefox.
    is it a bug?
    Edited by: kent2066 on 2009-5-18 上午8:46

    Hi Timo,
    Sorry forgot to mention versions.
    We are using 11.1.1.7 and IE 9.
    I tried in Google but could not get the solution.
    Kindly let me know solution for this.
    PavanKumar

  • Can we call a method before and after Export operations in ADF 11g

    Hi,
    My problem is I have to execute a method before and after the export operation.Is this posible in ADF 11g
    Regards,
    Felix

    Hi,
    in response to a similatr post of yours, I replied
    1. Drop af:exportCollectionActionListener on a command button
    2. set the command button to display = false
    3. In your Java code, call
    ActionEvent ae = new ActionEvent(button);
    ae.queue();
    Everything you put before
    ActionEvent ae = new ActionEvent(button);
    ae.queue();
    will fires as a pre-trigger, everything after as a post trigger
    Frank

  • Reg: Table size adjustments in adf 11g application.

    Hi All,
    We have developed an application in ADF 11g. In this we fetching the tables from the database. When viewed, the size is not appropriate. We need to adjust the width and height of the tables as default.
    Can anyone help us regarding this.
    Thanks,
    Shanmukh

    Hi Shanmukh,
    If you wrap your table in a component that stretches its children, your table will be adjusted to fill aviable space.
    Try to surround the table with an <af:panelcollection/> or an <af:panelsplitter/> or an <panelStretchLayout/>.
    This should work.
    Good Luck,
    Luc Bors

  • ADF -11g : Question on how to create a pivot table

    Hi,
    I am trying to create a dynamic pivot table (the number of column and row layers change for each request) and I cannot use a data base structure to back it up.
    I thought of doing it through a managed bean but in order to do it I need to know how to create the PivotTableModel.
    The pivot table model requires a data source object and I do not know how to create it to support multiple row and column layers.
    Is there a default data source object that I can extend, or better yet is there a written example on how to create a pivot table model using a managed bean.
    Thanks,
    Or
    Edited by: user638363 on Dec 18, 2008 7:02 AM

    Hi,
    beyond the documentation, the pivot table is described in
    http://technology.amis.nl/blog/2593/adf-faces-11g-reloading-the-matrix-using-the-pivot-table-component
    http://technology.amis.nl/blog/3786/creating-a-salary-heat-map-with-the-adf-11g-faces-pivottable-component
    http://technology.amis.nl/blog/3673/adf-11g-richfaces-a-closer-look-at-the-pivot-table-data-visualization-component
    I am not aware of any sample that directly meets your requirement
    Frank

  • ADF 11g Row Selection in a Table with radio button

    Hi there,
    I need to select one row with a radio button and then take some action on those rows via command buttons.
    I need to use a Radio Button and not the table property rowSelection provided with the latest features of ADF 11g.
    In ADF 10g you can use tableSelectOne component that missing in 11g. How you can implement that with ADF 11g?
    Regards, Alex

    Well, ADF 11g doesn't have that capability, so you have to build it yourself. If don't want to build it yourself, you could use the Trinidad components instead of ADF 11g. If you don't want either of those options, then sorry :)
    John

  • How to enable row selection conditionally  in ADF 11g Table

    Hi,
    i am using ADF 11g.
    My use cae is:
    we need to display a table component in which only those rows that have a particular value in one of its columns should be selectable, other rows should be viewable but not selectable.
    That is, to say only those rows should be displayed as selectable in which the user name column is having the value same as the logged in user, suppose. And all the other rows having user name other than logged in user should be viewable , but not selectable for the user.
    I know in ADF 10.1.3 it is possible to conditionally enabling selection of rows in af.table by using "selection"-facet. But with 11g there is no such table facet.
    Does anyone have some idea how to do it in 11g?
    Thanks

    Frank,
    thank for your suggestion.
    so i tried to use clientLister like this:
    selectMatCat = function(event) {
    var matCatTable = event.getSource();
    rwKeySet = event.getAddedSet();
    for (rowKey in rwKeySet) {
    firstRowKey = rowKey;
    break;
    var cellhandler = matCatTable.findComponent("matCatCode", firstRowKey);
    if (cellhandler != null) {
    alert (cellhandler.getValue());
    event.cancel();
    but the row in which cellhandler != null is still selected so that i can get its value on the sever side by using code like : "matCatTable.getSelectedRowData()".
    I also noticed that the selection event will not automatically notify the server so the event.cancel() seems like not make so much sense.
    Any suggestion?
    Thanks.
    Peng

  • ADF 11g  Date input

    I am using date input component in ADF 11g.
    This component let u select only date. but I want the user be able to select date and time as well.
    which date component should I drop on page ?
    thx
    p

    All you have to do to see it in action is give your ADF BC EO date field the type of Timestemp instead of Date, and possibly add a nice format mask under the UI hints like: yyyy-MM-dd HH:mm:ss
    But, I do not have Entity Object in my application. ADF page was generated as part of "right click BPEL Human Task ---- Auto generate ADF Task Form".
    How do I have time as well in this case ?
    thx
    p

  • ADF 11g - Refreshing adf:Table using af:poll and ValueExpressions

    Hi,
    I am trying refresh an ADF Read-only table with the af:poll component.
    I could see the System.out message in console and Browser activity (refreshing) because of af:poll method.
    But, the values are not getting updated until I refresh the page manually and removing the "?_adf.ctrl-state=1228194074_3" part from the Browser URL.
    Please find the code which I am using:
    System.out.println("Updating table");
    FacesContext fctx = FacesContext.getCurrentInstance();
    *ValueBinding dcb = fctx.getApplication().createValueBinding("#{bindings}");*
    DCBindingContainer bindings = (DCBindingContainer)dcb.getValue(fctx);
    DCIteratorBinding dciter =bindings.findIteratorBinding("DepartmentsIterator");
    Key current_row_key = dciter.getCurrentRow().getKey();
    dciter.executeQuery();
    dciter.setCurrentRowWithKey(current_row_key.toStringFormat(true));
    Also, I could see createValueBinding / ValueBinding is deprecated and replaced by ValueExpression.
    Is this causing any issues or is there any working sample of the same in ADF 11g.
    thanks & regards,
    S.Vasanth Kumar.
    JDev Studio Edition Version 11.1.1.0.1
    Build JDEVADF_MAIN.BOXER_GENERIC_081203.1854.5188
    Edited by: vasanth.s.kumar on May 6, 2009 10:06 PM

    Thank you for the help.
    But, I am getting NullPointerException after implementing the following code.
    RequestContext.getCurrentInstance().addPartialTarget(this.getTable1());
    RequestContext.getCurrentInstance().addPartialTarget(this.getTable2());
    +"java.lang.NullPointerException+
    +For more information, please see the server's error log for+
    +an entry beginning with: Server Exception during PPR, #4"+
    Please find the complete stack trace attached.
    Inside EmployeesBean
    Updating table
    May 6, 2009 10:34:05 PM oracle.adfinternal.view.faces.config.rich.RegistrationConfigurator handleError
    SEVERE: Server Exception during PPR, #1
    javax.el.ELException: java.lang.NullPointerException
         at com.sun.el.parser.AstValue.invoke(AstValue.java:161)
         at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:1264)
         at org.apache.myfaces.trinidad.component.UIXPoll.broadcast(UIXPoll.java:98)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:458)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:763)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:640)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:275)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:175)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:181)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:279)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:239)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:196)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:139)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:102)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:65)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:149)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.lang.NullPointerException
         at org.apache.myfaces.trinidadinternal.context.RequestContextImpl._getNearestPPRTarget(RequestContextImpl.java:770)
         at org.apache.myfaces.trinidadinternal.context.RequestContextImpl.addPartialTarget(RequestContextImpl.java:487)
         at nl.whitehorses.coherence.view.backing.EmployeesBean.refreshTable(EmployeesBean.java:105)
         at nl.whitehorses.coherence.view.backing.EmployeesBean.onPoll(EmployeesBean.java:110)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
         ... 38 more
    thanks & regards,
    S.Vasanth Kumar.

  • How to add static data in ADF table using ADF 11g?

    Hi
    Can any one tell me how can I add static data in ADF table?
    Thanks

    You can try this one. I created this static table just for viewing purpose.
    Open Create View Object wizard
    Choose, “Rows populated programmatically, not based on a query” which is 3rd radio button option
    In Attribute tab, create some ‘Updatable’ Attributes
    Choose the AppModule in the final step.
    Drag and drop the view object as ADF table.
    Next, programmatically insert data in your backing bean.
            ApplicationModule applicationModule = this.getApplicationModuleForDataControl("TmpTableAppModuleDataControl");
            ViewObject vo = applicationModule.findViewObject("ProgViewObj1");
            Row newRow = vo.createRow();
            newRow.setAttribute("updAttr1", value1);
            newRow.setAttribute("updAttr2", value2);
            vo.insertRow(newRow);If you add this code in buton action you have to add button's partialTriggers to table id.

  • Who can have ADF 11g Source Code?

    Hi all,
    Can I have the source code of ADF 11g when I buy ADF license and support for ONE user?

    You need a support contract, open a SR, ask for the source and then sign some agreements on how to use the source code.
    Timo

  • ADF 11g:Success message on fire fox Staus bar

    Hi all,
    Im working on ADF 11g - Jdeveloper 11.1.1.2.
    The page contains a ADF table with Create, Edit and delete operations. The success messages of these operations have to be displayed on the staus bar of the Fire fox browser.
    Ex: "Record Successfully created" whenever there is a successful insertion of a record in the ADF table.
    How to display the user generated message on the staus bar of Fire fox? Please help....
    Thanks,
    Manasa.

    I'll bite. Presumably you're trying to mimic the same functionality from Forms. Firstly I'll flag that you need to convince users that browsers aren't Forms, and they do things in their own ways. A typical browser user doesn't look to the status bar for messages from an application, the status bar is reserved for browser raised messages.
    Yet I also understand it's hard to bend such requirements, so in addressing that requirement specifically, my understanding is the ADF framework doesn't provide this functionality out of the box. You will need to build your own. As a start independent of ADF there appears the ability in Javascript to write to the browser status bar through a function called statsword: http://www.htmlite.com/JS017.php
    At this stage I've no inspiration on how to build this in to an ADF solution (it's far too early in the morning), maybe another reader can help, but I suspect a solution might use the ADF af:serverListener and af:clientListener tags.
    CM.

Maybe you are looking for