Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
DatasetParameter binding to table using DEAPI
mohammadgh
Hi,
I want to add a dataset parameter binding to a table .
how i shoud do it?
i tried this code , but no way!!!
PropertyHandle set = table
.getPropertyHandle(TableHandle.DATA_BINDING_REF_PROP);
OdaDataSetParameter compCol = StructureFactory.createOdaDataSetParameter();
compCol.setName("test");
compCol.setDataType(DesignChoiceConstants.COLUMN_DATA_TYPE_STRING);
compCol.setDefaultValue("1");
set.addItem(compCol);
Any help will be greatly apreciated .
thanks.
Mohammad
Find more posts tagged with
Comments
JasonW
Mohammad,
If you already have the dataset parameter created then you need to bind it to the table using:
ParamBinding tableBinding = StructureFactory.createParamBinding( );
tableBinding.setParamName( "param1" );
tableBinding.setExpression("whatever expression you want to use");
PropertyHandle tableBindingHandle = tableHandle.getPropertyHandle( TableHandle.PARAM_BINDINGS_PROP );
tableBindingHandle.addItem( tableBinding );
Jason
mohammadgh
Thanks for your reply Jason.
Regards,
Mohammad