Content Management and Capture

Content Management and Capture

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
Expand all | Collapse all

ICN EDS RequestMode("inProgressChanges") is not triggering

  • 1.  ICN EDS RequestMode("inProgressChanges") is not triggering

    Posted Fri January 08, 2021 08:33 AM

    Hi,

    Background: I have two search templates called S1(Docclass1) and S2(Docclass2) and two desktops called Desk1(for search S1) and Desk2(for search S2) in my navigator application.

    Requirement:

    S1(Docclass1) has two properties P1(Static choice list) and P2(Custom choice list). Based on the value in P1, need to populate Choice List for P2. The same requirement for S2 but fields are different.

    What I have done so far:

    I have configured Docclass1 and Docclass2 in ObjectTypes.json.

    I have created PropertyData.json file for each document class. Set the dependentOn(P1) property for the P2.

    In doPost(), Applying the customizations based on desktop(for which search template is opened). Below is the sample code.

    String lsDesktop = (String) loClientContext.get("desktop");

    String lsRequestMode = jsonRequest.get("requestMode").toString();

    if(lsDesktop.equalsIgnoreCase(Desk1)) {

    if (lsRequestMode.equals("inProgressChanges")) {

    //apply the customization for Docclass1

    }

    }else if(lsDesktop.equalsIgnoreCase(Desk2)) {

    if (lsRequestMode.equals("inProgressChanges")) {

    //apply the customization for Docclass2

    }

    }

    Issue:

    Desk1: The customizations working as expected. No issue here.

    Desk2: The customizations not working. The reason is, RequestMode "inProgressChanges" is not triggering. Whenever I open the S2 and edit the value of property P1, I could see following RequestModes one after the other "initialExistingObject" and "initialNewObject".

    I have compared the securities between Docclass1 and Docclass2. Also compared the securities between S1 and S2. Security part looks good.

    Can you please help me to find the root cause.



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 2.  RE: ICN EDS RequestMode("inProgressChanges") is not triggering
    Best Answer

    Posted Fri January 08, 2021 06:24 PM

    It looks like the the EDS configuration for DocClass2 may not be set up correctly. Check the property data JSON to make sure that there are no typos in the attribute names or values, like the symbolic names, and that P1 includes "hasDependentProperties": true.



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 3.  RE: ICN EDS RequestMode("inProgressChanges") is not triggering
    Best Answer

    Posted Tue January 12, 2021 11:10 AM

    Hi Gabriel,

    Thanks for the reply. I already fixed it. As you said, the property "hasDependentProperties": true was missing. I added. It works fine now.



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration