Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Developing Analytics Applications
Setting defaultValue type of ScalarParameterHandle
Migrateduser
<p>I want to set the defaultValue type of a ScalarParameterHandle with the DesignEngineAPI.</p><p> </p><p>The resulting rptdesign should have something like this:</p><pre class="_prettyXprint"><scalar-parameter name="param1" id="74"> <property name="isRequired">false</property> <property name="dataType">dateTime</property> <simple-property-list name="defaultValue"> <value type="javascript">new Date()</value> </simple-property-list> <property name="controlType">text-box</property></scalar-parameter></pre><p>I tried something like this:</p><p> </p>
<pre class="_prettyXprint">ScalarParameterHandle scalarParameter = elem.newScalarParameter("param1");scalarParameter.setValueType(DesignChoiceConstants.PARAM_VALUE_TYPE_STATIC);PropertyHandle valuePropHandle = scalarParameter.getPropertyHandle(ScalarParameterHandle.DEFAULT_VALUE_PROP);valuePropHandle.setStringValue("new Date()");</pre><p> </p><p>Hope someone can help me...</p><p> </p><p> </p><p> </p>
Find more posts tagged with
Comments
There are no comments yet