Hi Ashvin,
If I understand you correctly, you would like to create a portal application, create from it an iView and put it in the portal.
Next when launching this iView, you would like to read some iView properties and react accordingly in the application , is that correct?
For this purpose , you can indeed develop a portal application with NWDS, then in the doContent of the portal application, read the profile by using this:
IPortalComponentContext componentContext = request.getComponentContext();
IPortalComponentProfile profile = componentContext.getProfile();
String myprop = profile.getProperty(property_name);
replace property_name with the property you would like to read.
After that, for putting it in the head section , you can use the following:
HtmlDocument htmlDocument = null;
IPortalResponse portalResponse = (IPortalResponse) request.getValue( IPortalResponse.class.getName() );
if ( portalResponse instanceof PortalHtmlResponse )
{ PortalHtmlResponse portalHtmlResponse = (PortalHtmlResponse) portalResponse; htmlDocument = portalHtmlResponse.getHtmlDocument();
}
htmlDocument .getHead().getHtmlElements().add( new HtmlString( "This will be inserted into head section of html") );
Deploy this portalapp into EP and create an iView from it.
Best Regards,
Tal