lotus-formula

Is it possible to pass arguments in lotus notes dialog box

强颜欢笑 提交于 2020-01-06 21:39:54
问题 I have one form with two fields called "Field 1" and "Field 2" and one action button called "check". On click of that action button, i want to open dialog box with three fields which should get auto populate based on Field 2 value. How to achieve it? Appreciate if anyone helps me. 回答1: Yes, it is possible. There's a document parameter for NotesUIWorkspace.DialogBox() . Use this document to pass parameters to your dialog. UPDATE Assume you have a form with name "MyDialogForm" to represent your

Search document in lotus notes

你。 提交于 2019-12-25 02:57:32
问题 I can't solve the problem with searching documents in lotus notes. I have a form SearchForm where placed a some fields (like date_from , date_to , document_title etc.) and button 'Run search'. I have a view 'SearchView' where I want to display the search results. When user enter the search criteria and click Run search button I want to display the SearchView with documents. But I don't how to write click handler of button Run search . Also I prefer to use Formula language to perform this

No of Years, Month and Days

前提是你 提交于 2019-12-24 22:31:52
问题 I created Lotus Notes database for HR Department. I entered field Join date. Also entered field “Total Service Period”. I want get the calculated Number of Years, Month and Days of service in to “View” and to update the service period daily. 回答1: This is just a re-posting of a formula I posted seven years ago in the Lotus Notes and Domino 4 and 5 forum: startDate := Time1; endDate := Time2; startDay := @Day(startDate); endDay := @Day(endDate); startMonth := @Month(StartDate); endMonth :=

Lotus Notes: Is it possible to create a view that excludes documents in all folders other than Inbox?

折月煮酒 提交于 2019-12-13 01:25:45
问题 I am aware that you can exclude certain folders - but you have to name them. I need a view to show only the documents in the inbox, that doesn't need updating everytime we create a new folder. Any help would be greatly appreciated! :) 回答1: It is not possible directly. There are no formulas that would help you build a select statement to get documents that are only in the Inbox. However, you could have an agent run on a scheduled basis (maybe every 5-10 minutes) that would update documents and

Incorrect data type for operator or @function time/date expected on lotusscript?

*爱你&永不变心* 提交于 2019-12-12 04:35:27
问题 In lotusScript: I've used: doc.DocDate = Format(document.get("DatePublished"),"mm/dd/yyyy") 'Rem return 08/22/2017 In formula: I've used for to get year: @Year(DocDate) But when i run the program i get the error : "incorrect data type for operator or @function time/date expected". How to fix it? 回答1: Get date value with document.DatePublished(0) or document.GetItemValue("DatePublished")(0) Then your field DocDate should be calculated properly. @Year() expects a NotesDateTime value. DocDate is

Lotus Notes: Not allowed to access System Properties file

我们两清 提交于 2019-12-12 02:08:59
问题 I added this code to load the system properties file in Java Agent but i am getting error as allowed to access system properties. I want to load the abcd properties file which is in Windows server in C drive From there properties file is going to be picked from the code. inp = new FileInputStream("/abcd.properties"); if(inp== null) { System.out.println("FIND NOT FOUND!!!!!!!!!!!"); } else{ System.out.println("FIND FOUND"); } p.load(inp); System.out.println(p.getProperty("flag")); I tried

lotus notes, search data that equal to textbox

怎甘沉沦 提交于 2019-12-12 01:59:49
问题 I don't understand why my code is not allowed. @If(@DbLookup("":"nocache";@DbName;"GPA";1)="GPnum";@Failure(@Command([FileSave])&@Command([CloseWindow]));@Success)` Please help me. Thank you. 回答1: @If(@DbLookup("":"nocache";@DbName;"GPA";1)="GPnum" your code should have 1 more parameter. from help @DbLookup( class : cache ; server : database ; view ; key ; fieldName ; keywords ) So you have "GPA" as view and then you need to specify Key and field/column you wish to return. Also for DbLookup I

Order by in Lotus Notes formula

别来无恙 提交于 2019-12-12 01:13:03
问题 Is is possible to query those documents from a Lotus Domino database which have bigger universal ID than a given number/ID and order them by their universal ID with a Lotus formula query? If yes, how? In SQL the following is similar to what I'd like to: SELECT universalId FROM all_documents WHERE universalId > custom_value ORDER BY universalId 回答1: Yes: SELECT @Text(@DocumentUniqueId) > custom_value This will work in a view selection formula. If you also make the formula for the first column

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

Issue in setting unique ID in Domino designer

雨燕双飞 提交于 2019-12-11 10:37:38
问题 I am new to Domino designer and lotus script, following my second question, I have some issue in setting unique ID (for id field in form). My formula for Id field value : T_List:=@DbColumn("" : "NoCache"; "Local"; "DBintro";"testview"; 1); @If(@IsNewDoc & @Elements(T_List)=0;1;@IsNewDoc & !@IsError(T_List);@Subset(T_List;1) + 1;id) I'm having DB in local (nothing shared). referred this link an Answer by AndrewB Server : Local DBname : DBintro view name : testview id - field in the form (which