cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically hiding iviews at runtime in portal..

Former Member
0 Kudos

Hello SDN

I have a requirement to Hide 3 iviews assigned to a Page

such that

these views get set to invisible mode for few users on the base of their ip adresses.

IThis is probably possible...

Please throw some light on this..

Abstract portal component coding required for the same..

Experienced inputs will be of gr8 help..

Regard$....

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Chetna,

I do not think this can be possible as this means that you want to change the iView property from your portal component. As the portal components are embedded in an iView which acts as the content area and it should not be possible to change the iView property from the portal component.

Yes, one thing you can do is, you can have 2 jsps in your par file, one with the conent and other a blank one. And when you check if the request is coming from the blocked ip and forward the request to blank jsp otherwise to the main jsp with content.

Regards

Mukesh

Former Member
0 Kudos

Hi Mukesh

That's a good idea..

Can u throw some more light on it...

Especially how to do Redirection to other jsp...????

Regard$

Former Member
0 Kudos

Hi Chetna,

In your portal component you can form the logic and based on the condition you can send the control to your respective jsp. You can set the jsp page using the code

If (ip = XXX)

this.setJspName("abc.jsp");

else

this.setJspName("def.jsp");

you can find further details of how to forward the control in the below url

Regards

Mukesh

Answers (2)

Answers (2)

Former Member
0 Kudos

NO WAY OUT

Former Member
0 Kudos

Any New Suggestions?????????

Former Member
0 Kudos

Hi Chetna,

Instead of hard coding, you can also put the list of ips in portalapp.xml, to avoid hard coding.

Regards

Mukesh

Former Member
0 Kudos

That we can't do..

list is too large....