Discussion

Passing property from HTML data gadget

Hi,
I am writing on HTML ( gadget in Portal ) , in that i am calling one activity and in that activity i am calling list view

now with this HTML i want to pass property value ..so that i can map the same property to fetch the data based on the value of the property

How to pass property from HTML to activity or List view

Please help

I am working V5.5

Regards
Jatin S

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Comments

Keep up to date on this post and subscribe to comments

October 13, 2010 - 11:57pm

Hi Jatin,

Use something like this in your HTML:

<%
ParameterPage newParamsPage = new ParameterPage();
String paramName = "x";
String paramValue = tools.findPage(<page on which the property is>).getProperty(<property Name>).getStringValue();
newParamsPage.putParamValue(paramName, PropertyInfo.TYPE_TEXT, paramValue);
HashStringMap params = new HashStringMap();
params.putString("pxObjClass", "Rule-Obj-Activity");
params.putString("pyClassName", activityClass);
params.putString("pyActivityName", activityName);
tools.doActivity(params, myStepPage, newParamsPage);

%>

Hope this helps...

Regards
Sid