How to create a Datagrid in ADF ?

Hi,
I have to create a datagrid having only one empty row with 3 columns.when I fill that row ,a new row will generate dynamically.After finishing my work ,I need to insert these records in to database.Please advice some ideas.
Edited by: user5605031 on Mar 19, 2009 11:08 PM
Edited by: user5605031 on Mar 20, 2009 4:06 AM
Edited by: Yank on Mar 26, 2009 1:40 AM

The DataLayer is ADF BC . I Started with creating 3 RichSelectOneChoice in a managed bean when a button is pressed and PPR to place it on the page. Then I manually created
a single row from row iterator of the view object .
Re: How to create multiple new rows in ADF Table? similar to above link.
But I don't know how to set attribute of View Row to the created RichSelectOneChoice and also . . how to populate the LOV on it.
Edited by: user13566043 on Oct 11, 2011 10:15 PM

Similar Messages

  • How to create Dynamic Tab in ADF, to achive multiple transaction at a time

    Hi,
    I want to create Dynamic tab in ADF, to achieve Multiple transaction at a time by opening new tab for a transaction.
    For Example: User can order multiple product at the same time by opening the order form in multiple TAB.
    Scenario:
    i) When user will click on addNewTab, new tab will be added.
    ii) If user Click on close btn on Tab, Tab will be closed (Transaction will be removed).
    iii) user can save all transaction( can save multiple product Order in different tab.)
    iv) when user select any product in form, Rename the Tab name as well.
    Need Help on this :(
    Thanks & Regards
    Pratap Rudra

    Hi Rudra,
    You can implement all your problem using Tab API .
    When you are closing the tab you can roll back transaction which you want.
    Tab API will give control over closing and opening tab.
    And also you can give tab name while opening the tab.
    Thanks
    Prateek

  • How to create an InputSelect using ADF and JSP

    I looking for some docs/instructions on creating "an InputSelect using ADF with JSP".
    Thanks,
    BG...

    Ok here are the Steps
    1) Open the JSP editor for the page in Question.
    2) In the Data Control palette select the item that you want to become the poplist and change the "Drop As" poplist to "Single Select List"
    3) Drag the field into the page. You'll get an empty poplist which implements the <html:select> and <html:optionsCollection> tags.
    4) With the JSP editor still open click on the "UI Model" sub-tab in the Structure pane
    5) Select the field you've just dragged in - then right click to get the context menu and choose "edit"
    6) Change the List Binding Mode poplist to "LOV Mode"
    You're then taken into a couple of screens where you can select the Source VO for the poplist, and the destination dataset, along with the thing you want for the Label and the Value.

  • ADF - How to create a session in ADF

    Hi, how I would to create a schema of session im my application?

    http://docs.oracle.com/javaee/5/tutorial/doc/bnaqm.html
    1-create a View object. For example:
    SELECT USU.USUARIO, USU.TIPO_USUARIO,
    USU.VENDEDOR_NUMERO,
    usu.NOMBRE,
    Usu.FUENTE_CIA, USU.COMPANIA
    FROM VENTAS.USUARIOS USU
    WHERE USU.USUARIO = upper(:pUsuario)
    2-set parameter (:pUsuario) with default value expresion:
    adf.context.securityContext.userName
    3-Use ViewObject in backing bean with session scope.
    package view.backing;
    import java.io.IOException;
    import java.util.Date;
    import javax.faces.context.ExternalContext;
    import javax.faces.context.FacesContext;
    import javax.faces.event.ActionEvent;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpSession;
    import oracle.adf.model.BindingContext;
    import oracle.adf.model.binding.DCBindingContainer;
    import oracle.jbo.Row;
    public class Usuario {
    String TipoUsuario, VendedorNumero, Nombre, FuenteCia, Compania;
    Date Hoy;
    Boolean Leido = false;
    public void Logout(ActionEvent actionEvent) throws IOException {
    String javaScriptText = "window.close();";
    ExternalContext ectx =
    FacesContext.getCurrentInstance().getExternalContext();
    HttpServletResponse response = (HttpServletResponse)ectx.getResponse();
    String url = "VentasMenu.jspx";
    HttpSession session = (HttpSession)ectx.getSession(false);
    session.invalidate();
    response.setHeader("Cache-Control", "no-cache");
    response.setHeader("expires", "0");
    response.setHeader("Pragma", "no-cache");
    try {
    response.sendRedirect(url);
    FacesContext.getCurrentInstance().responseComplete();
    } catch (IOException e) {
    e.printStackTrace();
    FacesContext.getCurrentInstance().responseComplete();
    public Date getHoy() {
    return new java.util.Date();
    void iniciarValores() {
    DCBindingContainer bindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    //ViewObject find user data from DB
    Row rowUsuario = bindings.findIteratorBinding("voUsuario1Iterator").getRowAtRangeIndex(0);
    if (rowUsuario != null) {
    TipoUsuario = rowUsuario.getAttribute("TipoUsuario").toString();
    VendedorNumero = rowUsuario.getAttribute("VendedorNumero").toString();
    Nombre = rowUsuario.getAttribute("Nombre").toString();
    FuenteCia = rowUsuario.getAttribute("FuenteCia").toString();
    Compania = rowUsuario.getAttribute("Compania").toString();
    Leido = true;
    public String getTipoUsuario() {
    if (!Leido) {
    iniciarValores();
    return TipoUsuario;
    public String getVendedorNumero() {
    if (!Leido) {
    iniciarValores();
    return VendedorNumero;
    public String getNombre() {
    if (!Leido) {
    iniciarValores();
    return Nombre;
    public String getFuenteCia() {
    if (!Leido) {
    iniciarValores();
    return FuenteCia;
    public String getCompania() {
    if (!Leido) {
    iniciarValores();
    return Compania;
    }

  • How to delete a selected row from datagrid and how to create a datagrid popup

    hi friends,
                  I am new to flex.i am doing a flex4 application,i need help for this.
                i am having a data grid with columns.i have two questions.
               Ques 1: when  i selected a partiuclar row from a datagrid and click delete button  means that record will delete from the datagrid and DTO from the cloud  tables also.
                Ques 2: when i save  the data grid values using save button means that data will store in  respective cloud DTO which is related to the datagrid,
                     My requirement is i am using a search button when i click the search  button it will show a datagrid that datagrid will contain the previous  datagrid datas which is saved in the cloud.
    REQUIREMENT example: first screen:           i am using with data grid 3 columns (Student Roll number ,Student Name,Student pecentage)---->save--->data will store in cloud DTO.
    Second screen:                search button ----> it need show  datagrid popup.it will have data which we saved in the first screen with same columns(Student Roll number ,Student Name,Student pecentage).
    This is my requirement.
    Any suggession welcome.
    Thanks in advance.
    B.Venkatesan

    Lets break the problem statement in multiple steps
    1. We need a way to know the selection on all rows.
    2. We need the association of the checkBox with the data
    The  solution is to use a arrayCollection/array that holds all the instances  created for checkbox.This collection should be a property of component  containing the datagrid. We need to use a custom component  implementation or inline ItemRenderer. The way you have used is called  dropinItemRenderer. Preferaly use custom component implementation and  add the instance to the arrayCollection at CreationComplete. Make sure  you use addItemAt so that you add the instance in the same row as the  data. To get rowIndex the custom Checkbox should implement  IDropInListItemRenderer. You could iterate this collection to check all  the instances that are checked.
    Note: This is the approach considering your dataprovider doesnt have a selection field.
    Nishant

  • How to delete a Selected row from datagrid and how to create a datagrid popup with saved values

    hi friends,
                  I am new to flex.i am doing a flex4 application,i need help for this.
                i am having a data grid with columns.i have two questions.
               Ques 1: when i selected a partiuclar row from a datagrid and click delete button means that record will delete from the datagrid and DTO from the cloud tables also.
                Ques 2: when i save the data grid values using save button means that data will store in respective cloud DTO which is related to the datagrid,
                    My requirement is i am using a search button when i click the search button it will show a datagrid that datagrid will contain the previous datagrid datas which is saved in the cloud.
    REQUIREMENT example: first screen: i am using with data grid 3 columns (Student Roll number ,Student Name,Student pecentage)---->save--->data will store in cloud DTO.
    Second screen: search button ----> it need show  datagrid popup.it will have data which we saved in the first screen with same columns(Student Roll number ,Student Name,Student pecentage).
    This is my requirement.
    Any suggession welcome.
    Thanks in advance.
    B.Venkatesan

    Lets break the problem statement in multiple steps
    1. We need a way to know the selection on all rows.
    2. We need the association of the checkBox with the data
    The  solution is to use a arrayCollection/array that holds all the instances  created for checkbox.This collection should be a property of component  containing the datagrid. We need to use a custom component  implementation or inline ItemRenderer. The way you have used is called  dropinItemRenderer. Preferaly use custom component implementation and  add the instance to the arrayCollection at CreationComplete. Make sure  you use addItemAt so that you add the instance in the same row as the  data. To get rowIndex the custom Checkbox should implement  IDropInListItemRenderer. You could iterate this collection to check all  the instances that are checked.
    Note: This is the approach considering your dataprovider doesnt have a selection field.
    Nishant

  • How to create new row in Adf uix table

    hi,
    I am using Jdev 10.1.2 , Can any body tell me how to insert new row in table ?
    Thanx

    Hi,
    try creating a createInsert action.
    Regards,
    Koen Verhulst

  • How to create a graph in ADF Faces

    Hi there,
    I am working with ADF using JDeveloper 10.1.3 with Business Components (BC) and ADF Faces.
    I am trying to create a graph base on a View object, but I can't see any options on the Data Control Palette.
    Is there a graph wizard component for ADF Faces?
    Thanks for any help.
    Jim

    Thanks Frank.
    A graph was created successfully using the following steps:
    1. using BIGraphDef1.xml (with Oracle BI Graph library)
    2. add to pageDef.xml
    <iterator id="EmployeesView1Iterator" RangeSize="10" Binds="EmployeesView1"
    DataControl="AppModuleDataControl"/>
    <graph id="pageGraphid"
    IterBinding="EmployeesView1Iterator"
    ControlClass="oracle.dss.graph.Graph" SeriesLabel="EmployeeId"
    GraphPropertiesFileName="view.BIGraphDef1"
    SeriesType="SINGLE_SERIES">
    <AttrNames>
    <Item Value="Salary"/>
    </AttrNames>
    </graph>
    3. add to .jspx (with Graph 1.0 as library )
    <h:form>
    <af:panelGroup>
    <f:verbatim>
    <graph:Graph imageHeight="300" imageWidth="500" data="${bindings.pageGraphid}"/>
    </f:verbatim>
    </af:panelGroup>
    </h:form>
    4. add to web.xml
    <servlet>
    <servlet-name>GraphGeneratorServlet</servlet-name>
    <servlet-class>oracle.jbo.html.jsp.graph.GraphGeneratorServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>GraphGeneratorServlet</servlet-name>
    <url-pattern>/faces/jspx/GraphGeneratorServlet</url-pattern>
    </servlet-mapping>
    Jim

  • How to create multiple records using ADF

    Currently working on my first ADF BC and UIX project, and I basically want to create multiple records after a user makes a choice on the screen. I would like to know at what layer should this functionality be implemented?
    Would this be more at the Struts/Controller level, where I have a java class to perform the creation as part of a data action? I ask because, I am not sure if this is feasible at the ADF BC level (View objects and Entity Objects) via some sort of customization, and i am new to the different possibilies avail as part of the ADF framework
    Regards
    Anora
    (Jdeveloper 10.1.2.1 build 1913, Oracle DB 10.1.2)

    I'd put it into the application module. You then can call the method from the controller layer or from an other application module. This way you put it into the business logic, which helps if you ever decide to use a different client approach (like swing).

  • How to create new Row in ADF Tree

    I have create a ADF Tree from a VO in my page and I want to add new Row to the Tree before the Tree loads into the page.
    can any one provide me the sample code to insert the new Row at runtime.
    Thanks,
    Swathi

    Create a method in AMimpl that would create a new row for the VO and expose it to the thru client interface.
    In the page Def for the page that has the tree, add the method action in the bindings section.
    You can invoke this method using phase listener.
    heck the code snippet below:
    TestPage.jspx:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view beforePhase="#{TestPageBean.phaseListener}">
    <af:document title="TestPage.jspx" id="d1">
    <af:form id="f1">
    <af:panelHeader text="panelHeader 1" id="ph1">
    <f:facet name="context"/>
    <f:facet name="menuBar"/>
    <f:facet name="toolbar">
    </f:facet>
    <f:facet name="legend"/>
    <f:facet name="info"/>
    </af:panelHeader>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    TestPageBean.java:
    package com.samples.view;
    import javax.faces.event.PhaseEvent;
    import oracle.adf.view.rich.component.rich.nav.RichCommandButton;
    import oracle.adf.view.rich.context.AdfFacesContext;
    public class TestPageBean {
    public TestPageBean() {
    // METHOD THAT IS INVOKED WHEN THE PAGE IS LOADED
    public void phaseListener(PhaseEvent phaseEvent) {
    if (phaseEvent.getPhaseId().equals(phaseEvent.getPhaseId().RENDER_RESPONSE)) {
    if (!AdfFacesContext.getCurrentInstance().isPostback()) {
    // DO THE NECESSARY LOGIC TO invoke the method defined in the pageDef
    }Thanks,
    Navaneeth

  • How to create menu bar in ADF

    Hi,
    I'm trying to get a drop down menu in my web app using ADF Faces.
    Currently I'm using an af:menuBar tab with a menu model like this:
    - File
    - New ...
    - Open...
    -View
    - Toolbars ...
    On clicking file new open options should come .
    It only displays the top level nodes (i.e. the File and View)
    Is it possible to make a drop down menu using ADF Faces?
    Using adf 11.1.1.5.0
    Thanks.

    You mena something like this
                <af:menuBar id="mb1">
                  <af:menu text="menu 1" id="m2">
                    <af:commandMenuItem text="commandMenuItem 1" id="cmi1"/>
                    <af:commandMenuItem text="commandMenuItem 2" id="cmi2"/>
                    <af:menu text="menu 3" id="m4">
                      <af:commandMenuItem text="commandMenuItem 3" id="cmi3"/>
                      <af:commandMenuItem text="commandMenuItem 4" id="cmi4"/>
                    </af:menu>
                  </af:menu>
                  <af:menu text="menu 2" id="m3">
                    <af:commandMenuItem text="commandMenuItem 5" id="cmi5"/>
                  </af:menu>
                </af:menuBar>Copy this code to your page and run it to see the menu...
    Timo

  • How to create Scrollable tables in ADF?

    Hi all,
    For the above I tried to use the solution as suggested by Frank Nimphus in the url *"http://thepeninsulasedge.com/frank_nimphius/2007/11/08/adf-faces-embedded-and-scrollable-tables/"*.
    However my problem was not solved and I did not get any scrollable table.I followed each and every step as suggested in the blog.
    Can anyone please suggest where I may be going wrong?
    Thanks in advance,
    Arijit

    Arijit,
    When I tried to start my car today, it didn't start - could you suggest what might be wrong?
    Before anyone can reasonably help you, you'd probably need to say:
    1). What version of JDeveloper are you using (the example on the blog is for 10.1.3.x)?
    2). What actually did you get when you tried (we know you didn't get a scrollable table)?
    3). Perhaps a snippet or two of the code you tried would be helpful... (you did put an ID on the af:panelLabelAndMessage and reference that ID in the CSS?)
    By the way, my car's battery was dead, that's why it didn't start ;)
    John

  • How to create Help windows in ADF 11g

    Hi all,
    I have requirement to create Help window when i click on Help on the page, that window should be model less and i can minimize and maximize that window but it should not go new page. And the content of page should come from word document.
    Please do need full.

    Hi
    You can use <af:window> inside an <af:popup> component. And in this window you can add the help content. I recommend you to use "<af:inlineFrame>" if the content is from other web sources. (for word document you should probably convert them to HTML)
    <af:popup>
        <af:window>
            <af:inlineFrame src="" binding="#{bean.helpFrameCmp}" />
        </af:window>
      </af:popup>now when you press the help button, in your Bean you set the source attribute of the inline frame to the correct HTML help page.
    and launch the popup.
    Search for launching the popup from managed beans.
    Regards
    AGruev

  • How to use programmatic VO objects in creating a Tree in ADF Page.

    Hi,
    I have two programmatic VOs namely Plan and Model. Even though functionally there is a Master/Detail (Plan --> Model) relationship between them, we are not creating any View Link as they are programmatic VOs. Requirement is to show this master/detail data as tree in the ADF page. Any pointer on how to achieve this?
    Thanks
    Edited by: user766455 on Jan 3, 2012 10:34 AM

    My question is not related Traversing Tree... my question is how to create Tree in the ADF page using programmatic VOs, which don't have master and details View Link.

  • ADF 11g How to create the custom FilterableQueryDescriptor for adf table

    Can you please let me know on the following.
    1. I am dispalying the adf table using a List from the managed bean
    2. I wanted to filter the table using the filter model.
    3. i wanted to create the sub class of FilterableQueryDescriptor which i can specify. Not finding enough information on how to create and add the information in the setFilterCriteria
    Can you please provide some insight into this topci

    Hello there
    I have the same issue: chaging the background color of some column headers.
    My application is using a custom skinning and when i had headerClass property with a custom class defined in a separate css file, the page generated specified first the class from the skinning and then my new class definition. But my skinning is specifying a background color so the color is not overriden. Any idea?
    ADF code:
    <link type="text/css" rel="stylesheet" href="../../css/pivot.css" id="myStyles"/>
    <af:column headerText="#{level1.userObject.name}"
    headerClass="inputHeader"
    sortable="false" align="center" width="100"
    id="col_level1" >
    Generate HTML code:
    <th align="center" class="xuh inputHeader" afrroot="true" rowspan="2" afrleaf="true" dindex="6" id="pt1:tableId:col_level1" style="">
    <div class="x13t">AEKLF</div>
    </th>
    My CSS file:
    .inputHeader{
    background-color: Red;
    background-image: none;
    color: Black;
    font-weight: bold;
    Thanks for your help !

Maybe you are looking for

  • Advance payment from clients Model 340 ( report RFIDESM340)

    Hi gurus. i have a problem with my tax declaration for Spain ( model 340) The thing is that i would like to declarate in this report my advance payment from clients. The correct form to do it in Spain in to declarate them at the date of receiving in

  • Generating PL/SQL with invoker's rights?

    When will this functionality be available in Designer? We are currently running Designer 10g (9.0.4.3.14) and this functionality is not supported yet. We would very much like to be able to generate packages with "AUTHID CURRENT_USER" from the server

  • HR Instance Seperation affected HR Tables?

    Hello all, In SAP HR Instance separation we need to delete the data from the HR table in Production system table and transfer that data to HR instance system. What all tables are to be affected and what are the different ways by which we can move thi

  • Upgrading Aperture with Yosemite

    I just upgraded to Yosemite from 10.6.8 and my Aperture will not work. Can I upgrade without first downgrading to Mavericks?

  • Timing a thread

    I would like to time a thread in my program to see how long it takes to execute. Can anyone tell me how I should go about doing it? I start my thread with the start() method. It seems like I should start some kind of timer before calling start() and