?
Solved

total lotus newbie - can i submit content to a notes server from an .html or .asp?

Posted on 2003-03-27
5
Medium Priority
?
250 Views
Last Modified: 2013-12-18
First a little background: i've agreed to try to help a client that I do ASP consultation for with a small Lotus Notes problem for them, problem is, i dont know much about lotus notes :)  So any pointers you give would be greatly helpful.  

Heres the deal:

my client is moving a lotus note based system to a internal web site.  they aparently need have a subscribe button on the website to match the one on notes site, which i believe sends a message notes mailing list to subscribe the user.  for the time being, the mailing lists will continue to be hosted in Notes.  So is there an easy way for me to send the appropriate information to notes when the user clicks on a web form?

I know, i'm very short on details (which is not making my life pleasent right now :), here is the only code snippet i have received from them so far:

---- snip ----

Sub Click(Source As Button)
      Dim session As New NotesSession
      Dim doc As NotesDocument
      Dim db As Notesdatabase

      Set db = session.CurrentDatabase

     'send document to mail-in database
      Set doc = New NotesDocument(db)
      doc.form = "Memo"
      doc.subject = "Profile Subscription Update"
      doc.SendTo = "CIO-PaCT-Profiles"
      doc.KeyID = 2926
      doc.SubscribeValue = "Y"

      Call doc.SEND(False)

      Messagebox "Thank you! Your request has been sent."
End Sub

---- snip ----

so it looks to me liek this should be pretty straightforward.  I've spent a few hours digging around here and elseware on the net and havnt found a real solid answere yet.  i've seen mention of "web agents" and this posted on this formum:

http://www.experts-exchange.com/Applications/Email/Lotus_Notes/Q_11678458.html

Run an agent via URL !
In this agent you can put your @Formulas like @MailSend.



<INPUT TYPE=button VALUE=OK

onClick="location.href='http://SERVER/DATABASE/AGENT_NAME?OpenAgent'">


---

to make things worse, this is of course on a tight deadline (aint it always the way) ... so literally any help you can give me will be *greatly* appriciated... i can reciprocate some html/java/javascript/asp/jsp help in return :)


-Josh
0
Comment
Question by:joshsteiner
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 13

Expert Comment

by:CRAK
ID: 8223643
Well, the code in the button can be placed in an agent (set it to "run once"). When triggered, it's the notes server that runs the could (with your background that's obvious to you!).
The problem is that the messagebox cannot be processed there.... but you could use PRINT to return an url to launch, like:
PRINT "[http://www.....]"
or print an entire HTML page to the client, with a button that brings the user back into the appliction:
PRINT "<HTML>"
PRINT "<HEAD>"
etc.

PRINT is a lotusscript instruction, a BASIC dialect, just like the existing code.
You could also set the agent to use normal lotus notes code (like @Mailsend) but that has no options to create / send a document in the background.

ASP as in the web language/protocol that I know nothing about, or as application service provider?
0
 

Author Comment

by:joshsteiner
ID: 8226362
(ASP as in the web language.)

ok, so on the server i need to create an agent with this code in it, which i can call from a http URL like the one above...

one thing i dont see how to do is how would i identify which user is clicking the subscribe button and hence calling the agent?  
0
 
LVL 13

Accepted Solution

by:
CRAK earned 200 total points
ID: 8231497
In notes every user has his own id file which includes name and password. Start notes or access a database and the id-file will be consulted and a user's identity is known.
In web applications that file is not used (or even available), but the user's persondocument on the notes server is! On it there's a field where an internet password can be entered.
However, it's only verified when neccesary. If anonymous access is allowed in a database, that's exactly how you'll enter. Even if you have already logged in in another database.
To control that, you'll have to enter databases access control lists (ACL) and deny anonymous access. To do so, you'll need to enter a username "Anonymous" and set it to "No Access".
A web user will now have to login for that single database. When he/she does, you can retrieve his/her name with the @UserName function, or in Lotusscript using the NotesSession.UserName property (feed it into a NotesName element als you'll be able to retrieve the common name etc.).
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question