lotus script web development

3205 pts.
Tags:
Lotus Notes
LotusScript
LotusScript to update multivalue text field in lotus notes web application is not working but same code is working in client. I am working on local hence cannot able to debug. I use following code:
If Not Doclog Is Nothing Then


Doclog.date=dt.Dateonly()
Doclog.time=dt.Timeonly()


tmlog=Doclog.getitemvalue("DateTimelog")

tmlog=ArrayAppend(tmlog,CStr(dt.Timeonly()) +" "+CStr(dt.DateOnly()))
'Set li = Doclog.getitemvalue("DateTimelog")

Set li= Doclog.GetFirstItem(“DateTimelog”)
Call li.AppendToTextList(tmlog)
Print|<script type="text/javascript"> alert('test');</script>|


Call Doclog.Save(True, True)

Else

Set Doclog=db.CreateDocument
Doclog.Form="Agreementlog"
Doclog.Eventseq="123456"
Doclog.Date=dt.Dateonly()
Doclog.Time=dt.Timeonly()
'Doclog.DateTimelog=dt.Dateonly()+" "+dt.Timeonly()
Set li= Doclog.Replaceitemvalue("DateTimelog", dt.Dateonly() +":"+dt.Timeonly())

Call Doclog.Save(True, True)

End If
Can anyone help what is the error in this code?

Answer Wiki

Thanks. We'll let you know when a new response is added.

I checked the code is ok, it was only issue with the permission to run the agent in local host

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: