Content Management and Capture

 View Only
  • 1.  ICN doc class custom property label change

    Posted Thu December 17, 2020 10:53 AM

    Hi,

    In my application, I have custom property C1. I assigned this property to document classes D1 and D2. I have created search template S1(for doc class D1) and search template S2(for doc class D2).

    Requirement: I want below label for the custom property C1.

    1.Search template S1 - Label should be Temp

    2.Search template S2 - Label should be Temp Name

    What I have done so far:

    1. I have created an EDS. EDS have below files.

    D1_PropertyData.json : Below is the content of the file.

    [{

    "symbolicName": "C1"

    }]

    D2_PropertyData.json : Below is the content of the file.

    [{

    "symbolicName": "C1"

    }]

    ObjectTypes.json : Below is the content of the file.

    [

    {"symbolicName": "D1"},

    {"symbolicName": "D2"}

    ]

    2. I have created a configuration file called config.xml. This contains document class and field label mapping. Below is the example.

    <DOCUMENTCLASSES_AND_FIELDS_LABELS>

    <DOCUMENTCLASS SYMBOLICNAME="D1">

    <FIELD SYMBOLICNAME="C1" LABEL="Temp"/>

    </DOCUMENTCLASS>

    <DOCUMENTCLASS SYMBOLICNAME="D2">

    <FIELD SYMBOLICNAME="C2" LABEL="Temp Name"/>

    </DOCUMENTCLASS>

    </DOCUMENTCLASSES_AND_FIELDS_LABELS>

    3.EDS Logic: Whenever the search template is opened I'm checking if the object type(document class) of the search template is matching to document lass in config.xml.

    If yes, setting the corresponding label from the xml file. Below is the sample code.

    loOverrideProperty.put("displayName",lsFieldLABEL);

    lsFieldLABEL is the label from the xml file.

    If no, do nothing.

    Output: The code is running without errors. But the label of the search template property C1 is not getting changed.

    Can you please let me know what is wrong with my code. or Please suggest solution for my requirement.

    Regards,

    Ravi



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 2.  RE: ICN doc class custom property label change

    Posted Fri December 18, 2020 07:50 PM

    Hi Revi, to change the property's display name set the "label" attribute like so: overrideProperty.put("label", "Custom name");



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 3.  RE: ICN doc class custom property label change

    Posted Tue December 22, 2020 09:59 AM

    Hi Gabriel,

    It works perfect. Thanks. Btw, is it possible to check in EDS which search template(S1 or S2) is being used?



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 4.  RE: ICN doc class custom property label change

    Posted Mon December 28, 2020 05:46 PM

    EDS does not know which search template is being processed.



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration