Qaiser Abbas
Qaiser Abbas

Reputation: 113

Trying to open specific xPage in Notes Client in Edit Mode

I have an xpage without any data source being used to compile a report. Now I want to send link of this page to different people at 04:00 PM everyday. I am using lotusScript agent to send an email. It's running perfectly fine for web link to open an xpage but notes client link its not opening the page. I am using IBM Notes 9.0.1. Below is the sample code from agent.

Call mailRT.AppendText(" For Web Link ")        
Call mailRT.AppendText("http://172.17.5.36/sar.nsf/DailySummaryReport.xsp")     
Call mailRt.AddNewline(2)       
Call mailRT.AppendText("IBM Notes Client  Link --->>> ")

Call mailRT.AppendDocLink(db,"Click to Open Daily Sales Activity System")
Call mailRt.AddNewline(3)
Call mailRT.AppendText("Best Regards, ")        
Call mailRt.AddNewline(1)
Call mailRT.AppendText("notes://172.17.5.36/sar.nsf/DailySummaryReport.xsp")

I don't know what is appropriate way to open a an xpages from an email. if i use Call mailRT.AppendText("notes://172.17.5.36/sar.nsf than it's open launching page of the application otherwise open view last viewed by the user( Call mailRT.AppendText("notes://172.17.5.36/sar.nsf/DailySummaryReport.xsp") ).

Kindly guide me the way forward.

Thanks, Qaiser

Upvotes: 0

Views: 95

Answers (1)

stwissel
stwissel

Reputation: 20384

I would send messages always a MIME. It gives you more flexibility in formatting and layout. Stick to the link approach since embedded forms are a security hazard. Start with the eMail bean (you can adopt it to an agent).

When your XPage opens with all the fields you need in edit mode, that's the URL you want to use. if you use http it would open in the browser, use notes it opens in the client.

Upvotes: 1

Related Questions