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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Data Model Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Can I return a DataSet of Datasets?


Go to End


2 Posts   1562 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