Extending BDE
-
Create an Extension for the BDE.
For Example: If a CDF field is present (with Description as Available) for CorporateDocuments Component of LegalInformation_CLB.
-
Declare the variables in the Declaration Section of BDE extension.
For example: long property.node
long name.node
- Enable the Use Concept Name option for enumeration type CDF fields.
-
Copy the code in the required component (in the Example
CorporateDocuments)
Note: You must specify the element name which should be as the field description of CDF.
-
Create a node with property.
property.node = xmlNewNode("Property")
A new node name.node is created with parent as property.node.
name.node = xmlNewNode("NameValue", XML_ELEMENT, property.node)
After name.node is created, the Name for the respective CDF field label is displayed as the name.
xmlSetAttribute (name.node, "name", "Available")
This code generates the CDF_Placement tag. The third argument of the code is the prefix text that appears as the Field Label on the portal screen when the Programmers Mode is enabled.
The CDF is placed corresponding to the field that is mentioned.
Therefore, in this example the CDF field Available is placed corresponding to the DocumentDescription Field.xmlSetAttribute(name.node,"CDF_Placement","DocumentDescription")
This XML is added to the response
addXML(property.node)
-
Create a node with property.