So the workaround would look something like this.
Metadata:
Q1_LOOP "" loop
{
Row1 "Row1",
Row2 "Row2",
Row3 "Row3",
Row4 "Row4",
Row5 "Row5"
} fields -
(
COL_LOOP "" loop
{
Col1 "Col1",
Col2 "Col2",
Col3 "Col3",
Col4 "Col4"
} fields -
(
Q1 ""
long;
) expand;
) expand;
Routing:
Q1_LOOP[..].COL_LOOP.Categories.Filter = {Col2,Col3,Col4,Col1}
Q1_LOOP[..].COL_LOOP.Categories.Order = OrderConstants.oCustom
Q1_LOOP.Ask()
--- In NADUG@yahoogroups.com, Bret Hodge <mailhodge@...> wrote:
>
> The only ordering that works on question filters is normal, random,
and rotate.
>
> The asc, desc, and custom orderings only work with categories. So
for your question the only custom ordering you could do would be on
defining how the rows are displayed
>
>
> A work around is to change your four inner questions to 1
categorical grid with 4 iterations with one long question defined
inside the loop. Then apply the custom ordering to the grid
iteration's categories. Although, I don't know how that will affect
your displaying of them.
>
>
>
>
>
> ________________________________
> From: msqrd1979 <msqrd1979@...>
> To: NADUG@yahoogroups.com
> Sent: Wednesday, November 12, 2008 9:17:12 PM
> Subject: [NADUG] QuestionFilter oCustom
>
>
> Trying to custom order columns in grid. I know this is a documented
> bug by SPSS. But, I am wondering if anyone has found a perhaps
> undocumented way to archive this. I am using mrStudio 4.0.
>
> Metadata:
> Q1_LOOP "Question text blah blah blah" loop
> {
> Row1 "Row 1",
> Row2 "Row 2",
> Row3 "Row 3",
> Row4 "Row 4",
> Row5 "Row 5"
>
> } fields
> (
> Col_1 "Column 1" long [1 .. 10];
>
> Col_2 "Column 2" long [1 .. 10];
>
> Col_3 "Column 3" long [1 .. 10];
>
> Col_4 "Column 4" long [1 .. 10];
>
> ) expand;
>
> Routing:
> Q1_LOOP[..]. QuestionOrder = OrderConstants. oCustom
> Q1_LOOP[..]. QuestionFilter = "Col_3,Col_1, Col_2,Col_ 4"
> Q1_LOOP.Ask( )
>