Help for lotus script agent

Hello everybody,In a lotus script agent, I want to create an output file.

The agent is launched by a button on a form

It works well with a notes client but not at all with a web client.

What can i do to make it works with a web client ?

This agent worked very well with Domino V5, even with a web client !

Thank you for your help.

Isabelle.

Here is the code :

…

Set session = New NotesSession

Set db = session.CurrentDatabase

Set currdoc = session.DocumentContext

Set view = db.GetView(“Export”)

pathName$ = “c:/temp/” & currdoc.NomFichier(0) & “.csv”

’ => I think that it stops here with a web client

fileName$ = Dir$(pathName$, 0)

exists=Dir$(nom$,0)

If fileName$ >“” Then

Kill pathName$

End If

…

Subject: Help for lotus script agent.

Lotus Script agents launched from the web client execute on the server. They will not be able to create a csv file on your local computer.

If you want to do this from a button, you’ll have to do in JavaScript.

Alex

Subject: Help for lotus script agent.

I think it has something to do with someone from the web, writing to the server itself. It may be seen as a security risk.

My suggestion is possibly having the button on the form create a flag on the document like ‘txtCreateCSV’, and set to ‘Y’, then have an agent, that is signed by an allowable user (yourself), that runs on a schedule, creating it, and doing what you have to do with it.