Creating ViewObject(VO) Dynamically


Write the Below code in Process Request
import oracle.apps.fnd.framework.server.OAViewDef
import oracle.apps.fnd.framework.OAViewObject
    AdminRegAMImpl am=(AdminRegAMImpl)pageContext.getApplicationModule(webBean);
    if(am!=null)
    {
        OAViewDef viewdef=(OAViewDef)am.getOADBTransaction().createViewDef();
    viewdef.setSql(“select ename from scott.emp”);
         OAViewObject vo=(OAViewObject)am.createViewObject(“SampleVO1”,viewdef);
//SampleVO1 is ViewObject Name
               }

About pacesettergraam

A good and realistic person

Posted on August 28, 2013, in OAF, Oracle, Uncategorized. Bookmark the permalink. Leave a comment.

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

%d bloggers like this: