On the Case entity, the KB search is embedded as part of the Social Pane:
Now on a custom entity, after you have enabled it for Knowledge Management (done via Settings >> Service Management >> Embedded Knowledge Search), you have to add the KB control on to the form:
But, what if you wanted to add make it look like the Case entity, where the KB Search is part of the Social Pane? The “KB Search” tab does not show up as part of the properties of the Activities Tab.
The only way I have found to get it on the form is to manually edit the FormXML so that it shows up and then edit it via the form editor.
Here are the steps:
- Make sure you have the activities/social pane control on your form (if not, add it – its called the Time Line control).
- Give it a unique name (i called it “Timeline_1234”)
- Create a new solution and add the entity to the solution.
- In the next screen, make sure you select only the form in question and uncheck “Include entity metadata” and “add all assets”
- Dont include any required components (on the next screen).
- Export the solution as an unmanaged solution.
- Unzip the solution and open the “customizations.xml” file.
- Search for the control name (in this case it was “Timeline_1234”)
- It should look like this:
<parameters> <UClientUniqueName>Timeline_1234</UClientUniqueName> <UClientModules>Activities,Notes</UClientModules> <UClientDefaultModuleForCreateExperience>Notes</UClientDefaultModuleForCreateExperience> <UClientShowFilterPane>true</UClientShowFilterPane> <UClientExpandFilterPane>false</UClientExpandFilterPane> <UClientOrderBy>descending</UClientOrderBy> <UClientRecordPerPage>10</UClientRecordPerPage> <UClientSortActivitiesByValue>modifiedon</UClientSortActivitiesByValue> <UClientDisplayActivityHeaderUsing>defaultformat</UClientDisplayActivityHeaderUsing> <UClientCreateActivityUsing>quickcreateform</UClientCreateActivityUsing> <UClientDisplayActivityUsing>defaultfields</UClientDisplayActivityUsing> <DefaultTabId>ActivitiesTab</DefaultTabId> <OrderByActivityWall>descending</OrderByActivityWall> <SortActivityWall>modifiedon</SortActivityWall> <EmailConversationView>true</EmailConversationView> <ShowArticleTab>false</ShowArticleTab> <SelectDefaultLanguage>00000000-0000-0000-0000-000000000000</SelectDefaultLanguage>
</parameters> |
- Update: ShowArticleTab to true
- Add the following:
<FilterResults>3</FilterResults>
<AllowChangingFiltersOnUI>false</AllowChangingFiltersOnUI>
<ShowLanguageFilter>false</ShowLanguageFilter>
<ShowDepartmentFilter>false</ShowDepartmentFilter>
<EnableAutoSuggestions>false</EnableAutoSuggestions>
<NumberOfResults>4</NumberOfResults> - It should look like this:
<parameters> <UClientUniqueName>Timeline_1234</UClientUniqueName> <UClientModules>Activities,Notes</UClientModules> <UClientDefaultModuleForCreateExperience>Notes</UClientDefaultModuleForCreateExperience> <UClientShowFilterPane>true</UClientShowFilterPane> <UClientExpandFilterPane>false</UClientExpandFilterPane> <UClientOrderBy>descending</UClientOrderBy> <UClientRecordPerPage>10</UClientRecordPerPage> <UClientSortActivitiesByValue>modifiedon</UClientSortActivitiesByValue> <UClientDisplayActivityHeaderUsing>defaultformat</UClientDisplayActivityHeaderUsing> <UClientCreateActivityUsing>quickcreateform</UClientCreateActivityUsing> <UClientDisplayActivityUsing>defaultfields</UClientDisplayActivityUsing> <DefaultTabId>ActivitiesTab</DefaultTabId> <OrderByActivityWall>descending</OrderByActivityWall> <SortActivityWall>modifiedon</SortActivityWall> <EmailConversationView>true</EmailConversationView> <ShowArticleTab>true</ShowArticleTab> <SelectDefaultLanguage>00000000-0000-0000-0000-000000000000</SelectDefaultLanguage> <FilterResults>3</FilterResults> <AllowChangingFiltersOnUI>false</AllowChangingFiltersOnUI> <ShowLanguageFilter>false</ShowLanguageFilter> <ShowDepartmentFilter>false</ShowDepartmentFilter> <EnableAutoSuggestions>false</EnableAutoSuggestions> <NumberOfResults>4</NumberOfResults>
</parameters> |
- Zip the files back up together.
- Import the solution and publish it.
- Open the form up in Form Editor and open the properties for the activities control.
You should be able to set the properties for the KB search now: