SnTT.gifI'm sure you all know what's coming for years, but I had this customer asking for having a view collapse by default when opening. I'm annoyed at this myself, never being able to explain why/how a view would expand/collapse.
I tried the most obvious solution, and it actually worked.
Put the following line in the Postopen event of a view:

  • @Command([ViewCollapseAll])

BTW you can make this a user-setting by putting a choice in a profile document:
  • @If(@GetProfileField("Profile";"Collapse";@UserName)="1";@Command([ViewCollapseAll]);"")

Simple tip, but I hope some of you have the same
'I should have thought of this before' feeling.

Category:  Show-n-Tell Thursday  SnTT  | TechnoratiTechnorati: ,