lotusscript

Multithreading a java agent

放肆的年华 提交于 2019-12-11 21:05:47
问题 A java agent has to upload a file in the background and return the Url of the uploaded file. While uploading, the agent has to report its progress. I marked the agent to be "Run in background client thread. I am stuck in the following dilemma: I can run the agent from Lotus Script and pass its parameters in an In-Memory file, but the client actually doesn't run in its own thread. Instead, it blocks the whole client. I can run the agent from a formula, but then I can't pass any parameters! If

Lotus Notes: Displaying Image attachment on a document

拟墨画扇 提交于 2019-12-11 19:15:38
问题 I have a field (Rich Text), that holds the value of an image attachment, but it only display the image path and filename, not as an image display. Am I using the wrong field or there's a problem in my line of code to attach the image? The code to attach is right below: chqRSIDoc.photodoc = workspace.Openfiledialog(True, "Select a file to attach as photo: ", "", "c:\") Appreciate all the help. Thanks! 回答1: The openFileDialog returns just a string array. see http://www.ibm.com/support

Why I can't use two JSON libraries at the same time in LS

大城市里の小女人 提交于 2019-12-11 17:32:30
问题 I need to use JSON in my Notes project. I've downloaded a library for it here https://openntf.org/main.nsf/project.xsp?r=project/JSON%20LotusScript%20Classes. I get a JSON String from back-end side, do some manipulations with JSON And later I need to parse it back into a String. But unfortunately, I can use either JSONReader or JSONWrapperConverters script. Cannot use both for some really stupid reason. It gives me the following error. So I am able either to parse a string using JSONReader or

If else not read properly after changes made to any document

无人久伴 提交于 2019-12-11 16:07:35
问题 I have a button in a form where I'm using If else to check whether in list of document in view, "IF" any document with status "Lock", I will prompt messagebox "Complete PC Inspection First!". So At first, after the button is click, and code run and everything is working. Then I try to click the button again without made any changes it will prompt the messagebox. But when I made a changes in any document and change status to others such as "Active", and I go back to the form and click the

Prevent button to execute if field is empty and “status” still in the database

人走茶凉 提交于 2019-12-11 15:46:43
问题 I have form with some field in it and a button to be execute. What I want to do is, when any of field is empty, the button cannot be executed. That means, I cannot proceed the button procees when the field is not completed. How can I prevent the button to be execute if field empty? Any help will be appreciated. Thanks! **Update Question** I will add some more information to my problem. For now, I'm try to prevent using If doc.PStatus(0) = "Lock" Then Msgbox "Complete PC Inspection first!"

how to access textfield value in lotus script for Domino designer

橙三吉。 提交于 2019-12-11 13:22:51
问题 I am new to Domino designer and lotus script, I tried to access my text field by: Sub Click(Source As Button) Dim myText As String myText = Inputbox("insert some text :","Testing Heading","Default value test",100,100) Msgbox "you have entered : "+myText [myfield].text = myText //error End Sub but it shows an error: named product field does not exist Googled for it but can't find the solution. One more, searched for tutorials for creating forms,views,database in domino designer for beginners.

force notes user to change password / internet password on next login using lotus script

亡梦爱人 提交于 2019-12-11 07:39:26
问题 Actually i already create an agent to create user ID with default password. I want to force user change the internet password and Notes ID password for the next login. Is there a way using lotus script method to change it? or Admin still need to go each of the user profile to tick that function. Here is my agent code that create ID Sub Initialize ' this agent use on [register] button locate on [request form] xpages Dim s As New NotesSession, db As NotesDatabase, a As NotesAgent Dim doc As

How to get the underlying view of a form using lotusscript

吃可爱长大的小学妹 提交于 2019-12-11 04:14:17
问题 I am a newbie in lotusscript . We have a legacy lotus notes/domino system. We need to migrate the data from lotus notes to oracle. Lotus domino's data model is entirely different than that of oracle's data model. So, we are creating a relational table per Lotus notes form . I can access the views programmaticaly using lotusscript. But I couldn't get the views associated with a Notes form using lotusscript. Could anyone please give a code snippet or explain the relation between from and view?

Check if scheduled local agents can run in Notes client

风格不统一 提交于 2019-12-11 03:49:27
问题 I there a way in XPiNC (Per can you add that tag) to check if "scheduled local agent" is enabled in a Notes client? Alternatively how to do that in a LotusScript agent. Checking if an agent is active is easy, but that's only one part of the equation 回答1: See the Trigger and IsEnabled properties of the NotesAgent class: TRIGGER_AFTER_MAIL_DELIVERY (2) means "After new mail has arrived" TRIGGER_BEFORE_MAIL_DELIVERY (6) means "Before new mail arrives" TRIGGER_DOC_PASTED (3) means "When documents

Reading a remote URL in Domino LotusScript

前提是你 提交于 2019-12-11 01:25:08
问题 I have a remote RSS feed which has to be transformed into Notes documents using LotusScript. I've looked through the documentation, but I can't find how to open a remote URL in order to retrieve its contents. In other words, some sort of wget- or curl-like functionality. Can anyone shed some light on how to do this? Using Java is not an option. Thanks. 回答1: Check out the NotesDOMParser class - available in LotusScript - which lets you (indirectly) pull XML from a remote URL and process in a