Pass Lotus Script Array to Java Script?

Is it possible to pass an array that has been created in a lotus script agent to a javascript function for processing as a javascript array?

Thanks in advance.

Subject: Pass Lotus Script Array to Java Script?

You could populate a form field from LotusScript, the values delimited by comma, and then split that field up using split(‘,’) in JavaScript.Or you could directly from LotusScript print the necessary JavaScript, but I don’t recommend that.

  • Johan

johan@kanngard.net

http://dev.kanngard.net

Subject: RE: Pass Lotus Script Array to Java Script?

Thanks for the response, but my problem is that I am not using a notes form.

The form displayed on the web is generated by the agent.

Any other ideas?

Subject: RE: Pass Lotus Script Array to Java Script?

I suspect you’ll have to go with Johan’s second suggestion and print the necessary Javascript e.g.

Dim myArray(1) As String

Dim implodeArray As String

myArray(0) = “Red”

myArray(1) = “Blue”

implodeArray=Implode(myArray,|“,”|)

Print ||

Haven’t checked the code so there might be typos, but you should get the idea.

HTH - Rufus