Showing results for 
Search instead for 
Did you mean: 

how to define own properties

Former Member
0 Kudos


I would like to know how to create own properties of own iView which can be set on EP after deploying.

For example: on URL iView can be set URL, request method, etc.

How to create parameters like these?

View Entire Topic
Former Member
0 Kudos

Hi Mrkvica,

You can add properties in component profile of portalapp.xml file which can be modified later.

Check out the following xml and the java code.

<?xml version="1.0" encoding="utf-8"?>
    <property name="PrivateSharingReference" value=""/>
    <component name="display">
        <property name="ClassName" value="com.ust.table.display"/>
        <property name="SecurityZone" value="com.ust.table/high_safety"/>
        <property name="System Alias" value="BWDEV" /> 

to get the property "System Alias" of the component.

IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
    	String system = request.getComponentContext().getProfile().getProperty("System Alias");

Former Member
0 Kudos

Thanks this works.

Do you know how to make this properties look like in URL iView? (ie. not only plain text, predefined options...)

Former Member
0 Kudos

Hi Mrkvicka,

Sorry i didn't undertand your post? Do you mean you want drop down option for your iview properties?

Former Member
0 Kudos

yes, drop down option, tables...

Former Member
0 Kudos

Hi Mrkvica

In iView editor, you can only get controls like Radio Button, DropDown, Date Navigator and input boxes.

For getting that, in ur portalapps.xml, for any property in which you want, set the Type property.Something like this :

<property name="HorizontalAlignment" value="CENTER">

<property name="category" value="some category"/>

<property name="personalization" value="none"/>

<b><property name="type" value="select[CENTER,CHAR,JUSTIFY,LEFT,RIGHT]"/></b></property>

for dropdown set the Type as Select

for radio button set the type as bolean (you will only get yes/no and not ur desired values)

for date set the Type as Date

One more point here is that, whenever i have tried using the dropdown control, it work fine in the personalization window but in the iViews editor, when we use dropdown and if i change the dropdown value and then save the value, the Dropdown control breaks and gets converted to a simple text box!!

It was happening in SP2 and SP9. Check it is happening with you also?


Gaurav Gandhi

PS : Reward points if helps

Former Member
0 Kudos

Thank you, this is what I`m looking for.

After saving dropdown value it`s still a dropdown control on SP9 Win.