From R5 to R6 formula compatibility?

Hello, I have a notes base which was made and used with notes R5. But now, the server & the clients are R6.5 and i have a formula action that doesn’t work well!

The formula is this one:


@If( @Prompt( [YesNo] ; “Relance”; “Êtes-vous sûr de vouloir relancer ce support?” ) ; “” ; @Return( “” ) ) ;

iTexte := iTexte ;

iNbRelance := FS_NbRelanceAssigne ;

@If( iNbRelance = “” ; @Set( “iTexte” ; “Bonjour,” + @Char(0) + @Char(0) + “La demande ci-dessous est en traitement depuis " + iNbJour + " jours. Merci de me dire où se trouve la difficulté ne permettant pas sa clôture.” + @Char(0) + @Char(0) + “Cordialement.” + @Char(0) +“Support HelpDesk” ) ;@Return( “” ) ) ;

@Command( [EditMakeDocLink] ) ;

@Command( [MailForward] ) ;

@If( iNbRelance = “” ;

	@Do( 	@Command( [EditInsertText] ; "alex@blabla.com" ) ;

				@Command( [EditGotoField] ; "Subject" ) ;

				@Command( [EditInsertText] ; "Première relance d'une demande de support assignée." ) ;

				@Command( [EditGotoField] ; "Body" ) ;

				@Command( [EditInsertText] ; iTexte ) ) ;



				@Command( [EditPaste] ) ) ;

@Command( [ViewRefreshFields] );

@PostedCommand( [MailSend] ) ;

@PostedCommand( [FileSave] ) ;

@PostedCommand( [FileCloseWindow] )


The formula is in a view and makes a mail with the selected document.

In R5, a memo was created and sent and close automaticaly but now, the mail is created and i have a prompt that asks me if i want to send the mail or not!!!

Do I have to modify the formula?

Thanks!

Subject: From R5 to R6 formula compatibility?

Try moving the @PostedCommand([FileSave]) before the @PostedCommand{[MailSend])

Subject: RE: From R5 to R6 formula compatibility?

I did it but i have the prompt asking me if I want to save the document.I mean before I had the prompt you get when you want to leave a memo that you are making.

And when i move this line, I have the prompt you get when you are editing a document in a database and you want to leave it !

Subject: RE: From R5 to R6 formula compatibility?

Sorry I misread what you said the prompt was displaying. I thought it read “save”, not “send”.

Anyway, per the Notes Help doc on [MailSend] it states – “Displays the Mail Send dialog box, which lets the user choose whether or not to encrypt, sign, or send the selected memo.”, so it sounds like it is working as designed.

I do not know if this changed from R5 to R65, but I do not think so. Sorry, but I don’t know how else to help you.

Subject: RE: From R5 to R6 formula compatibility?

It might be that the workspace.prompt functionality has changed somehow. I have problems in that direction when I am copying/pasting a working code from R5 to R6.5

If you find the answer please post it here.

Regards