|How to add User Defined Property and Named Expression programmatically? [message #1002521]
||Fri, 18 January 2013 14:02
Registered: April 2012
we are struggling to find the right code using Design Engine API to add User Defined Property and Named Expressions to an element:
DataItemHandle control = (DataItemHandle) elementFactory.newDataItem("COLUMN1");
Both setProperty() and setExpressionProperty() throw exceptions that the property name is invalid. Looks like you have to add it first - I found addUserPropertyDefn() method for simple properties but even after I add the property:
UserPropertyDefn p = new UserPropertyDefn();
control.setProperty("MyProperty", "test"); throws another exception saying that value type is invalid...
And I cannot find any API method that would allow you to add a NamedExpression as opposed to User Defined Property. Could somebody who knows API help with that?
Powered by FUDForum
. Page generated in 0.01609 seconds