Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Data Model Questions /

Can I return a DataSet of Datasets?


Reply


2 Posts   909 Views

Avatar
DsX

Community Member, 178 Posts

22 November 2010 at 6:07pm

I need to create small datasets that are contained in another dataset, so that I can 'hopefully' control through the top dataset and 'somehow' control through the contained datasets.

I was working on 2 methods, one that setup an array with integers that define limits for a query, and another that returns the limited query as a dataset... this is working other than the fact that I can't pass variables to the second method in the control.

so is there a way I can embed these multiple datasets into a single dataset and then control throught them in the ss templates?

Avatar
DsX

Community Member, 178 Posts

22 November 2010 at 7:22pm

got it!

see http://www.silverstripe.org/general-questions/show/14056