Solved

Collaps all in view

Posted on 2001-07-25
7
1,186 Views
Last Modified: 2013-12-18
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
Comment
Question by:ToniA
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 4

Expert Comment

by:sloeber
ID: 6317375
Go the PostOpen event from the view and change LotusScript in Formula and write the followoing command @Command([ViewCollapseAll])

Greets,
Sloeber
0
 

Author Comment

by:ToniA
ID: 6317436
This I tried already.

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

Thanks
toniA
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 6317498
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:ToniA
ID: 6317575
~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
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 6319414
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
 
LVL 8

Accepted Solution

by:
Jean Marie Geeraerts earned 50 total points
ID: 6320877
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
 

Author Comment

by:ToniA
ID: 6320996
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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question