I searched on forum how to entend/modify defintion of import Id in custom layer ...i found a lots of post but could not find the answers.
So i want to share one solution/update which i found in the first chapter of WDK development guide .Experts please correct me if missed any thing.
If you are Extending or modifying an XML definition in a configuration file that contains more than one
definition e.g. import_docbaseattributelist.xml where you will find two definitions for import.You should follow the followingn approach.
Filename or primary element name plus scope within the referenced definition.
Syntax for Extending
<attributelist id="import" extends="import:application='webcomponent' type='dm_document'">
If you extend or modify an XML definition in a configuration file that contains more than one
definition, you must specify the scope in the extends or modifies clause.
Syntax for Modifying :
<action modifies="importrendition:application=’webcomponent’
type=’dm_sysobject’"/>
Note: You wil get java.lang.IllegalStateException when you try to modify id like blow
<attributelist id="import" modifies="import:application='webcomponent' type='dm_document'">
As id attribute is not allowed in modification element: