3 Replies Latest reply: May 7, 2013 8:21 AM by Suresh Karunarathne RSS

    get the value multiplied

    Prasad K T
      Hi,

      Am using jdeveloper 11.1.1.6.0.

      I have dragged and dropped MedReimLine Table as a form in my jspx page. The form contains 3 attributes which is described below

      Costs 5
      Units 2
      Total Costs 10

      Total Costs = Costs * units.

      This is my value change listner code for Units attribute
              BindingContext bctx = BindingContext.getCurrent();
              BindingContainer bindings = bctx.getCurrentBindingsEntry();
              DCIteratorBinding dcIter = (DCIteratorBinding) bindings.get("MedReimLineView1Iterator");
              Row vor = dcIter.getCurrentRow();
              System.out.println ("Costs :"+vor.getAttribute("MrlCosts")+"Units :"+vor.getAttribute("MrlTotUnits"));  // I got null value for Units
              Integer i;
              i = ((Number)vor.getAttribute("MrlCosts")).intValue();
              Integer i1;
              i1 = ((Number)vor.getAttribute("MrlTotUnits")).intValue();
              Integer i2;
              i2 = i*i1;
              vor.setAttribute("MrlTotCosts", i2);
      I have set AutoSubmit = True for Costs and units.

      My scenario is When my user enters Costs and Units Total Costs must be calculated.

      But when i perform the operation i got null value for Units.

      Kindly help me to fix with this issue.

      Regards,
      Prasad K T.