How To in Jdeveloper ADF – To call a VO from another VO or from AM method


Scenario:
How to set an Attribute value from one VO into another VO?

Solution: 

//in you Application module Impl file have the follwing code written inside the method which will set the value for another vo
//lets say UploadView is the View object that you would want to set the value
ViewObject vo = findViewObject("tUploadView");
//if its not in Application Module, you will have to get the VO instance either from iterator if you are using this code in the bean
//get the rowset of UploadView
RowSet rs = vo.getRowSet();
//iterate through
while(rs.hasNext()){
//get the row
Row r = rs.next();
//set the value
r.setAttribute("ValueItem", value); //ValueItem is the Attribute that you want to set
}
}
Advertisements

8 thoughts on “How To in Jdeveloper ADF – To call a VO from another VO or from AM method

  1. Zandra

    It seems like you know a good deal with regards to this specific subject and it demonstrates thru this particular blog post,
    labeled “How To in Jdeveloper ADF – To call a VO from another VO or from AM method | They
    point the finger at me.. again!”. Thx -Fern

    Reply
  2. Elsa

    I really blog likewise and I am creating something alike to this particular blog, “How To in Jdeveloper ADF – To call a VO from another VO or
    from AM method | They point the finger at me..
    again!”. Do you really mind if perhaps I personallyuse a bit of of your
    personal tips? Thanks for your effort -Gordon

    Reply
  3. Adrienne

    This post, “How To in Jdeveloper ADF – To call a VO from another VO or
    from AM method | They point the finger at me.. again!
    ” ended up being superb. I’m producing out
    a replicate to show my good friends. Thanks,Adam

    Reply
  4. Raphael

    Your post, “How To in Jdeveloper ADF – To call a VO from another VO or from AM method | They
    point the finger at me.. again!” was worth writing
    a comment down here in the comment section! Really needed
    to announce you really did a terrific work. Thanks for your time ,Damien

    Reply
  5. Christopher

    “How To in Jdeveloper ADF – To call a VO from another VO or
    from AM method | They point the finger at me.. again!” was a excellent posting.
    If it possessed even more images this should be even more effective.
    Thank u ,Jude

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s