Can not build n-level tree of custom data in Console

Topics: General
Oct 1, 2011 at 7:55 PM

Hi, all

I have external data in self-related SQL-table, for example:

CREATE TABLE Structure (
  Id uniqueidentifier NOT NULL PRIMARY KEY,
  ParentId uniqueidentifier NULL FOREIGN KEY REFERENCES Structure(Id),
  Name varchar(250)
)

I want to connect this data to Console. I wrote custom data provider similar http://docs.composite.net/C1/Data/CustomDataProviders/ReadingSqlServerData.aspx, but I don't know how to write tree definition for n-level hierarchy.

Can anybody help me?

Oct 2, 2011 at 1:58 PM

Assuming you mean within a perspective, you will find useful guidance at http://docs.composite.net/C1/Console/AttachingElements.aspx. You may find you will need to alter some INTERNAL interfaces to PUBLIC within the Composite core code to support this. You could, for example, apply the patch found at http://www.codeplex.com/Download?ProjectName=compositec1&DownloadId=273364 which contains all the required changes.