[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 198
  • Last Modified:

Reply Document, pre filled out.

I would like to creat a default link on all pages that does a few things.

First, it takes the creator of the page as a variable, since many people can make documents it will change for each page..  

Second, it will make an active link that when clicked on will kick out a canned e-mail to that pages's creator with a preset message.  

No need for input by the user....

So for example, if you come to a page I created and click the link, it will send a canned e-mail to me.  But if you went to a page John Doe created, it will send the same canned e-mail to him.

Anyone have a desire to make such a beast?

I am not a Notes script person....

Points set for 100, will alter higher if requested and the scripts work. :-)
0
GrungyApe
Asked:
GrungyApe
  • 4
  • 2
  • 2
1 Solution
 
ghassan99Commented:
u mean u just want to have a button or an action hotspot on the doc that will send a prepared email to the creator?

Create a hidden 'computed when composed' field with the value '@name([CN];@username)' then add a button (if u want hide it when the doc is a new one) with this script:

Dim ws as New NotesUIWorkspace
Dim uidoc as NotesUIDocument
Dim session As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Set uidoc = ws.CurrentDocument
Set db = session.CurrentDatabase
Set doc = New NotesDocument( db )
doc.Form = "Form_Name" 'form that has the canned email
doc.SendTo = uidoc.FieldGetText("name_of_the_hidden_field_u_created")
doc.Subject = "A canned email"
Call doc.Send( True ) 'True to save the form with the emailed doc
0
 
ghassan99Commented:
PS This is will use the internal network for emailing. If this is going to be on the web, then its different.
0
 
GrungyApeAuthor Commented:
Thank you.  It will take a few days to test this and see how we do.  I haven't fogotten to grade it yet, just wanna make sure it runs as we intended.  Be patient!  :-)
0
Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

 
GrungyApeAuthor Commented:
Oops, just spoke with some of the others in this project, looks like this server will be accessed from the web (browser) and a client.   Are you aware of what might be needed if it was a web interface... (sorry)

0
 
ghassan99Commented:
ok try this for now, and tell me later.
0
 
dalehendCommented:
@MailSend("Creator"; ""; ""; Subject; _
"Title of Canned Message"+@Newline; "Body" ; "")
);
0
 
ghassan99Commented:
@mailsend doesnt work in web app, and u cant specify the form to use!
0
 
dalehendCommented:
My mistake, He stated "Notes script' so I thought this was not a Domino app.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now