Skip to Content
avatar image
Former Member

About adding SC in NWDI for CRM5.0 EP

For CRM5.0 EP project, I set up NWDI and I'm going to create Iview with WDJ .

To create Iview with WDJ in NWDI,

which SC(SoftwareComponent) should I add in NWDI?

Regards bk Kim

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Aug 23, 2007 at 03:36 AM

    chk it

    http://help.sap.com/saphelp_nw04/helpdata/en/df/eb5c42da4de92ce10000000a1550b0/frameset.htm

    /thread/87789 [original link is broken]

    Object user = request.getUser();

    Hashtable env = new Hashtable();

    env.put("java.naming.factory.initial", "com.sapportals.portal.pcd.gl.PcdInitialContextFactory");

    env.put("java.naming.security.principal", user);

    INewObjectDescriptor iDesc = null;

    IiViews iSrv = (IiViews) PortalRuntime.getRuntimeResources().getService("com.sap.portal.ivs.iviewservice.iViewsSrv");

    try {

    Context iCtx = new InitialContext(env);

    Context iviewCtx = (Context) iCtx.lookup("portal_content/sample/iViews);

    iDesc = (INewObjectDescriptor) iSrv.instantiateDescriptor(

    CreateMethod.DELTA_LINK, sampleiViewName ,

    (IPrincipal) user);

    }

    catch (NamingException ne) {

    //logger component statements

    }

    Add comment
    10|10000 characters needed characters exceeded