I have several folders to manage emails in a Lotus Notes database.
And I want to move email(s) to a specific folder just by a few key strokes.
It would act like this:
1. Click a button (It seems one cannot create a user-defined shortcut for user command)
2. prompt an ComboEdit box, whose options are the folders in current database.
3. input a few letters and the filtered results shows.
4. Choose the folder and press {enter}, the email(s) gets filed.
Just like Launchy to start a MS Windows application.
Is it possible to do this by using the #function and #command?
I've got some info here:
#Prompt([OkCancelEditCombo]; "Select a Database"; "Select a database to open, or type a database specification."; "Schedule"; "Schedule":"Phone Book": #Subset(#MailDbName;-1))
So how can I get a list of folder and to enable step3 to work?
In my Lotus Notes client I move my mails to a folder by just doing the following:
Click Alt + 5, M
(the number and the letter depend on the version and language of your mailtemplate, 5 is the fifth Button in the action- bar and "M" is the underlined letter for the action "Move to folder")
Start typing the name of the folder where you want to put the mail
Press Enter
No need to write even one line of code... And it even searches for folders CONTAINING the text, that I typed, not only folders STARTING with that characters...
No, there's no capability in Notes formula language or even in LotusScript that could allow typing a few characters and filtering the available folder names without requiring the user to press the Enter key or click on something first.
You could mock that up in a dialogbox using the onchange event of a dialoglist field that allows new values and doesn't define any values -- you would have to calculate the matching values yourself and put them up as the choices in a second keyword field. Or you could take advantage of the typeahead of the dialogbox field and give it all the folder names as its choices, but that wouldn't work exactly as you described.
BTW did you have a look at SwiftFile for Notes?
Related
I have tried the registry edit here: https://answers.microsoft.com/en-us/msoffice/forum/all/how-to-disable-hyperlink-warnings-for-office-365/9e96cae1-0960-4f20-898c-440cafd6cf7c
. I notice that my decimal 1 always reverts back to hexidecimal when I close. Upon restart nothing changes when I try to open the hyperlink in excel.
0 and 1 are exactly the same decimal and Hex, see here and here
The solution that is described in the link above (adding DisableHyperlinkWarning to the win registry) might not always work.
This solution should stop hyperlink warnings in Excel for Office 365:
Download Procmon (a monitoring tool for Windows that shows real-time process/thread activity):
https://technet.microsoft.com/en-us/sysinternals/processmonitor.aspx
Run Procmon.exe
Toggle Capture Events to off (File > Capture Events)
Clear the current events (Edit > Clear Display)
Toggle Capture Events on.
Click the desired hyperlink in Excel.
Turn Capture Events off.
Filter by Process=EXCEL.EXE (Filter > Filter, chose "Process" from the list, set field to "is", type "EXCEL.EXE" in the empty field, chose "Include" from the list and click "Add".)
Filter also by Operation=RegQueryValue and Result=NAME NOT FOUND
Find the first entry with "EditFlags" in the path (use the search icon to search the filtered list or CTRL+F)
Right click on that entry and select > Jump to (opens registry)
9 Add a new DWORD type named EditFlags with the hexadecimal value 10000.
In my case it was the key htmlfile_FullWindowEmbed
Modified from here
Is it changing back after restarting? if so, maybe you have some policy on your PC.
EDIT:
"The option to switch between the two is purely to allow entry in either format, it is always stored in Hex and for convenience the Decimal value is shown in brackets afterward in the field view
Selecting either option would have absolutely no effect on the program accessing the value and is the same either way."
Answer from here -> https://answers.microsoft.com/en-us/windows/forum/all/problem-with-regedit-fail-trying-to-modify-dword/c6cdf515-c517-4196-8d4a-582e942f9315
The simplest solution is to use Outlook. For example, if you want to cancel the reminder when opening the embedded pptx file, you can send yourself an email with the pptx file attachment in Outlook. After receiving it, double-click the attachment to open it, and a dialog box will pop up. The following There is a check box, "Always ask before opening this type of file", uncheck it, click Open, and there will be no warning when the embedded link of this type of file is opened in ppt or excel. This method also works for other types of files. There are some settings between office components that are related to each other.
Very often while coding, I need to search for keywords which are common and happen throughout a large file, but I am looking for an instance within a function.
The default search functionality often gives me all results starting from the top. Is there any way/workflow to search only within a specific method/function or block of code?
Update
Do Ctrl + F
Then Ctrl + Alt + E
Type the text to search
On MacOS, it's cmd instead of Ctrl
Original Post
You can do it like this (mentioned keymaps are for Linux):
Let's take as an example the following code, where we will be searching for the word "key" inside the method "clear". As you can see there are many occurrences of that word (in red, highlighted the ones we want in our results, and in blue other occurrences, which we do not want to appear in our search results)
1- Select the area you want to limit the search scope to.
2- Press Ctrl+Shift+F. It will pop up a search window with the selected text pre-filled in the search box.
3- Select the options "Scope" and, in the combo next to it, "Selection" (if they are not selected by default)
4- Type the word(s) you want to search (in this example, the key word).
5- The results shown will be limited to the selected area. Notice how there are only 9 matches in the upper right corner ("Match case" option is checked), despite in the same file there are many other occurrences of the same word.
However, I was neither able to find a key combination in order to do this as a single action nor assign a new one. Also, notice how the search includes the text in the method documentation.
Tested using IntelliJ IDEA 2018.1.4 (Ultimate Edition), Build #IU-181.5087.20 on Ubuntu 18.04
Looks like we're finally getting this feature in IDEA 2019.3:
https://blog.jetbrains.com/idea/2019/09/whats-new-in-intellij-idea-2019-3-eap-2/ (Ctrl-F for subtitle "Ability to search in a selected area when using the Find action")
It’s now possible to search only in a selected area using the Find action (cmd+F / Ctrl +F). Simply select the code piece you need in the editor and invoke the Find action and the IDE will perform the search only in the selected area.
Screenshot from the article (was a GIF originally)
There is a way to search inside a method, however, it doesn't seem to work for other scopes.
When searching in file as usual, click "Find all"
You'll get a list of results in the bottom panel. If you enable "Group by file structure" (I had it disabled by default), you can get a list of matches for a particular method.
On IntelliJ in Mac:
In a file select the specific block in which we want to find
something
Press CMD + F
Press CTRL + OPTION + G
Notice that the cursor has automatically landed in the find toolbar's text field
Type in what is intended to be found
Press enter to move the cursor
to the first occurrence.
I would like to create a button which then opens an inputbox, the user then inputs a message, and then I would like to create a table with there name & the message in, on the same form.
Is this possible in Domino Designer?
Formula?
LotusScripts?
Not knowing the proper use case, and expecting that more than just one user will be able to click that button for a single document, let me recommend a slightly different solution:
I tend to solve these by using a simple multi value text field, make it computed when composed. Then if a user enters a message I append (or prepend) a new line to the list field like in
[Lothar Mueller, 2015-05-01 15:00:01]: this is my message
Is there a way to implement a "Like" button for a database in Lotus Notes. I basically want to have a document in Notes, where is will be possible to click a button and its then liked.
At the moment I have a button but it can be pressed as many times as they want. If possible I would like to be able to only click it once?
Instead of counting the "likes", or incrementing a counter each time the button is pressed, instead save the current user's name to a list and then count the number of users in that list to tell you the number of likes.
On click this would be roughly:
ListOfLikes := #Unique(ListOfLikes:#UserName);
And then to display the count:
#Count(ListOfLikes)
Adding to #Ken's answer, you could use a pair of buttons for "Like" and "Unlike" with hide-when formulas. For the paragraph containing the Like button
!(#Username = ListOfLikes);
For the paragraph containing the Unlike button
#Username = ListOfLikes
(You don't need to use #IsMember for this, as comparing a scalar string against a list works the same way.)
The formula for the actual Unlike button would have to remove a name from the list, like this:
#Trim(#Replace(ListOfLikes;#Username;""));
I have formA where I have "_reviewer" field, which is text/editable. The field is populated when the save button is clicked, the button has the following code:
pick := #Name([CN];#PickList( [Name]));
#SetField("_reviewer"; pick );
#If(#Command([FileSave]);
#Do(
#MailSend(pick;"";"";"Subject";"Body";"";[IncludeDoclink]);
#Command([CloseWindow]);
#StatusBar("Success.")
);
#StatusBar("Fail!"));
I have viewA where document should be shown if the current user is the same as the person in '_reviewer' field, the code in View Selection is:
LCName := #LowerCase(#Name([CN];#UserName));
LCPeople := #LowerCase(_reviewer);
SELECT form = "formA" & (#Contains(LCPeople; LCName))
I have another viewB, where I can see all documents, and one of the columns is '_reviewer'. Now the issue is, even though on viewB I see that John Doe is reviewer for a documentA, the documentA is not shown in viewA when John Doe is logged in as the current user. The tricky part is, documents sometimes show up in viewA, and sometimes they don't, even though I repeat the same steps when creating the document. Having this behavior is unacceptable. Is there some other way to parse the current user and the user picked from #PickList, or some other way to check if the two are the same?
Use an embedded view in a Page like suggested in your last question. This time first categorized column would be #LowerCase(_reviewer) and "Show single category" would have formula #LowerCase(#Name([CN];#UserName)). The view selection is SELECT form = "formA".
You can't use user specific functions like #UserName in public view's selection formula.
Also note, that the user can save the document by pressing Ctrl+S or by closing the window and selecting Yes when prompted. They don't have to use your Save button. If there's really something that must happen before the document is saved, it must be done in the form Querysave event. If it has to happen after the document is saved, it must be in the Postsave event. Kudos for checking the return value of the save command though!