Adding row to the LOV

hi all,
i am using
i am trying to add the rows to the LOV which resides on the other block(that means 'block1' serial column i am showing on the lov(which in block2)
let us say block1 already have 2 record, and user entered 3 rd record.so serial become 3. this record 3 i want to add an LOV (record 3 is not saved yet).
i have coded as below
DECLARE
   rg_name VARCHAR2(20) := 'RG_SERIAL';
   rg_id   RecordGroup;
   errcode Number;
   l_rows  Number;
BEGIN     
   rg_id := Find_Group(rg_name);
   l_rows := Get_Group_Row_Count(rg_name) + 1;
  Add_Group_Row(rg_id, l_rows);
  Set_Group_Number_Cell('RG_SERIAL.PPD_SERIAL',l_rows,:SERIAL);
  errcode := Populate_Group(rg_id);
SET_LOV_PROPERTY('SERIAL_LOV',AUTO_REFRESH,PROPERTY_FALSE);
SET_LOV_PROPERTY('SERIAL_LOV',GROUP_NAME,'RG_SERIAL');
END;for the LOV i set the property reset to 'No' but still the row is not adding to LOV and i am not getting any compilation error too.
note: here RG_SERIAL is the record_group having select statement in it.
PPD_SERIAL is the database column in the record group.
Please guide me to acheive this.
Thanks..
Edited by: GD on May 3, 2011 5:42 AM

hi,
since i am setting the automatic refresh to no. the items is Keeps on adding to an lov.
i cannot use
IF NOT ID_NULL(rg_id) then
      delete_group(rg_id);     
end if;since record group contains sql query.
where i can refresh this LOV
Thanks..

Similar Messages

  • Reading the Data from dynamically added rows of a table...

    Hi,
                  I am using adobe interactive form (WD ABAP) in which i am adding the table rows dynamically (using Jscript code).  I have to fech these data into an internal table. But I can read only the first row data..
                  Also While adding rows dynamically the same data is repeating for the consecutive rows..
                  I have found many similar posts in sdn, but i cannot get the solution. They have mentioned about adding in WDDOINIT method. Can anyone explain me what should be done,..?
    1) How to solve repeatative data while adding rows..?
    2) How to read dynamically added row data during runtime into internal table..?
    Thanks,
    Surya.

    Discussed @ SDN lot of time before. Have a look at any of below threads:-
    Dynamic table in interactive form...
    Make dynamic tables in Adobe Interactive forms
    Adding Rows dynamically upon clicking the button
    How to get values to WebDynpro ABAP from dynamic table?
    Chintan

  • How to see Added Row in a table

    Hi
    i have taken atable with visible row count 5 and ihave taken a button to add new row for that i have written code in action of that button,when ever a new row is added  that added row below the 5th row, to see that added row ishould click on UP button of table,*what i want i as soon as new row added 1st row of table should go up and remaing 5 rows should appear(2,3,4,5,6 rows)  ,suppose if i click on add row 2nd row should go up and remaingrows should appear(3,4,5,6 rows).please help me out of this problem
    Thanks
    Kishore

    Hi Kishore,
    Try this.
    public void onActionAddRow(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionAddRow(ServerEvent)
        int row = wdContext.nodeCustomer().size();
        IPrivateTestCompView.ICustomerElement custElm = wdContext.createCustomerElement();
         custElm.setCname("");
         custElm.setCno("");
         custElm.setCsal("");
         wdContext.nodeCustomer().addElement(custElm);
         //for swap the rows
         for(int i=1;i<=row;i++)
              wdContext.nodeCustomer().swapElements( 0, i );     
        //@@end
    Regards,
    Mithu

  • How to view added rows in table; there is a horizontal line below which any added rows disppear!  Pages version 5.1 which I DESPISE!!!!

    I just replaced Pages after paying Apple $400+ for replacing a wiped-out hard-drive....
    MANY HORRIBLE QUIRKS with Pages 5.1...
    the one I listed above.....it's as if there is only one page....I can't see any added rows in the table below this arbitrary line drawn across the bottom!  I can ADD the rows, but nothing I type in them is visible!

    Do you have Pages '09 in your Applications/iWork folder?
    If not ask Apple to give it to you again.
    You own it.
    Peter

  • Numbers missing reference after adding rows

    Hi,
    I came into a strange situation (which I did not have before).
    I have a sheet summary contaning formulas that uses cells from a different sheet. The source sheet contains more than 100 rows containing different numbers which are used in more than 50 formulas in the summary sheet.
    When adding rows inbetween the existing data sheet rows, I see that the summary sheet furmulas, in some cases, do not reference to the correct row number (they all should shift to the new row number) any more (out of 50 references only four got currapted).
    Any ideas are appriciated (is this a known bug).
    Thanks,
    Ziv

    Ziv,
    First, I want to thank you for asking a question that got me thinking about something I hadn't really considered before.
    I am not entirely sure I understand your question or the test you proposed in the second post, but if I am reading it correctly, what you are expecting is the way Numbers is designed to work (and the way I have seen it work) and when I try the test from your second post I get the results I expect.
    That is, a cell reference points to a cell, not a location; if you move that cell (for example, by adding a row above it, which moves it down one row) the reference in the formula is updated to reflect the new location, but the result of the calculation doesn't change.
    But this got me wondering about how Numbers dealt with references to ranges of cells. For example, the formula =SUM(C3:C6) is equivalent to =SUM(C3, C4, C5, C6), but what happens when you add a row after row 4? Apparently, the second expression remains a sum of the values in four cells, but the values of C5 and C6 are changed to reflect the fact that they have moved to C6 and C7. However, in the first expression, the new cell is added to the range, so that it is now the sum of five values. Actually, if you add a row (or column) to one that passes through a range, in the middle, or on the outside, the formula updates to add the new cell to the range, even if you are adding cells immediately below the bottom row in the range (so none of the cells in the original range actually move).
    I'm not sure any of this has much to do with your problem, unless possibly one (or four) of your expressions is referring to a range that happens to be one cell, which would update differently from one referencing a simple cell. As Jerry has said, it's pretty hard to know anything without knowing what expressions your formulas are using.
    At any rate, thanks for making me think about something I hadn't explored before.

  • Numbers 09 continuing formulas when adding rows

    Numbers 09 - I have a checkbook template but when adding rows at the bottom the formulas do not continue. I have tried adding rows from the last row "Add row below" and also while in the last cell hitting return. Neither of these work. Any suggestions?

    Hi jc,
    The rule is quite explicit: "If all the body cells in a column above the new row contain the same formula or cell
    control, the formula or cell control is repeated in the new row."
    So far there's been some information necessary to solving the problem missing from your posts. Please do the following, and supply the requested information:
    Unhide ALL rows. There are two ways to do this, depending on what was done to hid them.
    a. Click on the Reorganize button. If the checkbox beside "Show rows that match..." is checked, uncheck it.
    b. If the checkbox is unchecked, or if there are still rows hidden after unchecking it, go to the Table menu and choose Unhide all Rows.
    Click on any cell on the table to activate the table and show the Column and Row reference tabs. Hover the mouse over the tab for Row 1, then click the triangle that appears to open the local row menu. Repeat with rows 2, 3, 4, 5 and 6 until you find the first row whose menu starts with the item shown below. Which row has this menu item on your table?:
    Now click on cell G2 (the first cell containing a balance).
    Select and Copy the whole formula from this cell. Paste it into your reply to this message.
    Repeat step 3 with the formula from cell G3. Paste it directly below the formula from G2, using the example below as a guide:
    G2: (paste formula)
    G3: (paste formula)
    Regards,
    Barry

  • Adding rows onto a new page in a table

    Hi,
    I have created a form that had the last page as a subform with a table on it, flowed western so that the cells expand with content./ Also added a add new row button to it (as per the scripting given in the Livecycle help), all of which was working fine. I then moved the subform with the table to the middle of my document instead of the last page and now when I add rows, it doesn't create a new page when it reaches the end, but just continues down off the end of the existing page. The following pages are just information set it their own sub forms.. do I need to change the subform pagination or hte scripting or the table settings to make it add an extra page and keep adding rows in the middle of the form?
    Many thanks for any assistance
    Jackie

    No the issue is with the page subform ...it must be flowed as well .....make sure you wrap all of the other content in Positioned subforms or it will be flowed also.
    Paul

  • LOV does not show newly added data in the same session

    Hi guys,
    I work with JDeveloper 11g Release 2. We use Oracle ADF to develop our web app.
    In a page we have a LOV (say the page name is "a"). The related data for that LOV is inserted to the db in another page ( say the page name is "b").
    When new data is added in the page "b" and goes directly to the page "a" the LOV does not show newly added data. But if the user log out and log in again
    LOV shows newly added data correctly.
    Is there a way to show the newly added data in the same session without logging out? Please help.
    Regards !
    Sameera.

    Add the following method in your ViewRowImpl base class:
    public void refreshLOVAccessorQueries() {
        List lovs = getViewDef().getListBindingDefs();
         if (lovs != null) {
             for (Object obj : lovs) {
                getListBindingRSI((ListBindingDef)obj).getRowSet().executeQuery();
                 ListBindingDef lbd = (ListBindingDef)obj;
    Export that method to the Row Client interface, add him to the pageDef, and invoke in the executables section of the pageDef:
        <executables>
    <invokeAction Binds="refreshLOVAccessorQueries" id="callRefreshLOVs"
    RefreshCondition="#{!requestContext.postback and empty bindings.exceptionList}"/>
       </executables>

  • Adding new row to the reports list page

    How can I add a new report row in the reports list of the reports tab.
    Ex: a new row to the report "users by Date of Join report" is to be added
    How can we add Please help me out in this

    I am facing the same problem!
    camickr wrote:
    Try adding an empty row containing a null value for the String instead of the empty String.camickr, it will not help, the DefaultRowSorter in the "*+compare(int model1, int model2)+*" method return -1 if the first value is null and 1 if the sacond value is null. and incase of DESCENDING it mult by -1.
                    // Treat nulls as < then non-null
                    if (v1 == null) {
                        if (v2 == null) {
                            result = 0;
                        } else {
                            result = -1;
                    } else if (v2 == null) {
                        result = 1;
                    } else {
                        result = sortComparators[counter].compare(v1, v2);
                    if (sortOrder == SortOrder.DESCENDING) {
                        result *= -1;
                    }And this is the real problem!
    The empty line is sorted as the smallest value and incase of DESCENDING it will be the first line (because of the mult by -1).
    We could have overide it and incase of the empty row(usualy the last row) do not mult by -1 in DESCENDING mode.
    But the problem is that the "+*compare*+" method and it's caller "*+Row+*" inner class are private :-(
    It is not wise to do it but we can do like kmp83 wrote:
    kmp83  wrote:
    copy/duplicate "private" code from DefaultRowSorter into my extended class.Anyone have another suggestion?

  • How can I filter the LOV rows at the runtime

    I am working in oracle forms 6i.
    My lov is based on a view. If I selected one row from LOV, that row should not appear in list box.
    I would like to restrict rows before saving a form. How can i filer the LOV rows at the runtime?
    Please help me.

    Dear Mr.MH_BD,
    Thanks for your immediate response,
    My form is built based on master and detail link.  On the multi row detail section I am invoking this LOV.  The record group containing the following query:
    select fees_id,fees_name,term_fees from sk_fees_mst where fees_bal>0;
    fees_id
    fees_name
    term_fees
    12
    Tuition Fees
    2500
    13
    Smart Class
    100
    14
    Admin Fees
    300
    If I selected the fees_id 13 for the first row of detail section, then the LOV should display only the following in the next row:
    fees_id
    fees_name
    term_fees
    12
    Tuition Fees
    2500
    14
    Admin Fees
    300
    (ie.) Before commit form I need to filter the already selected fees ids from record group.
    Thanks in advance.

  • Adding a new row in the end!... Urgent...

    Hi,
    I have a requirement where i have a classic table with some of it's columns having default values. While using "Add Another Row", since these default values were not getting set, I used setAutoInsertion(false) on the tablebean, and used createRow and insertRow for adding new rows, but this new row gets added before my existing row. How to make it add after my existing row? I tried using vo.last()
    as suggested in some of the posts, but to no use.
    Thanks in Advance

    It is the framework behavior that when you add another row, the row is added as the last row in the current range. The existing last row in the current range is pushed into the next range.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                               

  • Change field value in a table, based on another field value in the same row (for each added row)

    Please Help, I want to change field value in a table, based on another field value in the same row (for each added row)
    I am using this code :
    <HTML>
    <HEAD>
    <SCRIPT>
    function addRow(tableID) {
    var table = document.getElementById(tableID);
    var rowCount = table.rows.length;
    var row = table.insertRow(rowCount);
    var colCount = table.rows[0].cells.length;
    for(var i=0; i<colCount; i++ ) {
    var newcell = row.insertCell(i);
    newcell.innerHTML = table.rows[1].cells[i].innerHTML;
    switch(newcell.childNodes[0].type) {
    case "text":
    newcell.childNodes[0].value = "";
    break;
    case "checkbox":
    newcell.childNodes[0].checked = false;
    break;
    case "select-one":
    newcell.childNodes[0].selectedIndex = 0;
    break;}}}
    function deleteRow(tableID) {
    try {var table = document.getElementById(tableID);
    var rowCount = table.rows.length;
    for(var i=0; i<rowCount; i++) {
    var row = table.rows[i];
    var chkbox = row.cells[0].childNodes[0];
    if(null != chkbox && true == chkbox.checked) {
    if(rowCount <= 2) {
    alert("Cannot delete all the rows.");
    break;}
    table.deleteRow(i);
    rowCount--;
    i--;}}}catch(e) {alert(e);}}
    </SCRIPT>
    </HEAD>
    <BODY>
    <INPUT type="button" value="Add Row" onClick="addRow('dataTable')" />
    <INPUT type="button" value="Delete Row" onClick="deleteRow('dataTable')" />
    <TABLE id="dataTable" width="350px" border="1">
    <TR>
    <TD width="32"></TD>
    <TD width="119" align="center"><strong>Activity</strong></TD>
    <TD width="177" align="center"><strong>Cost</strong></TD>
    </TR>
    <TR>
    <TD><INPUT type="checkbox" name="chk"/></TD>
    <TD>
    <select name="s1" id="s1">
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    </select>
    </TD>
    <TD><input type="text" name="txt1" id="txt1"></TD>
    </TR>
    </TABLE>
    </BODY>
    </HTML>

    Hi,
    Let me make sure u r working with table control.
    First u have to create a event(VALIDATE) to do the validation.
    Inside the event,
    1. First get the current index where user has pointed the curson
    2. Once u get the index read the internal table with index value.
    3. Now u can compare the col1 and col2 values and populate the error message.
    1. DATA : lo_elt TYPE REF TO if_wd_context_element,
                   l_index type i.
    lo_elt = wdevent->get_context_element( name = 'CONTEXT_ELEMENT' ).
         CALL METHOD LO_ELT->GET_INDEX( RECEIVING  MY_INDEX = l_index.
    above code should be written inside the event.
    Thanks,

  • Adding multiple rows to the HtmlDataTable in bean.

    Hi,
    I am facing a problem in displaying the table data which I am constructing in my Bean using HtmlDataTable.
    I am constructing a HtmlDataTable and binding it to a <h:dataTable>. As per the requirement, I need to display the data in different
    rows of the table. My table has a single column.
    in my JSP, I have
    <h:dataTable id="doclist" value="#{empobject.docListTable}" binding="#{empobject.docListTable}" />
    in my java bean, I have
    <code>
         public HtmlDataTable getDocListTable() {
         FacesContext facesContext = FacesContext.getCurrentInstance();
         docListTable=(HtmlDataTable) facesContext.getApplication().createComponent(HtmlDataTable.COMPONENT_TYPE);
         docListTable.setRows(10);
         <i> // Column1 </i>
         UIColumn columnComponent1 = new UIColumn();
         List childrenList = docListTable.getChildren();
              <i> //Column is added.</I>
         childrenList.add(columnComponent1);
              <i>//Adding the header info for the column</i>
              columnComponent1.setHeader(new HtmlOutputText().setValue("Header"));
         // DataModel
         ListDataModel listDataModel = new ListDataModel();
         ArrayList list =(ArrayList)columnComponent1.getChildren();
         <i>FIRST ROW </i>
         HtmlOutputText rowComponent = new HtmlOutputText();
         rowComponent.setValue("Training ");
         rowComponent.setId("Row1");
         rowComponent.setStyleClass("Section");
         list.add(rowComponent);
         <i>SECOND ROW </i>
         HtmlOutputText rowComponent1 = new HtmlOutputText();
         rowComponent1.setValue("OPeration");
         rowComponent1.setId("Row11");
         rowComponent1.setStyleClass("Section");
         list.add(rowComponent1);
         listDataModel .setWrappedData(list);
         // docListTable.setValue(listDataModel);
              return docListTable;
    </code>
         Here I am assuming that 2 rows were added to the table. But what's happening is
    1) Table header is added properly.
    2) Insteadof having 2 table rows, within a single row, both outputtext values displayed. (i.e Training OPeration)
    As I am pretty new to JSF world, I am requesting experts to give me solution as to display the information in two rows.
    In real, my requirement is so complex as I will have to display the <td> in different styles and all depending upon some conditions.
    But, this above mentioned problem has become a major hurdle to proceed further. As somany complexities involved, I wanted to construct this
    table in my java bean only.
    Please help me out in adding some sample code while giving a solution.
    Thanks,
    -Nir

    Hi,
    I am facing a problem in displaying the table data which I am constructing in my Bean using HtmlDataTable.
    I am constructing a HtmlDataTable and binding it to a <h:dataTable>. As per the requirement, I need to display the data in different
    rows of the table. My table has a single column.
    in my JSP, I have
    <h:dataTable id="doclist" value="#{empobject.docListTable}" binding="#{empobject.docListTable}" />
    in my java bean, I have
    <code>
         public HtmlDataTable getDocListTable() {
         FacesContext facesContext = FacesContext.getCurrentInstance();
         docListTable=(HtmlDataTable) facesContext.getApplication().createComponent(HtmlDataTable.COMPONENT_TYPE);
         docListTable.setRows(10);
         <i> // Column1 </i>
         UIColumn columnComponent1 = new UIColumn();
         List childrenList = docListTable.getChildren();
              <i> //Column is added.</I>
         childrenList.add(columnComponent1);
              <i>//Adding the header info for the column</i>
              columnComponent1.setHeader(new HtmlOutputText().setValue("Header"));
         // DataModel
         ListDataModel listDataModel = new ListDataModel();
         ArrayList list =(ArrayList)columnComponent1.getChildren();
         <i>FIRST ROW </i>
         HtmlOutputText rowComponent = new HtmlOutputText();
         rowComponent.setValue("Training ");
         rowComponent.setId("Row1");
         rowComponent.setStyleClass("Section");
         list.add(rowComponent);
         <i>SECOND ROW </i>
         HtmlOutputText rowComponent1 = new HtmlOutputText();
         rowComponent1.setValue("OPeration");
         rowComponent1.setId("Row11");
         rowComponent1.setStyleClass("Section");
         list.add(rowComponent1);
         listDataModel .setWrappedData(list);
         // docListTable.setValue(listDataModel);
              return docListTable;
    </code>
         Here I am assuming that 2 rows were added to the table. But what's happening is
    1) Table header is added properly.
    2) Insteadof having 2 table rows, within a single row, both outputtext values displayed. (i.e Training OPeration)
    As I am pretty new to JSF world, I am requesting experts to give me solution as to display the information in two rows.
    In real, my requirement is so complex as I will have to display the <td> in different styles and all depending upon some conditions.
    But, this above mentioned problem has become a major hurdle to proceed further. As somany complexities involved, I wanted to construct this
    table in my java bean only.
    Please help me out in adding some sample code while giving a solution.
    Thanks,
    -Nir

  • Is there a row limit that has been set in CMC for the LOVs?

    Hi,
    Is there a row limit that has been set in CMC for the LOVs? I get a 'Partial results' message for big LOVs. I am talking about BW prompts LOV`s.
    we have 22,000 LOV`s but we will get 5000 LOV`s in prompts. so we need to do manual search to get list .
    we are in 4.0 sp2 p10

    Hi,
    I understood that value need to be changed in webi_client_default_parameters.xml file but under
    "Program Files > Business Objects > BusinessObjects Enterprise 4.0 > win32_x86 > config" location I do not see
    the file webi_client_default_parameters.
    we are under 4.0 SP2 P10....
    Could some one help me out.
    Edited by: sumanmanu on Feb 8, 2012 5:24 PM

  • Choosing LOV in the table row , clears the rest of the columns

    Hi. I am on Jdev 11g R3
    I have a table with several editable columns. One of the columns is LOV
    I put some data in the NON lov field.
    Next I choose the value from LOV. As soon as I choose the value in LOV  - the rest of the fields get cleared and appears empty.
    I can solve it by setting "autosubmit=true" on each column, but I wander if there is an option to preserve column values without "autosubmit"
    Please advice

    Which version is 11g R3?
    I only know abpout 11g R1 (11.1.1.0.0 - 11.1.1.7.0) and 11g R2 (11.1.2.0.0 - 11.1.2.4.0).
    Where does the LOV store it's selected value?
    Does this happen if you set the LOV to autoSubmit="true"?
    Timo

Maybe you are looking for

  • Triggering of Notification from Follow Up action

    hi SDN, in calibration order. if i reject inspection lot ,system should trigger notification as follow up action. Can any one suggest the name of functional module that can be assigned in follow up (QM customizing)action so that system trigger notifi

  • GL Balance difference in FS10N and FAGLB03

    Hi, I have an issue, GL account balance for an inventory account is not same when compared bettween FS10N and FAGLB03 I checked the totals table GLT0 and FAGLFLEXT and both have different balances. I have performed Balance carry forward using FAGLGVT

  • Retry mechanism in Fault handling framework SOA 11g

    hi i have used Fault management framework in my project. I have added fault-policies and fault-bindings file. in fault-policies file i am using retry mechanism for any remote or binding fault. but i am not able to see the retry working in flow trace.

  • Problem with Zen Creative

    I bought my player the last summer and I have the white screen of death since two months. I have already read the post of the white screen, but I want to know if that is a problem of all player Zen Creative 4gb/8gb/6gb or it happens only to some. Ple

  • Home theater sound problems

    Sony STR-DE697 Receiver Samsung HDTV Bose Acoustimass 6 Series III speaker system I need help. System had worked normally. Then--- Right Front speaker went dead. Switched Center with Right. Speaker was OK. Figured it was receiver problem, but couldn'