Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1193
  • Last Modified:

Collaps all in view

Hi,
How can I collaps all the documents in a view every time I reopen the view. Not only the first time I open a database.

Thanks
0
ToniA
Asked:
ToniA
1 Solution
 
sloeberCommented:
Go the PostOpen event from the view and change LotusScript in Formula and write the followoing command @Command([ViewCollapseAll])

Greets,
Sloeber
0
 
ToniAAuthor Commented:
This I tried already.

It' will generate the Error : "Cannot execute the specified commnad"

Thanks
toniA
0
 
HemanthaKumarCommented:
There is this view property "Collapse all when database is first opened" and then set OnOPEN to "Go to top row" and OnREFRESH to "Refresh Display"

~Hemanth
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
ToniAAuthor Commented:
~Hemanth

I tried this solution.
It didn't work.
When I was already in the view and opened a document it's showing this category still open.

Thank you.
ToniA
0
 
HemanthaKumarCommented:
That will work only per session, meaning next time u come into the db it will collapse and show you !
Not when u switch the views, that is the max that you can get and it is a limtation due to indexing process
0
 
Jean Marie GeeraertsApplication EngineerCommented:
I've put the @command([ViewCollapseAll]) in the QueryOpen event of the view and it seems to work when you switch views.
I've tested it, expanding some categories then switching to another view and switching back to the categorized view and it would collapse all.
I also get an error when I open the database however. So, I tried with @PostedCommand and still got the error. I then tried the following. I put the commands
@command([OpenView];"viewname");
@PostedCommand([ViewCollapseAll]);
in the QueryOpen event and then I got two errors :
1. View or Navigator 'viewname' does not exist
2. Cannot execute the specified command
I must therefore conclude that the commands get executed before the database is opened and therefore the view is not known at the time of execution.

Anyway this is not the solution to your problem, but maybe it can shed some light on the problem so others may offer you a definite solution.
0
 
ToniAAuthor Commented:
There is no possibility to do it on the view directly.
I redesigned the database. --->

I've greated a NAVIGATOR. On this navigator i do --->

@Command([ViewChange] ; "ViewName" );
@PostedCommand([ViewCollapseAll])

Thanks to all involved persons

ToniA
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now