What Object type do we need to enter to select custom document types in the Uniselector control in Kentico v8?
In Kentico v7.0.34 we are successfully using the UniSelector to select custom document types as follows;
- Object type: customtableitem.custom.Course
- Return column name: CourseID
- Display name format: {%Name%}
- Selection mode: Multiple
- Order by: Name
However in Kentico v8.0.17 we are getting the following error when using the above values;
[CustomTableItemProvider.GetTypeInfo]: Class 'custom.course' is not custom table.
Server Error in '/' Application.
[CustomTableItemProvider.GetTypeInfo]: Class 'custom.course' is not custom table.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Exception: [CustomTableItemProvider.GetTypeInfo]: Class 'custom.course' is not custom table.
Source Error:
Line 1094: private void LoadObjects()
Line 1095: {
Line 1096: if (Object != null)
Line 1097: {
Line 1098: // Reset string builder
Source File: c:\Visual Studio\Projects\Kentico8\CMS\CMSAdminControls\UI\UniSelector\UniSelector.ascx.cs Line: 1096
We have tried changing the Object type as follows;
- Object type: custom.Course
This results is the following error;
Object type 'custom.course' not found.
Server Error in '/' Application.
Object type 'custom.course' not found.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Exception: Object type 'custom.course' not found.
Source Error:
Line 1094: private void LoadObjects()
Line 1095: {
Line 1096: if (Object != null)
Line 1097: {
Line 1098: // Reset string builder
Source File: c:\Visual Studio\Projects\Kentico8\CMS\CMSAdminControls\UI\UniSelector\UniSelector.ascx.cs Line: 1096
I have read the documentation available here and for Object type it provides a Sample Value of "cms.user". Setting Object type to "cms.user" does work for selecting CMS Users.
I also created a custom table called "Test" and can confirm that setting Object type to "customtableitem.customtable.Test" does work for selecting custom table items.
I have also asked this on Kentico's dev.net Q&A site; https://devnet.kentico.com/questions/uniselector-in-kentico-v8
Cheers,
Darren