Need to add a blank row to a table when checkbox selected

Hi ALL,
I have a custom page having 2 check boxes and few fields , i am doing search operation by entering one checkbox checked and few other fields and data displaying in table region.
my requirement is when i select second check box and click one button as add new row it should create a blank row in the table, means table should  availabe with a blank row so that user can insert data,
please help me on thsi
Thnaks

             Hi there ,
             If you 're working with advance table then you have an default option to create a blank row , please through topic 'add another row '
             in jdev guide .
             If you are working the regular table region then you might follow the below code suggested .
             Create a new item of the type button ( not submit button ) and handle the event in PFR of your controller class
            String addRow=pageContext.getParameter(EVENT_PARAM);   //  "addRow " is an event attached to table
            if("addAnotherRow".equals(addRow))  
                  am.invokeMethod("AddRow");
          In AMimplementation class :
   public void AddRow()
    OAViewObject headerVO = (OAViewObject)getsdaPacelineWorkupHeaderUpdateVO1();
    sdaPacelineWorkupHeaderUpdateVORowImpl rowh = (sdaPacelineWorkupHeaderUpdateVORowImpl)headerVO.getCurrentRow();
    rowh.getPacelineHeaderId();
    OAViewObject lineVO = (OAViewObject)getsdaPacelineWorkupLineUpdateVO1();
    Row lineRow = lineVO.createRow();
    Row lineRo = lineVO.last();
    lineRow.setAttribute("PacelineHeaderId",rowh.getPacelineHeaderId());   
    lineRow.setNewRowState(Row.STATUS_INITIALIZED);
    lineVO.last();
    lineVO.next();
    lineVO.insertRow(lineRow);
    lineVO.setCurrentRow(lineRow);
    lineVO.setCurrentRow(lineVO.last());
  Note : Replace your vo name in place of sdaPacelineWorkupHeaderUpdateVO1()
   Please let me know if you have any questions .
  Regards ,
Keerthi

Similar Messages

  • How to add a new row in rich table when a button clicks which isinatemplate

    i am new to j developer 11g. i have problem when i click a reset button located in the template
    will clear all data from the rich table and it is in a add mode,ie table with only one empty row
    Regards
    rajesh
    Edited by: [email protected] on Mar 10, 2009 11:30 PM

    Hi,
    and here is a blog entry about global buttons in templates
    http://thepeninsulasedge.com/frank_nimphius/2007/11/23/adf-faces-rc-implementation-strategies-for-global-buttons-in-page-templates/
    Frank

  • Adding a blank row to a JTable when a user begins to edit a current row

    Hi, this may be a daft question, but I've been looking through the forum and didnt find anything that really helped me. So I'm posting this in the hope someone will be a ble to point me in the right direction.
    In my current application I have a JTable. It currently contains a single emptry row. What I wish to happen is when a user begins to edit that empty row a new blank row is added to the bottom of the table.
    I'm using a custom table model, as there maybe data loaded from a Oracle database at a later date and have included an "addRow()" method which will add the blank row.
    What i'm struggling with is a way to detect when the user has started to edit the blank row and so when to call my "addRow()" method.
    I tried experimenting with propertyChange listeners but they didnt seem effective. Could someone please provide me with either a solution or a pointer in the right direction.
    Thanks for your help

    What I wish to happen is when a user begins to edit that empty row a new blank row is added to the bottom of the table.Well a user could start to edit the last row, but then they could use the escape key to cancel the cell editing. So I would only add the empty row once a cell has actually been updated.
    For this I would use a TableModelListener. The listener will only fire when the data in a cell is changed. So once the event is received you simply check if the row of the edited cell is the last row of the table.

  • I need to add a single field from with_item table . need to write select query with reference to company code , account doc no , fiscal year

    I need to add a single field from with_item table . need to write select query with reference to company code , account doc no , fiscal year

    Hi Arun ,
    Can you explain little bit more ??
    what is account doc no? 
    what are the transactions should be displayed in your output??
    -Rajesh N

  • How to add a blank row into a datatable

    i hava adatatable which contains the datas from database.i need to add a new data so that i need a blank row which contain the same number of columns in the existing datatable.
    Pls Help..

    sorry i am a beginner in jsf..
    In the crud Example i saw a code in MyCrudBean.java.i wrote the code like that but the same stage only one row is coming i cant add n items .
    * Department.java
    * Created on Nov 22, 2007, 4:43:12 PM
    package datatable;
    import Item.DeptDatabase;
    import com.sun.rave.web.ui.appbase.AbstractPageBean;
    import com.sun.webui.jsf.component.Body;
    import com.sun.webui.jsf.component.Form;
    import com.sun.webui.jsf.component.Head;
    import com.sun.webui.jsf.component.Html;
    import com.sun.webui.jsf.component.Link;
    import com.sun.webui.jsf.component.Page;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.util.ArrayList;
    import java.util.List;
    import javax.faces.FacesException;
    import javax.faces.component.html.HtmlDataTable;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.sql.DataSource;
    public class Department extends AbstractPageBean {
    Connection con = null;
    PreparedStatement StmtRateSel = null;
    ResultSet rs = null;
    private List<DeptDatabase> list = new ArrayList();
    private int addCount = 1;
    private HtmlDataTable myDataTable;
    private static final int DEFAULT_TABLE_ROWS = 10;
    // <editor-fold defaultstate="collapsed" desc="Managed Component Definition">
    * <p>Automatically managed component initialization. <strong>WARNING:</strong>
    * This method is automatically generated, so any user-specified code inserted
    * here is subject to being replaced.</p>
    private void _init() throws Exception {
    private Page page1 = new Page();
    public Page getPage1() {
    return page1;
    public void setPage1(Page p) {
    this.page1 = p;
    private Html html1 = new Html();
    public Html getHtml1() {
    return html1;
    public void setHtml1(Html h) {
    this.html1 = h;
    private Head head1 = new Head();
    public Head getHead1() {
    return head1;
    public void setHead1(Head h) {
    this.head1 = h;
    private Link link1 = new Link();
    public Link getLink1() {
    return link1;
    public void setLink1(Link l) {
    this.link1 = l;
    private Body body1 = new Body();
    public Body getBody1() {
    return body1;
    public void setBody1(Body b) {
    this.body1 = b;
    private Form form1 = new Form();
    public Form getForm1() {
    return form1;
    public void setForm1(Form f) {
    this.form1 = f;
    // </editor-fold>
    * <p>Construct a new Page bean instance.</p>
    public Department() {
    public void deptsave() throws SQLException{
    connection();
    StmtRateSel      = con.prepareStatement("execute prcPnsDepartmentIns");
    rs = StmtRateSel.executeQuery();
    con.close();
    @Override
    public void init() {
    // Perform initializations inherited from our superclass
    super.init();
    // Perform application initialization that must complete
    // before managed components are initialized
    // TODO - add your own initialiation code here
    // <editor-fold defaultstate="collapsed" desc="Managed Component Initialization">
    // Initialize automatically managed components
    // Note - this logic should NOT be modified
    try {
    _init();
    } catch (Exception e) {
    log("Department Initialization Failure", e);
    throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
    // </editor-fold>
    // Perform application initialization that must complete
    // after managed components are initialized
    // TODO - add your own initialization code here
    * <p>Callback method that is called after the component tree has been
    * restored, but before any event processing takes place. This method
    * will <strong>only</strong> be called on a postback request that
    * is processing a form submit. Customize this method to allocate
    * resources that will be required in your event handlers.</p>
    @Override
    public void preprocess() {
    * <p>Callback method that is called just before rendering takes place.
    * This method will <strong>only</strong> be called for the page that
    * will actually be rendered (and not, for example, on a page that
    * handled a postback and then navigated to a different page). Customize
    * this method to allocate resources that will be required for rendering
    * this page.</p>
    @Override
    public void prerender() {
    * <p>Callback method that is called after rendering is completed for
    * this request, if <code>init()</code> was called (regardless of whether
    * or not this was the page that was actually rendered). Customize this
    * method to release resources acquired in the <code>init()</code>,
    * <code>preprocess()</code>, or <code>prerender()</code> methods (or
    * acquired during execution of an event handler).</p>
    @Override
    public void destroy() {
    * <p>Return a reference to the scoped data bean.</p>
    * @return reference to the scoped data bean
    protected SessionBean1 getSessionBean1() {
    return (SessionBean1) getBean("SessionBean1");
    * <p>Return a reference to the scoped data bean.</p>
    * @return reference to the scoped data bean
    protected RequestBean1 getRequestBean1() {
    return (RequestBean1) getBean("RequestBean1");
    * <p>Return a reference to the scoped data bean.</p>
    * @return reference to the scoped data bean
    protected ApplicationBean1 getApplicationBean1() {
    return (ApplicationBean1) getBean("ApplicationBean1");
    private void connection() {
    try{
    Context ctx = new InitialContext();
    System.out.println("context"+ctx);
    if(ctx == null )
    throw new Exception("Boom - No Context");
    DataSource ds = (DataSource)ctx.lookup("BiteRiteJNDI");
    if (ds != null) {
    con = ds.getConnection();
    System.out.println("connnn"+con);
    catch(Exception e)
    {System.out.println(e);}
    public void addDataItem() {
    while (addCount-- > 0) {
    DeptDatabase myNewDataItem = new DeptDatabase();
    //myNewDataItem.setEditMode(true);
    list.add(myNewDataItem);
    //log(myDataList);
    // Reset counter and go to last page.
    addCount = 1;
    // log(myDataList);
    // Reset counter and go to last page.
    //addCount = DEFAULT_ADD_COUNT;
    pageLast();
    System.out.println("in add itm");
    // list.add(new DeptDatabase());
    public List getListtt(){
    return list;
    public HtmlDataTable getMyDataTable() {
    if (myDataTable == null) {
    myDataTable = new HtmlDataTable();
    myDataTable.setRows(DEFAULT_TABLE_ROWS);
    return myDataTable;
    private static void log(Object object) {
    System.out.println("bejoy"+new Exception().getStackTrace()[1].getMethodName() + ": " + object);
    public void pageLast() {
    System.out.println("in Page last");
    int count = myDataTable.getRowCount();
    System.out.println("count"+count);
    int rows = myDataTable.getRows();
    System.out.println("rows"+rows);
    if (rows != 0) { // Prevent ArithmeticException: / by zero.
    System.out.println("not equals zero");
    myDataTable.setFirst(count - ((count % rows != 0) ? count % rows : rows));
    log(new Integer(myDataTable.getFirst()));
    public void setListtt(List<DeptDatabase> list) {
    this.list = list;
    * CRUD table: set datatable.
    * @param myDataTable The datatable.
    public void setMyDataTable(HtmlDataTable myDataTable) {
    this.myDataTable = myDataTable;
    jsp
    <?xml version="1.0" encoding="UTF-8"?>
    <!--
    Document : Department
    Created on : Nov 22, 2007, 4:43:11 PM
    Author : Administrator
    -->
    <jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
    <webuijsf:page binding="#{Department.page1}" id="page1">
    <webuijsf:html binding="#{Department.html1}" id="html1">
    <webuijsf:head binding="#{Department.head1}" id="head1">
    <webuijsf:link binding="#{Department.link1}" id="link1" url="/resources/stylesheet.css"/>
    </webuijsf:head>
    <webuijsf:body binding="#{Department.body1}" id="body1" style="-rave-layout: grid">
    <webuijsf:form binding="#{Department.form1}" id="form1">
    <h:dataTable binding="#{Department.myDataTable}" id="myDataTable" value="#{Department.listtt}" var="dataItem">
    <h:column>
    <f:facet name="header">
    <h:outputText value="Departments"/>
    </f:facet>
    <h:inputText value="#{dataItem.department}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="StockItem"/>
    </f:facet>
    <h:inputText value="#{dataItem.stockItem}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="StockUnit"/>
    </f:facet>
    <h:inputText value="#{dataItem.stockUnit}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="MaxStock"/>
    </f:facet>
    <h:inputText value="#{dataItem.maxStock}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="MinStock"/>
    </f:facet>
    <h:inputText value="#{dataItem.minStock}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="ReorderLevel"/>
    </f:facet>
    <h:inputText value="#{dataItem.reorderlevel}"/>
    </h:column>
    </h:dataTable>
    <h:commandButton action="#{Department.addDataItem}" value="Add"/>
    </webuijsf:form>
    </webuijsf:body>
    </webuijsf:html>
    </webuijsf:page>
    </f:view>
    </jsp:root>
    i dont know wats the problem??
    pls send a sample code to add n items

  • How to add a Blank row ?

    Hello Experts
    I probably have a very simple question - but i just need to kno :
    What is an option if i want to leave a blank row as a seperator between data sets in my report output ?
    I have to report on the portal and this would be a BI 7.0 Query.
    Please suggest
    Regards
    Shweta

    well - I was looking for an option to use the query designer to do this. so i created a structure in the rows and added a Key figure to it and after that i wanted to blank out the values by using cell definition and saying hide results there.
    However ; i see some issues here
    1. the cell definition box on my query is grayed out - any idea why ?
    2. what if i want to add key figures in columns - since i am using them in a structure in the rows - i can not use them in columns - but actually - i will want key figs in columns - so then the alternative that i am using is not feasible - so what can i do then ?
    I don't think i will use WAD or web template.
    what do you suggest ?
    Regards
    Shweta

  • Need to add a new row at the end of the table

    Experts,
    working jdev 11.1.1.3.0
    i am adding row programetically, my requirement need to add the row at after last row.
    i tried different ways.
    Row newLastRow = getPWBBidLaneVO().last();
    int lastRowIndex = getPWBBidLaneVO().getRangeIndexOf(newLastRow);
    getPWBBidLaneVO().insertRowAtRangeIndex(lastRowIndex - 1,
    laneRow);
    this is giving --- java.lang.ArrayIndexOutOfBoundsException: 0
    and
    http://kohlivikram.blogspot.com/2008/10/add-new-row-in-adf-table-on-button.html --- its giving index out of bound because vo.getRangeSize() is 25. We set this value at vo for performance improment suggestions.
    is there a way to add a new row at the end of the table?

    Add this to the view row impl class
           public void insertRow(Row row) {
               //go to the end of Rowset if it has rows
               Row lastRow = this.last();
               if (lastRow !=null){
                    //insert new row at the end and make it current
                   int indx = this.getRangeIndexOf(lastRow)+1;
                   this.insertRowAtRangeIndex(indx,row);
                   this.setCurrentRow(row);
               }else { // empty Rowset
               super.insertRow(row);
               }

  • Can't add a blank row entry on to a navigation list  dependable listbox

    Hi All
    Need some help please!
    I am trying to build two dependable selectOnechoice list boxes. i adopt Frank's method and built the top level list box as navigation list.
    my problem is I can't set a unselectedlabel property for this top level list box. I tried to set a the unselectedlabel property in page definition, but when the page rendered , the list has always got one row selected as default, instead of a blank row.
    Is there anyway that I can fix this?
    Thanks a lot

    Hi,
    this is because a navigation list is based on an iterator and the iterator always has a selected row.
    Frank

  • Need to add Run time Validation in Advanced table column

    Hi Friends,
    I've an requirement to add the validation in Advanced table.
    issue is, In eAM Work Order, currently we have ability to add Operation Seq Number as 0, but we need to add one validation to avoid 0 value.
    Oracle gave us the patch but we cannot apply the patch which is bring up the eAM version to higher level.
    decided to handle it in controller and made changes to the handleOpSummaryEvent event.
    Below is my code.
    if("handleOpSummaryEvent".equals(s))
    OAApplicationModule oaapplicationmodule = oapagecontext.getApplicationModule(oawebbean);
    String wipEntityID = ((Number)oapagecontext.getTransactionValue("WipEntityId")).toString();
    oapagecontext.writeDiagnostics(this, (new StringBuilder()).append("Inside wip entity Id: ").append(wipEntityID).toString(), 2);
    String opSeqTrans = (String)oapagecontext.getTransactionValue("SelectedOpSeq");
    String op = oapagecontext.getParameter("OpSeqSummary");
    oapagecontext.writeDiagnostics(this, (new StringBuilder()).append("Inside op : ").append(op).toString(), 2);
    oapagecontext.writeDiagnostics(this, (new StringBuilder()).append("Inside operation Seq Value: ").append(opSeqTrans).toString(), 2);
    ViewObject vo = oaapplicationmodule.findViewObject("OperationSummaryVO");
    if (!vo.equals(null))
    oapagecontext.writeDiagnostics(this, "Inside vo not equals to null", 2);
    vo.setWhereClauseParam(0,wipEntityID);
    vo.executeQuery();
    int fetchedRowCount = vo.getRowCount();
    oapagecontext.writeDiagnostics(this, (new StringBuilder()).append("Inside fetched row count : ").append(fetchedRowCount).toString(), 2);
    if(fetchedRowCount > 0)
    RowSetIterator iter = vo.findRowSetIterator("opIter");
    if(iter == null)
    iter = vo.createRowSetIterator("opIter");
    iter.setRangeStart(0);
    iter.setRangeSize(fetchedRowCount);
    Row row = null;
    for(int i = 0; i < fetchedRowCount; i++)
    OperationSummaryVORowImpl operationsummaryvorowimpl = (OperationSummaryVORowImpl)iter.getRowAtRangeIndex(i);
    Number opSeq = operationsummaryvorowimpl.getOperationSeqNum();
    oapagecontext.writeDiagnostics(this, (new StringBuilder()).append("Inside operation Seq Value 2: ").append(opSeq.intValue()).toString(), 2);
    float f = 0.0F;
    if(opSeq != null)
    f = opSeq.floatValue();
    if(f <= 0.0F)
    //throw new OAException("Enter Valid Operation Sequence Number. 0 is Invalid Operation Sequence",OAException.ERROR);
    oapagecontext.writeDiagnostics(this, "Inside opseq equals 0", 2);
    iter.closeRowSetIterator();
    String s2 = oapagecontext.getParameter("evtSrcRowRef");
    Serializable aserializable[] = {s2, "Summary"};
    oaapplicationmodule.invokeMethod("handleOpEvent", aserializable);
    oapagecontext.writeDiagnostics(this, (new StringBuilder()).append("Inside s2 : ").append(s2).toString(), 2);
    Issue is, when ever i create new line and enter any value at operation seq, validation fires and new line is deleted.
    Please let me know how i can fix this issue.
    Thanks
    Aswath

    Hi Friends,
    I solved it by myself.
    if("handleOpSummaryEvent".equals(s))
    OAApplicationModule oaapplicationmodule = pageContext.getApplicationModule(webBean);
    String s2 = pageContext.getParameter("evtSrcRowRef");
    OperationSummaryVORowImpl rowimpl = (OperationSummaryVORowImpl)oaapplicationmodule.findRowByRef(s2);
    Number opSeq = ((OperationSummaryVORowImpl)(rowimpl)).getOperationSeqNum();
    pageContext.writeDiagnostics(this, (new StringBuilder()).append("Inside row operation sequence: ").append(opSeq.intValue()).toString(), 2);
    if (opSeq.intValue() == 0)
    throw new OAException("Enter Valid Operation Sequence Number. 0 is Invalid Operation Sequence",OAException.ERROR);
    Serializable aserializable[] = {s2, "Summary"};
    oaapplicationmodule.invokeMethod("handleOpEvent", aserializable);
    Thanks
    Aswath

  • Add Row in detail table when check box is checked on a master report table

    Hi,
    How could I detect the click on the check box within a Report and then insert a row in a detail table?
    Many thanks for your help
    jko

    Hi Yogesh,
    That is all handled by the cloneRows() function described in that thread.
    In that function, we first insert a new row:
    var wNew = t.insertRow(ri + 1);ri + 1 = current row + 1 and tells javascript where to add the new row (that is, underneath the current one)
    Then, we loop through all of the cells on the current row and copy its cells into the new row:
    var c;
    var newCell;
    var oldCells = w.getElementsByTagName("TD");
    for (c = 0; c &lt; oldCells.length; c++)
      newCell = wNew.insertCell(c);
      newCell.className = oldCells[c].className;
      newCell.innerHTML = oldCells[c].innerHTML;
    }Next, we search for all INPUT items on the new row and clear the values:
    var inputs = wNew.getElementsByTagName("INPUT");
    var j;
    for (j = 0; j < inputs.length; j++)
      inputs[j].value = "";
    }And, finally, we call the updateInputs() function to rename all of the items on the page. Apex expects all items to have unique "f01_nnnn" etc names, adding in a new row upsets this, so we need to reset them:
    function pad(n)
    var s = '0000' + n;
    return s.substr(s.length-4);
    function updateFields(f)
      var fields = document.getElementsByName(f);
      var j;
      if (fields.length > 0)
        for (j = 0; j < fields.length; j++)
          fields[j].id = f + "_" + pad(j+1);
    function updateInputs()
    updateFields("f01");
    updateFields("f02");
    updateFields("f03");
    updateFields("f04");
    }without doing that, the data may get lost when the page is re-rendered.
    This is all called from a new Derived Column on the report. This column's HTML Expression is:
    &lt;a href="#" onclick="javascript:cloneRow(this)"&gt;&lt;img src="#IMAGE_PREFIX#FNDADD11.gif"&gt;&lt;/a&gt;which generates the + symbols which, when clicked, run the cloneRow() function
    Andy

  • Add / Delete a row in a table without using a button

    Hi,
    I was just wondering if it was possible to remove or add a row in a table without using the button?  I noticed that in all examples, it always involve putting code in the button click event but I wanted to add or delete a row in a table based on the fact if the row contains a certain value or not.  Is that possible?
    Much appreciated,
    Vincent

    Vincent,
         Here is the updated file..
    https://acrobat.com/#d=bVDBNM0pnS2IpfE58V01Tg
    You have checked the checkbox "Repeat subform for each Row" for Header Row under IndTable1. You need to do at Row1 level of Table1.
    I bound the Row1 of Table1 to <Row1> tag in your XML which can repeat multiple times.
    I wrote the code in the Doc Ready event of the Test1 field to check whether the value is existing or not. If it does not have a value, then I am removing the instance of the Row1 by passing the current index.. (You can check the code)..
    While creating a data connection using XML you need to make sure that the below structure is repeated atleast 2 times. And while previewing you can use make a copy of this same XML and remove Row1.
      <Row1>
        <Test1>Individual Name 1</Test1>
      </Row1>
    Thanks
    Srini

  • How do I add remove Multiple rows in a table

    Guys,
    Can somebody tell me How do I add and remove <u><b>Multiple</b></u> rows between two tables.
    <u>Also, I want the row or rows to disappear from the source table as soon as it is moved or added to the second table and appear again once its been removed from the second table.</u>
    The data is being fed by a BI query not a BAPI..
    thanks,
    Naseer

    Hi Jarrod,
    Thanks for replying. Even though it seemed like it might not be possible. But we figured it out.
    We are using signals to basically LOOP and do an ADD and REMOVE.
    Thanks again,
    Naseer

  • How to capture multiple rows of ALV grid when user selected?

    Actually,It is easy to get one single line.However, my user wants select several lines of ALV grid  by condition  .  i need to process the selected lines ,so i need to put these lines into an internal table. But now, i have no idea to capture the lines.
    What method for an ALV Grid will return the lines the user has selected?
    Appreciate for your help!
    Edited by: Heyman52 on Aug 25, 2010 4:28 AM
    Edited by: Heyman52 on Aug 25, 2010 4:30 AM

    Hi,
    Once user selects multiple rows and press another button for further execution, you can modify your internal table with marked rows using selection column.
    You need to add user command code in your ALV grid call. Please refer below code.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
          EXPORTING
            I_CALLBACK_PROGRAM       = SY-REPID
            I_CALLBACK_PF_STATUS_SET = 'F_GUI_STATUS'
            I_CALLBACK_USER_COMMAND  = 'F_USERCOMMAND'
            I_GRID_TITLE             = TEXT-026
            IS_LAYOUT                = WA_LAYOUT
            IT_FIELDCAT              = I_FIELDCAT
          TABLES
            T_OUTTAB                 = I_OUTTAB
          EXCEPTIONS
            PROGRAM_ERROR            = 1
            OTHERS                   = 2.
        IF SY-SUBRC NE 0.
          MESSAGE S475 DISPLAY LIKE 'E'.
          LEAVE LIST-PROCESSING.
        ENDIF.
    *- User command for details display.
        PERFORM F_USERCOMMAND USING I_UCOMM
                                    I_SELFIELD.
    FORM F_USERCOMMAND USING FP_R_UCOMM LIKE SY-UCOMM
                             FP_SELFIELD TYPE SLIS_SELFIELD.
    IF L_V_REF_GRID IS INITIAL.
        CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
          IMPORTING
            E_GRID = L_V_REF_GRID.
      ENDIF.
      IF NOT L_V_REF_GRID IS INITIAL.
        CALL METHOD L_V_REF_GRID->CHECK_CHANGED_DATA.
      ENDIF.
    ENDFORM.
    You can then read your final internal table as below and take the selected records in another internal table.
    LOOP AT I_OUTTAB ASSIGNING <FS_OUTTAB> WHERE SEL EQ 'X'.
            APPEND <FS_OUTTAB> TO I_CHECK.
          ENDLOOP.
    Edited by: Archana Pawar on Aug 25, 2010 11:16 AM

  • How to disable row in tabular form when checkbox checked?

    Hi.... this is what i want to do....
    I created tabular form for offering items... there is a checkbox that is used to select item with lowest price...
    But i have also one column that shows item options ( option is for example... i want offer for 22" monitor Samsung, but seller have only 22" LG monitor.... so in my offering will be shown item (22" monitor Samsung) that i want, and in row below item (22" LG monitor) that seller have... both items will have same order id....
    Next thing i want to do is when i select checkbox with item (22" LG monitor) as lowest price, i want that row with same order id (22" samsung monitor) is disabled.
    Is that possible to do?
    This is my code for creating tabular form:
    SELECT
    CASE WHEN RED_BR_OPCIJE = 0 THEN '-' ELSE TO_CHAR(RED_BR_OPCIJE) END RED_BR_OPCIJE,
    apex_item.hidden(1, ID_STAVKE)||
    apex_item.hidden(2, ID_STAVKE_IZ_ZAHTJEVA)||           ---order_id
    apex_item.hidden(3, ID_PONUDE)||
    apex_item.hidden(4, ODABIR_NAJPOVOLJNIJE_STAVKE)||     
    apex_item.checkbox(5, '#ROWNUM#', null, decode(ODABIR_NAJPOVOLJNIJE_STAVKE, 'X', '#ROWNUM#')) Odabir,    ---checkbox_lowest price
    apex_item.textarea(6, NAZIV_ARTIKLA_TRAZENO, 3, 40, 'readonly="readonly"') NAZIV_ARTIKLA_TRAZENO,
    apex_item.textarea(7, NAZIV_ARTIKLA, 3, 40, 'readonly="readonly"') NAZIV_ARTIKLA,
    apex_item.text(8, SIFRA_ARTIKLA, 8, 20, 'readonly="readonly"') SIFRA_ARTIKLA,
    apex_item.text(9, JMJ, 5, 20, 'readonly="readonly"') JMJ,
    apex_item.text(10, KOLICINA, 6, 20, 'readonly="readonly"') KOLICINA,
    apex_item.text(11, JEDINICNA_CIJENA, 12, 20, 'readonly="readonly"') JEDINICNA_CIJENA,                                      ---price
    apex_item.text(12, IZNOS_STAVKE, 12, 30, 'readonly="readonly"') IZNOS_STAVKE,
    apex_item.text(13, IZNOS_RABATA, 12, 20, 'readonly="readonly"') IZNOS_RABATA,
    apex_item.text(14, JEDINICNA_CIJENA_NAKON_POPUSTA, 12, 20, 'readonly="readonly"') JEDINICNA_CIJENA_NAKON_POPUSTA,
    apex_item.text(15, IZNOS_STAVKE_NAKON_POPUSTA, 12, 20, 'readonly="readonly"') IZNOS_STAVKE_NAKON_POPUSTA
    from PONUDE_STAVKE
    where ID_PONUDE = :P34_ID_PON
    ORDER BY ID_PONUDE ASC, ID_STAVKE_IZ_ZAHTJEVA ASC, RED_BR_OPCIJE ASC
    And this is example table with a few column names:
    order_id      option_number               item_name                      price         checkbox_lowest price
    1086                    -                Samsung 22" monitor              100$                 null                ---this row should be disabled because next row is selected as lowest price
    1086                    1                LG 22" Monitor                    90$                 X                   --- both rows have same order_id
    1050                    -                Router                            100$                X

    Hi snake2903,
    {thread:id=998140}
    {thread:id=1554583}
    {thread:id=2249233}
    Hope it helps!
    Regards,
    Kiran

  • How to add a blank row in a report structure ?

    Hi,
    I have a report which uses a structure in both the rows and the columns. It also using cell definitions to define some cells in the report.
    What I want to do is to format the report a bit more and insert a blank line at various points in the row structure.
    Can this be done and if so how?

    Are you creating report on InfoCUbe or ODS?
    Are you aware of any characteristics for which value will never be ZERO in the Dataprovider?
    If yes, then remove the formula and create the selection with description .(dot) and restrict that characteristics by #. That would pullout space for all the KFs.
    - Danny

Maybe you are looking for

  • Need help on xslt transformation

    Hi , I am working on a xslt transformation and  I am finding it difficult to implement the transformation. The scenario is as below. Input format :- A B B B 4 5 A B B A B B B Output format :- A B B B (since after A there were 3 B's before the next A)

  • Copy-Paste Big problem on FW CS4!!!

    Hi, I have this big problem in the very bad big moment Trying to pase text from pages or ms word or even text edit and for example "It's So Much More Than an ID Tag." into FW. And I get "Itís So Much More Than an ID Tag." instead. (notice ITS words).

  • How to run the program  UMB_BSC_TABLE_CLEAN ?

    Hi Friends, I am getting a message telling inconsistency in the selection criteria while assigning the characteristic value in value fields of a measure of scorecard in SEM application. It's suggesting me to run the program "UMB_BSC_TABLE_CLEAN". In

  • Artist is appearing multiple times.

    I am having an interesting problem with iTunes 10.6.1.7 I have one artist that is appearing three times in my artist list. I have checked all the fields, and deleted and re-entered all the information manually, but still the artist is continuing to b

  • API for insert Lead into telesales

    How can Insert lead for customer using API in Telesales