Skip to main content


 

Symptoms


We are using the Report Designer in K2 workspace to create some custom reports.

When we select a smart object as datasource, we got the error popped up "This data source not configured to be used as a reporting data source".

We tried different smart objects, some of them are ok and others have the same error.
 

Diagnoses


SmartObjects do not have a default 'List' method. Without a List method, they cannot be used for reporting.
 

Resolution

Within the SmartObject's XML definition all the way at the bottom, this is what the client’s defaults/methods are looking like.









You will notice that there is no default Read method, nor (most importantly) a default List method.
This is what is causing the SmartObject not to be seen as a "Reporting" SmartObject.

Steps to fix.
Open the SmartObject in Visual Studio.
On the top bar, click on Additional Settings.
Ensure that the defaults are populated.
Click Ok and deploy the SmartObject again.


Do this with the SmartObject that shows this behaviour even if they have a list method in the SmartObject.




 
Be the first to reply!

Reply