lotus-notes

How to call a java shared script library from a Java agent in Xpages?

社会主义新天地 提交于 2019-12-11 06:27:40
问题 I have an agent that is set to run every day at 8:00 I want to write a java code (in a shared library) and call that library from the agent with parameters. For Example: Agent code: // .... checkAndSendMail(email_1); checkAndSendMail(email_2); // .... java library code: public class Check{ public void checkAndSendMail(String email_param){ // ... mail.send(email_param); // ... } } Can I call a java shared script library from a Java agent in Xpages? if yes, then how to call? 回答1: You can do

Referencing parent field on document creation

瘦欲@ 提交于 2019-12-11 06:25:15
问题 I have a form called ProductFamily . It has a field called ProductFamilyMBValues which is a list of strings. I've got a response document using a form called Item , which is always a response of a document using the above form. The Item form has a dialoglist field ItemMakeBuy that has the validation formula @If(@Length(ItemMakeBuy) = 0;@Failure("You must choose a Make or Buy value");@Success) The choices for that field is a formula: @IfError(@GetDocField($ref;"ProductFamilyMBValues");"?") .

Lotus Notes Attachment embodied within the body of the mail not as an attachment

痴心易碎 提交于 2019-12-11 05:58:37
问题 I've got a problem with Lotus Notes (apart from it's lotus notes), when we receive an e-mail with a csv attachment the attachment gets embodied into body of the message. Is there any setting on the lotus server I can change to stop this from happening? Anyone out-there with any ideas? 回答1: After over a week I've found out what the issue was. The email sender sent the email with a Context Description of inline rather then attachment thus lotus notes rather then notice that the file extension

Query is not understandable - using field Fulltext search [Tags] = “foo”

江枫思渺然 提交于 2019-12-11 05:31:18
问题 I have a problem that only happens rarely with FT search. but once it happens it stays. I use the following search term in the FT search box in Lotus Notes [Tags] = "foo" in most application this search term work fine. but for some applications this search term gives the error "query is not understandable". It does not matter if I replace the value, e.g [Tags] = "boo" produce the same result. and also FIELD Tags = "boo". for the record [Tag] = "foo" works fine so it seem be issues with the

xPage dateTime picker validation does not work on date change

微笑、不失礼 提交于 2019-12-11 05:01:05
问题 Here is my datePicker control where expression validation works fine: <xp:inputText id="inputComboUntil"> <xp:this.converter><xp:convertDateTime pattern="MMM d, yyyy"></xp:convertDateTime></xp:this.converter> <xp:this.validators> <xp:validateExpression> <xp:this.expression><![CDATA[#{javascript:var var1 = getComponent("inputDate").getValue(); if(var1!=null){ var var1D:NotesDateTime = session.createDateTime(var1); var var2D:NotesDateTime = session.createDateTime("Today"); var2D.setNow(); if

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?

Accessing Lotus Notes database from Excel VBA - how do I pick up COLUMNVALUES?

不羁的心 提交于 2019-12-11 02:59:22
问题 I am investigating pulling data from a Notes database directly into Excel as our Finance guy is manually re-typing figures a.t.m. This is my code so far: Sub notesBB() Const DATABASE = 1247 Dim r As Integer Dim i As Integer Dim c As Integer Dim db As Object Dim view As Object Dim Entry As Object Dim nav As Object Dim Session As Object 'The notes session Dim nam As Object Dim val As Variant Dim v As Double Dim items As Object Set Session = CreateObject("Lotus.NotesSession") Call Session

Is it possible to programmatically tell Lotus Notes to generate a new secret key?

落爺英雄遲暮 提交于 2019-12-11 02:27:13
问题 I'm looking for a means to programmatically tell Notes to generate a secret key (like File, Security, User Security, Notes Data, Documents). Is there such? It does not appear so. The goal is to be able to have a template that auto-provisions all of the secret keys necessary for that application to operate. 回答1: As Richard mentions there is no direct way to fully automate this, but you can automate some of it. In Domino 9 it is possible to create secret keys via the Domino console. So you

Lotus Notes - Java UI - Eclipse plugin

情到浓时终转凉″ 提交于 2019-12-11 01:42:15
问题 Can a sidebar plugin use an actionlistener (or something else) to determine when the actionbar button 'save and send invitations' is pressed (within a new calendar entry for example)? If so, can it also intercept the action and perform backend or ui modifications before allowing the button action to proceed? Looking for any ideas on how to skin this cat (no actual cats will be harmed during coding). Thx 回答1: The code that runs when clicking actions on a Notes form, is not Eclipse Java code

get a field value from a webpage - lotusscript

落花浮王杯 提交于 2019-12-11 01:37:19
问题 I need to read the field value from a webpage using lotusscript. Essentially I am planning on writing an agent to go to a specific URL, get a value from the page, and then use this value for the url it sends the user to. Can anyone give me a pointer? A 回答1: I do this all the time, it is not hard at all (on Windows). I created a class to do this, so it is very easy to implement. Here is how you call it: Dim internet As New RemoteHTML() Dim html As String html = internet.GetHTTP("http://www