Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Pass iView property as parameter to JSP in PAR file.

Hi All,

I have a custom created PAR file in which there is a JSP page there is a variable which I need to provide to users as a configurable property of the iView. So that when a user configures a value to that defined property to the iView, my JSP from the PAR should automatically pick this value and carry on the processing further as required.

I have done some research on my behalf, which even though turned out just half of the solution, but still even then the code does not seem to work. For reference, please see link below:

[Reference Document|]

I need this with very critical urgency, please, kindly help.

Thanks and Regards,

Abhishek Goel.

Former Member

Hi Abhishek,

How do you know that you are not getting the value..? I don't see any write or print stament through which you are printing the value.

Forget about the button for the time being and just write the following in your jsp to print the value.

IPortalComponentRequest  currentRequest   = (IPortalComponentRequest)pageContext.getAttribute(javax.servlet.jsp.PageContext.REQUEST);
IPortalComponentContext  componentContext = currentRequest.getComponentContext();
IPortalComponentProfile  profile          = componentContext.getProfile();
String xyzVal = profile.getProperty("xyz");
Value stored in component profile is <%= xyzVal  %>

Maintain the component profile in PORTALAPP.XML as mentioned earlier.

Let me know if you face any issues.



0 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question