Want to move doc from one view to another view

Hi,

I am pretty new to lotus notes…

so this may be a simple doubt.

I want to move one docuement from one view to another view if certain conditions aer met. How this can be achieved?

I tried doc.putinfolder, but it didnt work out.

Pls reply…

Thanks in advance.

Subject: want to move doc from one view to another view.

Views display only the documents based upon their View Seclection Formulas.

Just write the View selection formulas by specifying the conditions under whih the documents needs to be shown.

For ex : - Select Condition1 = "XXXX " or Condition2='“XXXXX”.

Subject: RE: want to move doc from one view to another view.

I think this will only show the document on the condition. But I want to move the document from one view to another view when user clicks and one condition is satisfied. The condition is the content of one field are equal to current user’s common name.

That is, move the doc if current user =doc.originalapp(0)

Subject: RE: want to move doc from one view to another view.

One more time: You cannot move a document form one view to another, because the only way to determine what’s displayed in a view is its selection formula (leaving out additional filtering techniques for the moment). Views are not folders.

If you want a document to disappear from view A, but to appear in another view B, you have to change the document’s properties, so it no longer fits the selection criteria of view A, but those of view B.

That said, view selection formulas cannot be based on user names. The reason is, that there is only one view index per view, which is the same for all users. If you want to show user specific data, have a look into single category views or @SetViewInfo.

Subject: RE: want to move doc from one view to another view.

Please read about the difference of views and folders in the help documentation!!!

As I understand, you want to have 2 views where in view A all unconfirmed docs are displayed and in view B the confirmed docs.

You have to adjust the Select-Formulas:

View A:

Select … & CONFIRMFIELD=“”

View B:

Select … & CONFIRMFIELD!=“”

Create an view action in view A that sets the CONFIRMFIELD like:

FIELD CONFIRMFIELD := @Now;

This action should ‘move’ the document to the other view.

Good luck :wink: