Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to fetch a particular row from view object?

Divya MathewMar 22 2016 — edited Mar 22 2016

hi,

I have a doubt  on retrieve a row from a ViewObject based on  given ID. I have written a method  in AppModuleImpl class. Here based on usid , i want to get the row from customVo, and its returning a null value inspite of the value being present in the DB . Help me to find solution for this.

public void revDragDropAction() {

{

        ViewObject customVO = this.getSprintUserstoryViewVO1();

        ViewObject usSprintVO = this.getPmpUserstorySprintView1();

        Row drag = usSprintVO.getCurrentRow();

      

        BigDecimal usid= (BigDecimal)drag.getAttribute("UsId");

       

        // created the key object

        Key key = new Key(new Object[] { usid});

        System.out.println("key value last " + key);

        Row k = customVO.getRow(key);

        if(k!=null)

        {

      

        k.setAttribute("UsStatus", "N");

        System.out.println("Row key value " + k);

       }

  this.getDBTransaction().commit();

}

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 19 2016
Added on Mar 22 2016
3 comments
574 views