Exchange of doc between two database

Hi All ;

Can any body tell me how to exchange doc from one database to another database.

i am making abc.nsf when any doc send to names.nsf(mail)then after some time when status change then that doc is move to another names.nsf.Is it possible… ?

thanxs a lot.

Rajeev

If you have any idea behind exchange of doc one database to another database pls tell me…

Subject: Simple Actions, @Fomula, Lotus Script, Java, Com – make your pick

Hi Rajeev,

all supported languages support in one way or another the copying of documents (in @formula you would use @mailsend). In LotusScript/Java/COM you would use the NotesDocument.CopyToDatabase method. However you might want to be careful:

names.nsf is a system database where mail is usually neither send nor received, so you might want to read up on Domino architecture a little further.

You also might realize, that you don’t need to copy from database to database, just use appropriate views.

A good reading for Domino development is “Lotus Notes and Domino6 Programming Bible”.

Hth

:slight_smile: stw

Subject: RE: Simple Actions, @Fomula, Lotus Script, Java, Com – make your pick

Hi Stephen,

Thanxs for your advise…I understand what you want to say but my user needs is…

  1. If a mail come to in his mailbox and if he is not checking it for 1 hour then it should be forwarded to the another responsible person.

    I am creating a view with 4 person have diff status . My code is…

t1:=time1;…mail receiving time

t2:=time2;…one hour exceed time

t3:=@Time(@Now);…current time

@If(status=“1” &t3>t2 ;@Do(@MailSend(“Rajeev M Thakur/BNG/ULI”;“”;“”;“1st test”;“”;“Remainder about your Project”;[IncludeDoclink]);@SetField (“status”;“2”));“”);

t4:=@Adjust (t2;0;0;0;0;0;20);

@If(status=“2” &t4<t3;@Do(@MailSend(“Rajeev M Thakur/BNG/ULI”;“”;“”;“2nd test”;“”;“Remainder about your Project”;[IncludeDoclink]);@SetField (“status”;“3”));“”);

@If(status=“3”;@SetField (“status”;“close”)&@MailSend(“Rajeev M Thakur/BNG/ULI”;“”;“”;“3rd test”;“”;“Remainder about your Project”;[IncludeDoclink]);“”);

this is running some time well but some time not working.

Do you have any idea…Or any other method…tell where i am wrong…

Thanxs