Set GROUPBY=grouplist and Go GROUPCOLLAPSE=* in a button

I have these commands in a button:

Set GROUPBY=grouplist
Go GROUPCOLLAPSE=*

The first command properly asks for and sets a column header to group by.

The second command is ignored. The group by is not collapsed.

What can I do to get the Go GROUPCOLLAPSE=* to execute?

Not sure if the command supports it or not, but try:

Set GROUPBY=grouplist
[
Go GROUPCOLLAPSE=*
]

[No change. The second command is ignored. The group by is not collapsed.

None of these work.

[
/home\dopusrt.exe /cmd Go GROUPCOLLAPSE=*
]
[
@sync: or @async:/home\dopusrt.exe /cmd Go GROUPCOLLAPSE=*
]

Try Set GROUPBY=grouplist GROUPCOLLAPSE=On

No change.

Neither of these work.

Set GROUPBY=grouplist
GROUPCOLLAPSE=On
[
/home\dopusrt.exe /cmd Go GROUPCOLLAPSE=*
]
Set GROUPBY=grouplist
GROUPCOLLAPSE=On

This is a one-line command :slightly_smiling_face:

I don’t think the command for generating a list of groups supports adding extra commands to the buttons it generates, at least currently.

But it does work for me (if I correctly understood the OP's goal: group by the specified column and collapse all groups by default).

@a815 Your one line command does work. Thank you!

I think Leo's point is that no commands after that one line have any effect - a second button would be needed to do anything else.

As a result of these discussions, I make a feature request that commands after the one line turning on the group by take effect - a second button would then not be needed.

In the next beta you'll be able to use Leo's suggestion of:

Set GROUPBY=grouplist
[
Go GROUPCOLLAPSE=*
]