04/24/2022

Q and A from April Webinar on What's New in Domino Designer with Ulrich Krause

This blog presents the questions from the April 2022 OpenNTF webinar on What's New in Domino Designer and the answers from our speaker, Ulrich Krause. Thanks for all the great questions! Note that some questions were outside the scope of what Ulrich could respond to and were omitted(like HCL product plans...).



Q Is NQRP faster than view?
A John Curtis presented about all things NotesQueryResultsProcessor earlier this year. https://www.youtube.com/watch?v=NqhbKNAycUI
Q Will panadgenda advanced properties plugin support viewing named documents?
A Currently, the Advanced Properties plugin supports profile documents. As far as I know there are currently no plans to extend the plugin.
Q Is there any LotusScript class which can emulate postman tool? I mean prepare HTTP request with defined header and send it to remote http server.
A NotesHTTPRequest HCL help on NotesHTTPRequest
Q What happened to the tool that allows you to check document fields in something better than the current keyhole we have under document properties?
A Not sure, which tool you mean. But we have Advanced Properties plugin now.
Q I would really like to be able to make a local replica of the fixlist nsf!
A Currently, there are no plans to make the application publicly available for replication.
Q Is the NotesQueryProcessor JSON result can be printed out by an agent, called via HTTP?
A NotesQueryProcessor.executeToJson() returns an Object of type NotesJsonNavigator. You can use to stringify() method of this class to return a Json string Dim nav As NotesJSONNavigator
Set nav = qrp.Executetojson()
json = nav.Stringify()
Q Transactions method is valid if server running circular transaction logging?
A I do not see any reason why it should not work with circular transaction logging.
Q Transaction: Does Rollback work on multi Databases ? Needs db.BeginTransaction on each Database?
A You need to call TransactionBegin() for each database seperately. BUT. In my quick test ist seems that nested transactions are not working as expected. The following code should not create a document in db or db2. But it always creates a document in db2. Public Sub createDocument
Dim s As New NotesSession
Dim db As NotesDatabase
Dim db2 As NotesDatabase
Dim doc As NotesDocument
Set db = s.GetDatabase("serv01", "transact.nsf")
Set db2 = s.GetDatabase("serv01", "transact2.nsf")

Call db.TransactionBegin()
Call db2.TransactionBegin()
Set doc = db.CreateDocument()
Call doc.ReplaceItemValue("Form", "Memo")
Call doc.ReplaceItemValue("Subject", "TestDoc")
Call doc.save(True, False)

Set doc = db2.CreateDocument()
Call doc.ReplaceItemValue("Form", "Memo")
Call doc.ReplaceItemValue("Subject", "TestDoc2")
Call doc.save(True, False)

Call db2.TransactionRollback()
Call db.TransactionRollback()
End Sub

Even changing the code produces the same result.

Public Sub createDocument
Dim s As New NotesSession
Dim db As NotesDatabase
Dim db2 As NotesDatabase
Dim doc As NotesDocument
Set db = s.GetDatabase("serv01", "transact.nsf")
Set db2 = s.GetDatabase("serv01", "transact2.nsf")

Call db.TransactionBegin()
Set doc = db.CreateDocument()
Call doc.ReplaceItemValue("Form", "Memo")
Call doc.ReplaceItemValue("Subject", "TestDoc")
Call doc.save(True, False)
Call db.TransactionRollback()

Call db2.TransactionBegin()
Set doc = db2.CreateDocument()
Call doc.ReplaceItemValue("Form", "Memo")
Call doc.ReplaceItemValue("Subject", "TestDoc2")
Call doc.save(True, False)
Call db2.TransactionRollback()
End Sub

Needs more investigation ...
Q Can any user see the Advanced Properties Box, including add field etc or does the user need to be Designer or Manager of the Database?
A Yes
Q Is there a policy to prevent / disable the Advanced Document Properties to edit?
A panagenda provides documentation about "Administration Options and Troubleshooting" including notes.ini variables to control the settings and behaviour of the plugin. See: https://www.panagenda.com/kbase/display/mc/Administration+Options+and+Troubleshooting
Q Is is possible to set the LotusScript Version?
A NO
Q I've many customers that are still using client R9 but I'd like to use the R12 Designer.
A This is possible. You just have to be careful not to use methods and properties that are only available in newer versions. Additionally I would always recompile the application on the target system with the existing client version ( Compile all LS ).
Q Is there working examples with this webinar
A If you mean if there is a download with all the code snippets from the presentation then the answer is no. All code is in the slide deck. Most of it is inspired by the samples from the Domino Designer Documentation.

Answers by Ulrich Krause. Edited by Howard Greenberg.


04/13/2022

April OpenNTF Webinar - What's New in Domino Designer

After a long, long, really very long time no updates to LotusScript there are now new classes and extensions of existing classes for the first time starting with HCL Notes/Domino 10. Then more features were added in versions 11.x, 12.0 and most recently 12.0.1. Some of the new classes are HTTPRequest, JsonNavigator, and DQL. Plus, with the release of HCL Nomad, LotusScript was also extended with classes that allow the developer to use the GPS capabilities of the mobile device. Another new class is NotesQueryResultsProcessor which can consolidate data from different (Notes) data sources and make it available to other applications in JSON format or display the data is special views to the user.  

In this webinar Ulrich Krause will introduce these new classes, methods and properties. Ulrich is an administrator and developer, and has been working with Lotus Notes/Domino since 1993.  He is employed by  midpoints GmbH.  Ulrich is widely known in the industry as a moderator in the forum atnotes.de and as a speaker at national and international conferences. He has been an IBM Champion from the very beginning and is currently an HCL Ambassador.

This webinar will take place on April 21, 2022 at 11:00AM (New York Time) to 12:30PM.

To register for this webinar, go to: https://attendee.gotowebinar.com/register/4539672826913302029