on 04-12-2005 9:42 AM
Hi,
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?
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"?>
<application>
<application-config>
<property name="PrivateSharingReference" value="com.sap.portal.htmlb"/>
</application-config>
<components>
<component name="display">
<component-config>
<property name="ClassName" value="com.ust.table.display"/>
<property name="SecurityZone" value="com.ust.table/high_safety"/>
</component-config>
<component-profile>
<property name="System Alias" value="BWDEV" />
</component-profile>
</component>
</components>
<services/>
</application>
to get the property "System Alias" of the component.
IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
String system = request.getComponentContext().getProfile().getProperty("System Alias");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
Regards
Gaurav Gandhi
PS : Reward points if helps
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.