cancel
Showing results for 
Search instead for 
Did you mean: 

iview personalization

Former Member
0 Kudos

Hi

I have a dropdownlistbox in my application.While creating an iview from that deployed par file, the end user should be able to personalize the default value of that dropdownlistbox.

How to achieve this? Its so urgent.

Thanks

Yoga

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi There,

If your dropdown values are static, you can easily achieve this as follows:

Edit the component-profile section of the portalapp.xml as follows:

<component-profile>
...
<property name="color" value="blue">
          <property name="personalization" value="dialog"/>
          <property name="dialogRow" value="3"/>
          <property name="type" value="select[blue,red,green]"/>
</property>
...
</component-profile>

When you click on the 'personalize' option on an iView this opens.. a window showing a dropdown menu.. having the 3 values (blue,red,green)

You can access the selected value in the dropdown as follows (in doContent() method)::

response.write(" My Color=="+request.getComponentContext().getProfile().getProperty("color"));

This would print: <i>My Color== blue</i> when the iView loads.

Hope it helps!

Regards,

SK

<i>PS: Plz consider rewarding points if helpful!</i>

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

How about making it a iView property.. While creating a iview..u can set this property for the iview..

access this property value in the code and then use that value to set the default value in the drop down..

Have not tried this.. But i guess it logical and possible..

regards

Bharathwaj