Error when create DynamicAttributesPanel component programmatic?

Hi team,

We use DynamicAttributes add-on.
In view we want to create DynamicAttributesPanel component programmatic.
This is our code:
image
Error at this function: dynamicAttributesPanel.setInstanceContainer(assetPartDc);
Why setInstanceContainer require only InstanceContainer of Object ?
Please help me!

It’s my mistake,when create data container.
Here is correct code: InstanceContainer assetPartDc = dataComponents.createInstanceContainer(AssetPart.class);
Thanks all!

1 Like