: 4411 | 106273 | 11908

RunWithDocumentContext not work when run from LotusScript 
Use this IdeaSpace to post ideas about Domino Designer.

: -5
: 0
: 5
: Domino Designer
: Vlad Sh10183 02 Sep 2010
:
: / Email
It only works in conjunction SSJS->LS-agent, and in the security tab is the option "Run as Web user".
1. On Notes Client:
Button code:
Dim ns As New NotesSession
Dim ndb As NotesDatabase
Dim na As NotesAgent
Dim nd As NotesDocument
 
Set ndb = ns.CurrentDatabase
Set na = ndb.GetAgent("(test)")
Set nd = ndb.CreateDocument
 
Call na.RunWithDocumentContext(nd)
 
Code of agent "test":
Dim nd As NotesDocument
Set nd = NotesSession.DocumentContext
Call nd.Replaceitemvalue("test", 1)
MessageBox nd.Getitemvalue("test")(0) 'Not displayed
Call nd.Save(True, True) 'Not saved Does not work.
 
Errors compiling / execution is not. I even tried to specifically generate an error and write it in log.nsf, but the error is not generated .. it seems that the agent does not start.
 
2. On Domino Server:
Install the Domino Server 8.5.2 and ODS raised to 51 - does not work :-( If the button code to put in the agent who started using RunOnServer, and from it has already run the agent using RunWithDocumentContext, then when you call the new method is written to the console error "Unable to pass doc context - Caller must run with user authority" (Err = 4795) . Naturally all the rights to run agents are, especially in the properties of agents set the maximum runtime security level, even with the option "Run as Web user" for both agents...
 
Do please to RunWithDocumentContext worked when run from LotusScript on the Notes Client and the Domino Server.



1) David Hablewitz13544 (03 Sep 2010)
Sounds like this is another bug you are reporting. I suggest you post on the discussion forums or report it to technical support. Posting it here will pad your score, but won't get you the response from IBM you want. When you report a bug to technical support, they give it a higher priority than enhancement requests. You just need to report it.
2) Vlad Sh10183 (03 Sep 2010)
David
A small clarification: I do not want an answer from IBM, I just report a bug. If IBM is not interested in correcting it, even if you put a message about it in twenty places, then nothing will change. If interested, you can find and take note of any open source, the more that the source about products of IBM, that is not even have to look for.
I prefer to use open source in a convenient place to me because I do not need to be further somewhere else to register, and it sees and knows everything, and then let each of us draws his conclusions. Hence, my main idea - to fix bugs, and only then ideas. Or rather, what kind of realization of the ideas can be discussed if the product is full of bugs?..
3) Peter Presnell26400 (09 Sep 2010)
I agree with David. Ideajam is not the correct forum to report bugs with Notes.
4) Vlad Sh10183 (11 Jul 2012)
The latest version of the LND call Java-agents with document-parameter is working! Thanks!
5) Vlad Sh10183 (24 Sep 2012)
Status changed to Withdrawn










:
:

Welcome to IdeaJam™


You can run IdeaJam™ in your company. It's easy to install, setup and customize. Your employees, partners and customers will immediately see results.

Use IdeaJam to:

  • Collect ideas from employees
  • Solicit feedback and suggestions from employees and customers
  • Run innovation contests and competitions
  • Validate concepts
  • Use the power of "crowd-sourcing" to rank ideas and allow the best ideas to rise to the top

IdeaJam™ works with:

  • IBM Connections
  • IBM Lotus Quickr
  • Blogs and Wikis
  • Websphere Portal
  • Microsoft Sharepoint
  • and other applications.

IdeaJam has an extensive set of widgets and API's that allow you to extend and integrate IdeaJam™ with other applications.

Learn more about IdeaJam >>


5
Mail print as PDF or export as PDF
10
Upgrade the admin client. Still has Notes 7 status bar even.
-5
Toolbar buttons for mail Recall and Encrypt
8
Settings / Option for sending read receipt
8
Add server and database as optional parameters for @GetProfileField and @SetProfileField
6
To: field label in memo is a address dialog hotspot. CC and BCC should also be hotspots.
-1
Native Traveler Client for all platforms
6
New "Copy into new Notebook entry" functionnality
3
Stop Opened/Closed session logging for Traveler Servers
5
Improve Support for XPage in Notes Client







IdeaJam developed by