Welcome to the IBM Collaboration Solutions Community IQJam
UsernamePassword
Reset Password | Register
   
Home | Tags | Help
I need codes for counting document in a view sort by time??? 

Button is given, I need to rely on what time the document is being created and the time that the last click in the button. The documents being counted at first time will not be count again. for example i click the button once it shows 5 for example( the number of documents found ), then when i click it without adding new documents it will show 5 again, but when i add 2 new documents before clicking the button, I will come up with 2( the number new documents) then loop.

 

thanks, Please help me.

Domino Development / LotusScript
Diane Vicente - over 2 years ago |  |  | Viewed 149 times

There are 2 answers

1votes

It sounds like your code is only processing new / modified documents, rather than all that it needs to, but we can't confirm that until we see the code; can you paste it here?

Ben Poole - over 2 years ago | 
Voting
Vote on the answer to show whether you think the answer is correct or useful to the rest of the community.

Answers with more votes are more visible to the rest of the community
0votes

Perhaps you could try using the Database.search method, using the same formula as your view and the DateTime that the button was last pressed. Record the number of documents in the returned DocumentCollection to a profile document - along with the DateTime the button was pressed - so that you can return that number in the event that the no new documents have been created since last time.

Andy Cunliffe - over 2 years ago | 
Voting
Vote on the answer to show whether you think the answer is correct or useful to the rest of the community.

Answers with more votes are more visible to the rest of the community

Experts for Domino Development / LotusScript