Quantcast
Channel: SCN : Discussion List - SAP Enterprise Portal : Administration and Development
Viewing all articles
Browse latest Browse all 2686

Set Iview Property

$
0
0

Hi All,

 

I m trying to set the property of an iview like transaction code in a transaction iview...i found many docs to make that possible via EPCD..what i need is to set the iview property..

i have written some code also for that..

 

          Hashtable env = new Hashtable();

          env.put(IPcdContext.SECURITY_PRINCIPAL,request.getUser());

          env.put(Context.INITIAL_CONTEXT_FACTORY,IPcdContext.PCD_INITIAL_CONTEXT_FACTORY);

          env.put(Constants.REQUESTED_ASPECT,     PcmConstants.ASPECT_SEMANTICS);

          InitialContext ctx = null;

          DirContext dirCtx;

          List iViewList = null;

          ctx = new InitialContext(env);

 

com.sap.portal.pcm.iview.IiView result =  (com.sap.portal.pcm.iview.IiView)ctx.lookup("portal_content/RnDCoKe/ParameterParNew");

 

I am getting a typecasting exception in the above code..

 

when i tried to display the returned object it is showing <b>com.sap.portal.pcm.iview.admin.AttributeSetiView</b>

 

is there anything wrong in my programming??

 

do i need to set any property in portal??

 

pls help me as this is so urgent to me...

 

Thanks..

 

AD


Viewing all articles
Browse latest Browse all 2686

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>