LABKEY.Query.containerFilter with workbooks | Ben Bimber | 2011-02-28 13:00 |
Status: Closed | ||
I dont know if this is new or just new to me, but the new containerFilter options are nice. I do have questions about some of the options: * currentPlusProject: Include the current folder and the project that contains it let's assume you're either in a workbook or a subfolder several levels down from the project root. in this situation, does 'the project that contains it' refer to the project root folder (ie. one folder only) or does it refer to the project plus all child folders contained within that project? * currentAndParents: Include the current folder and its parent folders why is parents plural? how does a folder have more than 1 parent? does this traverse up the full folder hierarchy until it hits the site/project root? if true, is there any way to get just the immediate parent? I am primarily interested in 2 cases involving workbooks: 1. When in a folder that contains workbooks, there are cases where we'd want a filter that shows the current folder plus all workbooks records. The existing currentAndSubfolders option seems to cover this. 2. When in a workbook, you might want to show either: - records in that workbook plus records in the immediate parent folder (ie. one level up, not multiple levels up) - records in that workbook, records in the immediate parent folder, and records from other children of that parent. The filters currentPlusProject and currentAndParents seems to be similar to this, but their descriptions are a little ambiguous. One related question: is it possible from within a workbook to find the containerPath of your immediate parent? If that were possible, you could just use that as a container filter without worrying about all sorts of specific permutations on containerFilter. Thanks. |
||