Learn about Redwood and be one of the first to join the conversation

Visit Redwood Community
TypeError: oj.FlattenedTreeDataSource is not a constructor — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

TypeError: oj.FlattenedTreeDataSource is not a constructor

Accepted answer
10
Views
1
Comments
edited May 27, 2021 10:31PM in Visual Builder 1 comment

Summary

TypeError: oj.FlattenedTreeDataSource is not a constructor

Content

Hi All,

Need quick help from you on the Row Expander (tree table).

I have used the below code and getting the below error (highlighted the error line in Red color), the same code is working for my friend but not for me as I started the design from scratch, not sure if I am missing some imports or something. Please provide your valuable suggestions on this.

Error: TypeError: oj.FlattenedTreeDataSource is not a constructor

Code in JS:

 

define(['knockout', 'ojs/ojflattenedtreetabledatasource', 'ojs/ojjsontreedatasource'], function (ko) {
  'use strict';
 
  var PageModule = function PageModule() {

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!