on 12-06-2005 6:03 AM
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
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.