Getting table region values on Save

Hi ,
I am extending the Work Order Creation and update page from Maintenance Super User screen,
I am doing like below to get all lines in controller.
+
OAApplicationModule am = (OAApplicationModule)pageContext.getApplicationModule(webBean);
OAViewObject vo = (OAViewObject)am.findViewObject("MaterialRequirementsVO");
if (vo.getFetchedRowCount() > 0)
System.out.println(String.valueOf("Fetched row count ").concat(String.valueOf(vo.getFetchedRowCount())));
while (vo.hasNext())
pageContext.writeDiagnostics(this,"Inventory ID "+vo.getCurrentRow().getAttribute("InventoryItemId"),3);
vo.next();
+
but I get data only when rows are not updated(without any changes it just click on save), and if any of the column in the table region is updated then i get null VO error.. and wont get any details of column.
OAF LOG: Event : Check Errors, in: oracle.apps.fnd.framework.webui.OAPageErrorHandler: Exception: Message not found. Application: EAM, Message Name: CANNOT_SAVE_WO. ,In VO: null
Please help.
Thanks,
--Amit                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Hi ,
I have answered it in another thread , see if that helps you .
--Keerthi                                                                                                                                                                                   

Similar Messages

  • Get table cell value on click without using submit or action

    hello ,
    i am having html table containing values retrieved from database.
    i want to create table cell as a link and want to pass cell's value to the next page without using submit, radio button, checkbox.
    it is feasible in PHP and ASP but i want to solve in jsp. pls suggest the solution.
    Edited by: Avinash123 on Dec 16, 2008 2:58 AM

    Here is sample code
    <script type="text/javascript">
    function callForm(data)
    frm.action="anotherjsp.jsp?value="+data;
    frm.submit();
    </script>
    <form name="frm" action="">
    <table id="test" border='1'>
    <tr >
    <td onclick="callForm('Data1')" > Data1 </td>
    <td onclick="callForm('Data2')" > Data2 </td>
    <td onclick="callForm('Data3')" > Data3 </td>
    <td onclick="callForm('Data4')" > Data4 </td>
    </tr>
    </table>
    </form>

  • How get table column value in textfield on mouse click in table column

    hi master
    sir i have one table that have three field
    sno
    name
    fname
    and three textfield in my page
    how i get sno,name,fname in textfield form table when i click any reow or any record
    when i cliek any record that record value sno,name and fname transfer to textfiled1,textfield2 and textfield3
    please give me idea and code
    thank's
    aamir

    Hi Gorge,
    Are you sure the column you are accessing is of  type EditText ?
    Please step through your code and do check the type of the column first.
    While Rows <= index
    Dim o = omatrix.Columns.Item("2000002049").Type     'Check the type here first.
    edit1 = oMatrix.Columns.Item("2000002049").Cells.Item(index).Specific
    index = index + 1
    Regards
    Edy

  • How to get Table Field values during sync from Events like DbSyncProgressEventArgs.

    Hi,
    I am facing an issue related to Sync. During  Sync as some Tables fails to sync, entire Session gets rollback. 
    Through DbSyncProgressEventArgs or DbApplyingChangesEventArgs, DbChangesSelectedEventArgs or DbChangesAppliedEventArgs, events, i want to find the Field values from that table so that i can identify which raw failed.
    For example, for DbSyncProgressEventArgs, we can fetch table using  e.TableProgress.TableName. But how can i get fields or Primary key value of that table row which is inserted or updated or deleted.
    Please give suggestions on this. 
    Thanks,
    Sangeetha

    DbApplyingChangesEventArgs, DbChangesSelectedEventArgs  has Context property that has in turn
    has a Dataset property containing the change dataset being synched.

  • How to get the values from table region and how to set

    Hi,
    I have a requirement as Seeded Page Having One Table Region having around 8 columns, In That Item Description field is there. My Requirement is I need add one more field for that Region and assign the value depending Item Description.
    I will create one new Item in that region and will give name as Item, But how to set the values to Item Depending on Item Description.
    Is it possible to through CO Extension, If yes..Pls help how to get it.
    Thanks in Advance,
    Hanimi

    Hi Hanimi,
    1. You need to extend the VO, add a new Attribute.
    2. In VORowImpl of the extended VO, you can find the getter for your new attribute (example getItem())
    3. In this getter method you can write some code like:
    if("ABC".equals(getItemDescription())
    return "XYZ" ;
    -Prince
    http://princekapoor82.blogspot.com

  • How to get edited row values from ADF table?

    JDev 11.
    I have a table which is populated with data from Bean.
    I need to save changes after user make changes in any table cell. InputText is defined for table column component.
    I have defined ValueChangeListener for inputText field and AutoSubmit=true. So when user change value in inputText field, method is called:
    public void SaveMaterial(ValueChangeEvent valueChangeEvent) {
    getSelectedRow();
    SaveMaterial(material);
    This method should call getSelectedRow which take values from selected table row and save them into object:
    private Row getSelectedRow(){
    RichTable table = this.getMaterialTable();
    Iterator selection = table.getSelectedRowKeys().iterator();
    while (selection.hasNext())
    Object key = selection.next();
    table.setRowKey(key);
    Object o = table.getRowData();
    material = (MATERIAL) o;
    System.out.println("Selected Material Desc = "+material.getEnumb());
    return null;
    Problem is that getSelectedRow method doesnt get new (edited) values, old values are still used.
    I have tried to use ActiveButton with same method and it works fine in that case. New values are selected from active row and inserted into object.
    JSF:
    <af:table var="row" rowSelection="single" columnSelection="single"
    value="#{ManageWO.material}" binding="#{ManageWO.materialTable}">
    <af:column sortable="false" headerText="E-number">
    <af:inputText value="#{row.enumb}" valueChangeListener="#{ManageWO.SaveMaterial}" autoSubmit="true"/>
    </af:column>
    <af:column sortable="false" headerText="Description">
    <af:inputText value="#{row.desc}" valueChangeListener="#{ManageWO.SaveMaterial}" autoSubmit="true"/>
    </af:column>
    </af:table>
    <af:activeCommandToolbarButton text="Save" action="#{ManageWO.EditData}"/>
    What is a correct place from where save method should be called to get new (edited) values from ADF table?
    Thanks.

    Did you look into the valueChangeEvent?
    It has oldValue and newValue attributes.
    public void SaveMaterial(ValueChangeEvent valueChangeEvent) {
    Object oldVal = valueChangeEvent.getOldValue();
    Object newVal = valueChangeEvent.getNewValue();
    // check if you see what you are looking for.....
    getSelectedRow();
    SaveMaterial(material);
    }Timo

  • Display values of a single field in a multiple rows in a table region

    Hi Tech-Gurus,
    I want to display values of a single field ( which is in a table region) in multiple rows and also need to restrict the values from decimal number. If i click save, then it will throw exception "Decimal not allowed".
    xxxxxx
    yyyyyy
    Reg.No
    1234
    5678
    7654
    I need to display the values of REG.NO in different rows like,
    1234
    5678
    7654
    and also need to validate as well against Decimal values.
    Please help me with the code how i will iterate ?

    Hi,
    I am assuming you are talking about displaying substrings from the Reg No in different rows. For this you would need to write a query which identifies the substrings and creates a separate row for each (ensure you choose values for all other columns in the table row). Kindly let me know if the understanding is incorrect.
    To validate against decimal value you can use the java code by checking the difference of the number and the number on which modulus has been applied. Hope that helps.
    Regards
    Sumit

  • How to get the value of the current form values after "save" in MD form

    Hi,
    I am trying to run a procedure using the form values right after I save the current records in a master-detail form. When I pass the value using p_session.get_value to the procedure, there is only null value passed. I checked the package body generated and found that the OnReset function runs immediately following the saving of the current records and this onReset function is called within the OnSave procedure. So when I save the current changes, I loose the values in the p_session. Any PL/SQL code I write after OnSave, does not get any p_session value.
    Interestingly, in case of just one table form, the OnReset is not within the OnInsert function and it is possible to get the p_session values. OnReset runs after OnInsert and within this two functions we can write any pl/sql code on the Insert button PL/SQL handler.
    I have the following questions:
    1. Why is the procedure written differently in case of master-detail form ? Why is the OnReset inside the OnSave ? How do we write codes which we want to execute before onReset and after OnSave ?
    2. I want to run a procedure after onSave and before OnReset. How do I do that ? Do I have to change the package manually ?
    3. If the above is not possible, I can also try to store the values I need to run the procedure before I save in some variable. How do I do that ? It seems I cannot declare variables to store session values inside the pl/sql event code on Save button, because it gives me error. The variable declaration code goes in between the begin and end of genesys.. procedure and that is not allowed in pl/sql
    Please help me with this. I definitely need to run a procedure after saving for almost all of my forms. Otherwise I am not sure what to do with my development. I am completely stuck with this. Thanks a lot for helping me out.
    Mainak

    Never mind. I found the answer.

  • How to call & pass values to custom page from seeded page table region

    Hi All,
    can anyone tell me how to call & pass values to custom page from seeded page table region(Attribute is not available in seeded page VO)
    it is urgent. plssss
    Regards,
    purna

    Hi,
    Yes, we do this by extending controller, but you can also try this without extending controller.
    1. Create Submit Button on TableRN using personalization.
    2. Set "Destination URI" property to like below
    OA.jsp?page=/<yourname>/oracle/apps/ak/employee/webui/EmpDetailsPG&employeeNumber={@EmployeeId}&employeeName={@EmployeeName}&retainAM=Y&addBreadCrumb=Y
    Give your custom page path instead of EmpDetailsPG.
    EmployeeId and EmployeeName are VO attributes(Table Region)
    If you dont have desired attribute in VO, then write logic in your custom page controller to get required value using parameters passed from URL path.
    In this case, only personalization will do our job. Hope it helps.
    Thanks,
    Venkat Y.

  • JEXP  Type wilth accc seq JEXC  in table 372  Value getting captured automa

    Hi Friends,
    JEXP  Type with acc seq JEXC  in table 372  Value getting captured automatically.
    372 Sales org./Ref.doc./Ref.item
    357 Country/Plant/Ctrl cod
    End user have put record in 357 table and when executing the sales order the record in being copied in order but once we save the reord the value for JEXP gets automatically captured and saved under 372 table for JEXP.
    can any one please throw some light on this????
    Reagrds/Ashu

    Hi,
    Suggest you to check each of the key combination in the condition record and check the validity dates.
    If there are condition records for more than one combination, then change the validity dates of all other condition record as old dates and only make the relevant condition records as either valid till current date or in to the future date.
    Hope this helps.
    Kind Regards
    Chakradhar
    Edited by: Paturi Chakradhara Rao on Jan 24, 2008 12:15 PM

  • How to get the column values from a BC4J View Table in UIXML?

    I am using a default UiXML Application for Order Entry system with Orders & Order Lines & Customers. I have a uix file OrdersView1_View.uix which displays (no updateable columns) all the Orders. How do I get the column value of a selected row in a BC4J Table (example:OrdersId) when a Submit button is pressed using UIXML or Java Classes?
    I appreciate any help on this.

    Hi,
    You need to use keyStamp, an example:
    <bc4j table name="orders">
    <bc4j:keyStamp>
    <bc4j:rowKey name="key" />
    </bc4j:keyStamp>
    Furthermore, you can automatically send the selected row key using the go event handler, so in the handlers section you could send the key to an orderInfo page:
    <event name="show">
    <!-- forward to the update page, passing
    the selected key as a page property -->
    <ctrl:go name="orderInfo" redirect="true">
    <ctrl:property name="key">
    <ctrl:selection name="orders" key="key" />
    </ctrl:property>
    </ctrl:go>
    </event>

  • ADF: How to get the attributes' values of one single row from a table?

    Currently I have a table with 3 attributes, suppose A,B and C respectively. And I've added an selectionListener to this table. That means when I select one single row of this table, I wish to get the respective value of A, B and C for that particular row. How do I achieve this?
    suppose the method is like:
    public void selectionRow(SelectionEvent se) {            //se is the mouse selection event
    .......??? //what should I do to get the values of A\B\C for one single row?
    Edited by: user12635428 on Mar 23, 2010 1:40 AM

    Hi
    Assuming you are using Jdev 11g.
    Try with this
    public void selectionRow(SelectionEvent se) {
    String val = getManagedBeanValue("bindings.AttributeName.inputValue");
    public static Object getManagedBeanValue(String beanName) {
    StringBuffer buff = new StringBuffer("#{");
    buff.append(beanName);
    buff.append("}");
    return resolveExpression(buff.toString());
    public static Object resolveExpression(String expression) {
    FacesContext facesContext = getFacesContext();
    Application app = facesContext.getApplication();
    ExpressionFactory elFactory = app.getExpressionFactory();
    ELContext elContext = facesContext.getELContext();
    ValueExpression valueExp =
    elFactory.createValueExpression(elContext, expression,
    Object.class);
    return valueExp.getValue(elContext);
    Vikram

  • How to get all minimum values for a table of unique records?

    I need to get the list of minimum value records for a table which has the below structure and data
    create table emp (name varchar2(50),org varchar2(50),desig varchar2(50),salary number(10),year number(10));
    insert into emp (name,org,desig,salary,year) values ('emp1','org1','mgr',3000,2005);
    insert into emp (name,org,desig,salary,year) values ('emp1','org1','mgr',4000,2007);
    insert into emp (name,org,desig,salary,year) values ('emp1','org1','mgr',7000,2007);
    insert into emp (name,org,desig,salary,year) values ('emp1','org1','mgr',7000,2008);
    insert into emp (name,org,desig,salary,year) values ('emp1','org1','mgr',7000,2010);
    commit;
    SELECT e.name,e.org,e.desig,min(e.year) FROM emp e,(
    SELECT e1.name,e1.org,e1.desig,e1.salary FROM emp e1
    GROUP BY (e1.name,e1.org,e1.desig,e1.salary)
    HAVING COUNT(*) >1) min_query
    WHERE min_query.name = e.name AND min_query.org = e.org AND min_query.desig =e.desig
    AND min_query.salary = e.salary
    group by (e.name,e.org,e.desig);With the above query i can get the least value year where the emp has maximum salary. It will return only one record. But i want to all the records which are minimum compare to the max year value
    Required output
    emp1     org1     mgr     7000     2008
    emp1     org1     mgr     7000     2007Please help me with this..

    Frank,
    Can I write the query like this in case of duplicates?
    Definitely there would have been a better way than the query I've written.
    WITH      got_analytics     AS
         SELECT     name, org, desig, salary, year
         ,     MAX (SALARY)  OVER ( PARTITION BY  NAME, ORG, DESIG)          AS MAX_SALARY
         ,     ROW_NUMBER () OVER ( PARTITION BY  NAME, ORG, DESIG, SALARY
                                    ORDER BY        year  DESC
                           )                              AS YEAR_NUM
           FROM    (SELECT 'emp1' AS NAME, 'org1' AS ORG, 'mgr' AS DESIG, 3000 AS SALARY, 2005 AS YEAR FROM DUAL UNION ALL
    SELECT 'emp1','org1','mgr',4000,2007 FROM DUAL UNION ALL
    SELECT 'emp1','org1','mgr',4000,2008 FROM DUAL UNION ALL
    SELECT 'emp1','org1','mgr',7000,2007 FROM DUAL UNION ALL
    SELECT 'emp1','org1','mgr',7000,2007 FROM DUAL UNION ALL
    SELECT 'emp1','org1','mgr',7000,2008 FROM DUAL UNION ALL
    SELECT 'emp1','org1','mgr',7000,2010 FROM DUAL UNION ALL
    SELECT 'emp1','org1','mgr',7000,2010 FROM DUAL)
    SELECT     name, org, desig, salary, year
    FROM     got_analytics
    WHERE     salary          = max_salary
    AND     YEAR_NUM     > 1
    Result:
    emp1     org1     mgr     7000     2010
    emp1     org1     mgr     7000     2008
    emp1     org1     mgr     7000     2007
    emp1     org1     mgr     7000     2007
    WITH      got_analytics     AS
         SELECT     name, org, desig, salary, year
         ,     MAX (SALARY)  OVER ( PARTITION BY  NAME, ORG, DESIG)          AS MAX_SALARY
         ,     ROW_NUMBER () OVER ( PARTITION BY  NAME, ORG, DESIG, SALARY
                                    ORDER BY        year  DESC
                           )                              AS YEAR_NUM
      ,     ROW_NUMBER () OVER ( PARTITION BY  NAME, ORG, DESIG, SALARY, Year
                                    ORDER BY        YEAR  DESC
                           )                              AS year_num2
         FROM    (SELECT 'emp1' AS NAME, 'org1' AS ORG, 'mgr' AS DESIG, 3000 AS SALARY, 2005 AS YEAR FROM DUAL UNION ALL
    SELECT 'emp1','org1','mgr',4000,2007 FROM DUAL UNION ALL
    SELECT 'emp1','org1','mgr',4000,2008 FROM DUAL UNION ALL
    SELECT 'emp1','org1','mgr',7000,2007 FROM DUAL UNION ALL
    SELECT 'emp1','org1','mgr',7000,2007 FROM DUAL UNION ALL
    SELECT 'emp1','org1','mgr',7000,2008 FROM DUAL UNION ALL
    SELECT 'emp1','org1','mgr',7000,2010 FROM DUAL UNION ALL
    SELECT 'emp1','org1','mgr',7000,2010 FROM DUAL)
    SELECT     name, org, desig, salary, year
    FROM     got_analytics
    WHERE     salary          = max_salary
    AND     YEAR_NUM     > 1
    AND YEAR_NUM2 < 2
    Result:
    emp1     org1     mgr     7000     2008
    emp1     org1     mgr     7000     2007

  • KINAK field in Table KONV not getting updated with value W

    Hi,
    I have a PO where I am deleting a line item.
    After I delet line item the field KINAK in table KONV gets updated with value W.
    But I am getting instance where in some cases the field KINAK is not getting updated.
    The result is deleted line item is getting populated in PO output also.
    Regards
    Nandiini

    KINAK is updated only when a Condition is inactive ! So when a item is deleted the condition becomes inactive and gets updated with 'W' which means statistical(not to be counted)
    A     Condition exclusion item
    K     Inactive due to calculation basis/shipping material type
    L     Condition exclusion header or inactive at header level
    M     Inactive due to manual entry
    T     Inactive at header level
    W     The document item is statistical
    X     Inactive via formulae of incorrect
    X     Inactive via formulae of incorrect
    Y     Inactive because of subsequent price

  • Getting multiple row value on valuechange of selectBooleanCheckbox in table

    Hello All,
    I am using jDeveloper 11.1.1.5. I have a java class which is returning me a list. I have created a data control of my class and I am using it on my page as a table.
    On my page I have inserted a text box selectedamount. In my table there are 4 columns Type, Qty, Amount and one boolean value select. I have changed column select to selectBooleanCheckbox. and I have specified its value as true(when selected) and false(when deselected). Which is getting reflected in my pagedef file.
    There are 4 rows coming in table and displaying properly.
    Now my requirement is on value change of selectBooleanCheckbox if user selects the rows I want to add the Amount for the selected row and I have to set it to the text box selectedamount.
    On value change of selectBooleanCheckbox I have written a method. Code snippet is like this:
    +public void valueChanged(ValueChangeEvent valuechangeevent) {+
    +if (valuechangeevent.getNewValue() == valuechangeevent.getOldValue()) {+
    System.out.println("new value is same as old value");
    +} else {+
    System.out.println("************************new value is other than old value**********************************");
    DCBindingContainer bindings =(DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding iter = bindings.findIteratorBinding("NAME OF MY ITERATOR");
    float temp2 = 0;
    Row currentRow ;
    int count = (int)iter.getViewObject().getEstimatedRowCount();
    for (int i=1; i<=count;i++) {
    currentRow =   iter.getRowAtRangeIndex(i);
    +if(currentRow != null) {+
    if(true == currentRow.getAttribute("select"))
    +{+
    temp2= temp2 + Float.parseFloat(currentRow.getAttribute("totAmount").toString());
    System.out.println("value of total amount after adding is :: "+ temp2);
    +}+
    +}+
    +}+
    After this I am setting temp2 to selectedamount textbox.
    But I am not getting the desired value in the textbox.
    Is there any other method I can achieve this.
    Thanks
    Navin K

    Inside f(currentRow != null) When I added
    System.out.println(currentRow.getAttribute("select"));
    It is showing as null.
    So select attribute is not getting assigned as true or false while checking and unchecking selectboolean checkbox.
    Am I missing something ?

Maybe you are looking for

  • Can multiple devices with the same apple id use airdrop

    Can I use Airdrop between multiple devices sharing the same Apple ID?

  • Apps no longer in App Store

    Hi, my iPhone crashed last week so i had to restore it. Now I want do download all my purchased Apps again only to find out that some of them are not available in the App Store anymore. I'm talking about the applications: Labyrinth 2 - 38 SEK (5 USD)

  • How do I add music to a slideshow of pics?

    I have just made a slideshow of pics in Keynote (with some text of the pics), and I am wanting to add some music that I have in iTunes to play in the background while the pictures are on automatic transition. I have tried dragging the song into Keyno

  • How do I e-mail videos loaded into iPhoto?

    I recorded my child's recital and now want to e-mail family and friends. However, I am not able to do so. How do I go about? Thanks. Be well. Miriam

  • There is a "?" in my dock.

    I tried to remove Spotify from the dock.  It left a "?" greyed out.  Can't get rid of it.  I also cannot add the new Spotify icon to the dock.  The dock won't let anything in or out.