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