lotus-domino

checking if current user is author of the document

自闭症网瘾萝莉.ら 提交于 2019-12-20 04:32:07
问题 I have a formA where I have a field '_author' which is of type Authors/Computed for display with value (@Subset($Updatedby;1)). I display information from formA on viewA. What I want to achieve is that documents that are created by you are only visible to yourself on viewA. I tried the following formula in viewA 'View Selection': SELECT (form = "formA" & @UserName =_author). Even though I know that these two variables have the same values when I read it from the document's properties, the

checking if current user is author of the document

空扰寡人 提交于 2019-12-20 04:31:01
问题 I have a formA where I have a field '_author' which is of type Authors/Computed for display with value (@Subset($Updatedby;1)). I display information from formA on viewA. What I want to achieve is that documents that are created by you are only visible to yourself on viewA. I tried the following formula in viewA 'View Selection': SELECT (form = "formA" & @UserName =_author). Even though I know that these two variables have the same values when I read it from the document's properties, the

Using enum singleton coding pattern in a Domino Java Agent

冷暖自知 提交于 2019-12-20 03:40:20
问题 So this is the very simplified Lotus Domino Java agent code I am trying to run... import lotus.domino.*; enum SingletonTest { INSTANCE; public void helloWorld() { System.out.println("Hello World"); } } public class JavaAgent extends AgentBase { public void NotesMain() { try { System.out.println("Started"); SingletonTest.INSTANCE.helloWorld(); System.out.println("Done"); } catch(Exception e) { e.printStackTrace(); } } } But when I try to run it this is what appears on the Java Console...

Create room reservations using Domino data services REST API

不想你离开。 提交于 2019-12-20 03:11:48
问题 I've been attempting to create room bookings using the Domino data services REST API but I seem to be missing a trick. Sending a POST request to the document endpoint I am able to submit and create a reservation document which appears in the Rooms and resource view but the underlying room still shows as available in the notes client. Here is a sample of the request body: { "@authors": [ "CN=Andrew Jones/O=MyCorp", "" ], "@form": "Reservation", "From": "CN=Andrew Jones/O=MyCorp", "Chair": "CN

Lotus Notes Java app can’t find notes.ini

时间秒杀一切 提交于 2019-12-20 03:06:19
问题 Both the systems described are Windows XP with Lotus Notes 8.5. I have a Java app (sample code below) that uses notes.jar to interact with Lotus Notes. The app works fine on a system that has notes.ini in the Lotus install dir of c:\Program Files\Lotus\Notes and the user ID file is in c:\Program Files\Lotus\Notes\Data . The user has to type a password to login to Lotus. This system has HKLM\Software\Lotus\Notes\MultiUser set to 0 (single user system). On this machine, the below code displays

I want my Domino Servlet to get an authenticated user session

血红的双手。 提交于 2019-12-19 10:25:37
问题 It seems a like a pretty fundamental question, in a running Servlet hosted on Domino I want to access Domino resources that I have wisely protected using the the very fine security of IBM Notes and Domino. I want the Servlet to be able to read and write data to Domino whilst keeping that data from the client that called the Servlet (or xAgent) and preventing the client from writing directly. I'd be happy to be able to get a session that represented the signer of the application. I can get a

Domino Agent struggling with Java security using third party jar in /jvm/lib/ext

杀马特。学长 韩版系。学妹 提交于 2019-12-19 09:18:23
问题 I am running into a Java security problem. I have an agent which uses the pdfbox-1.7.1.jar to decrypt a PDF whose password I know. The jar has been placed in /jvm/lib/ext on both the server and my client, and I get this little beauty of a stack trace: java.lang.SecurityException at java.lang.SecurityManager.checkPermission(SecurityManager.java:582) at COM.ibm.JEmpower.applet.AppletSecurity.checkSecurityPermission(AppletSecurity.java:1332) at COM.ibm.JEmpower.applet.AppletSecurity

How to clean SSJS in Domino server after someone used javascript prototype in a nsf?

感情迁移 提交于 2019-12-18 13:07:46
问题 How to clean SSJS (Server Side Javascript) in Domino server after someone used javascript prototype in a nsf? Mark Roden discovered a huge weakness in XPages SSJS: (thanks to David Leedy for tell me about this and show me the article). If you have the following SSJS code: var dummyObj = {} dummyObj.prototype.NAME = "Johann" XPages SSJS doesn't care that you uses var (var means the variable must be local) and it makes dummyObj.NAME visible in the whole server with the value Johann . So if

Xpages Date Time Picker field defaults to today's date

心已入冬 提交于 2019-12-18 07:05:13
问题 Running a ND9 server and when browsing a Xpage with a date field, the default value for this field is always today's date. On a 8.5.3 server the control is rendered like this: <input class="dijitReset dijitInputInner" dojoattachpoint="textbox,focusNode" autocomplete="off" type="text" aria-valuenow="undefined" aria-invalid="false" id="view:_id1:_id2:main:fromTDate" tabindex="0" value=""> <input style="display: none;" type="text" name="view:_id1:_id2:main:fromTDate"> On a ND9 server the same

Lotus Domino: After changing TYPE of a field, Full Text Search won't work for this field

白昼怎懂夜的黑 提交于 2019-12-18 06:51:06
问题 My problem : I can't Full text search a view with the syntax [field_name] = text_value. Not in lotus Script nor in the "search the view" in the client. Additional information : When searching/More/By field / selecting my field, I get a combo box with "is equal to", "is greater than" ... meaning that for the FT index my field is (was in fact) NUMBER. But The field has been change to text years ago, existing data converted to text, full text index re created, OSD changed (hum I should check