Extending BDE

  1. Create an Extension for the BDE.

    For Example: If a CDF field is present (with Description as Available) for CorporateDocuments Component of LegalInformation_CLB.

  2. Declare the variables in the Declaration Section of BDE extension.

    For example: long property.node

    long name.node

  3. Enable the Use Concept Name option for enumeration type CDF fields.
  4. 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.
    1. 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 is given with tag as 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)