Get field names in Formula Language - lotus-notes

I'm almost certain there's a way in the Notes Formula language to get the names of items ("fields") on a document, but I can't remember it, and there's no cross-reference from NotesDocument.Items in the documentation.

Okay, I thought of a place where I used this, and dug it up. It's #DocFields. I had been trying #DocItems, #GetItems, etc.

Related

Creating a spreadsheet with drop downs that work off of each other

I have 3 different planting suppliers. Each supplier has prices for each of my areas (States). Normally, I’ve used the tab called Combined Bids and done the arithmetic on my own.
Combined Bids
I’d like to make something where I can choose from dropdowns and it give me the price based on the dropdowns I choose.
For instance, if I chose Alabama, Reforestation Specialists, Loblolly, 8x10, and Hoedad on the “Interface” tab it would return $52.06.
"Interface"
Lists
I’ve tried using IF statements in the data validation, but I never seem to get it correct. Thought about a Lookup table but I don’t know.
How would you do it? Any information or help would be greatly appreciated. Thanks so much. I'd be happy to share the spreadsheet as well. I didn't see a place to upload it. Again thanks!
You can create a drop down list using Data Validation
and then get the value using the VLOOKUP function
This is something you might want to look into.

use microsoft word's mergemail to create an orgchart

I've been asked to create some sort of orgchart in Word. I have an Excel sheet with two columns, Employee_name and Dept_name that come from some HR database.
I've been hoping of doing this the simple way by (ab)using Word's Mergemail feature.
Before spending a lot of time on this (not having used this feature before), I was wondering whether this is actually possible: My main challenge is to group the names by department. There is a feature called "Directory" [1] that seems to be able to create lists of people, although it's listing people in alphabetical order, where I'd rather need to fill existing boxes (or circles in our case) with all the names that belong to that department.
Thanks for any help and pointers you can give.
[1] https://support.office.com/en-us/article/Create-a-directory-of-names-addresses-and-other-information-49afe95c-dc99-4cd3-85c7-3a80869cff90
PS: Not really a programming question, but I've seen Office-related questions on SO before. My apologies!

Excel: Create a dropdown menu from a dynamic list without duplicates

The question pretty much says it I guess. For detailed information:
I have a range of cells (F3:F2000) in which there can be names filled in. I want to be able to count the amount of times, a name has been mentioned. I am doing this with =COUNTIF(...), which is not the problem and works perfectly fine. But I want to be able to have a cell with a dropdown menu in which you can choose from all names mentioned in F3:F2000. My approach so far is to create a dynamic list, and then use this for the dropdown menu. But obviously it just uses all the entries and therefore I get a bunch of the same names. So how do I remove the duplicates? I assume this has to be done in the dynamic list.
Here is my formula for the dynamic list:
=OFFSET(Logbook!$F$3:$F$2000,0,0,COUNTA(Logbook!$F$3:$F$2000)+1,1)
And for those stuck with german excel like me :(, the german version:
=BEREICH.VERSCHIEBEN(Logbook!$F$3:$F$2000;0;0;ANZAHL2(Logbook!$F$3:$F$2000)+1;1)
Take a look at this posting, I think it answers your question.
http://www.get-digital-help.com/2009/05/25/create-a-drop-down-list-containing-only-unique-distinct-alphabetically-sorted-text-values-using-excel-array-formula

getDocumentByKey with view category separated by "\\" in XPages

I got a view where the fist column is categorized by one field and the second column is categorized with more values separated with "\".
I now try to get a document by key, it does not work until I remove the category option from the second column. I tried getEntryByKey, getAllEntriesByKey, getDocumentByKey, getAllDocumentsByKey in SSJS and in Java. I tried it just for fun with an LotusScript Agent and it works.
Another way that works is createViewNavFromCategory. But I also have some views where the first column is only sorted and of cause than this solution does not work for me.
Is that an known issue? Is there a way to work around this problem?
UPDATE:
I just want to use the first column for getDocumentByKey
I'd suggest trying in a Java agent. If that doesn't work, I'd raise a PMR. There are some differences between Java and LotusScript, so it's possible that it doesn't work. I found a similar inconsistency with number values (which should be fixed in 9.0.2, I believe) http://www.intec.co.uk/apparent-java-getalldocumentsbykey-getallentriesbykey-bug/
It may be that "\" gets escaped in Java, so you may need extra characters, same as you would in Formula Language

form not picking up data from another database

I have a form. When I open the form the two fields called office and group should be picked up from another database named something like staff.nsf. The data is picked up based on the applicant name as key. I have included my name in staff database. But the form is not picking up the two fields from the staff database.
The field formula goes like this,
server := #Name([CN]; #Subset(#DbName; 1));
temp:= #If(Applicant != ""; #DbLookup( "" : "NoCache"; server:"Mast\\Staff.nsf";
"ByApplicant";Applicant; 2); "");
#If(#IsError(temp);"";temp)
Is it a system bug? Can anybody help please.
Regards,
Priya
Lotus Notes is more than 20 years old, and extremely well-tested. It is very unlikely that you have found a "system bug". There are any number of possible problems here, and you need to carefully rule them out until you find the actual problem.
The first thing you should do is take the #IsError out of the formula (temporarily). By having it there, you are suppressing a potentially useful error message. Ok... admittedly the error messages are usually not that helpful, but sometimes they are. If you don't want to take it out of your formula, just add another computed-for-display field with just the #DbLoookup -- and follow Ken's advice about hard-coding everything.
Then review all of the following:
Is "mast\staff.nsf" the correct path for the database?
Do you have access to the database?
Is "ByApplicant" the correct name for the view? (Spelling errors happen!)
Do you have access to the view?
Do you have access to the documents in the view?
As Ken mentioned, is the first column in the ByApplicant view sorted?
Is the name value you are passing for Applicant in the exact same format that appears in the view column? (I.e, if it appears in abbreviated form in the view column, make sure that you are passing it to #DbLookup in abbreviated format.)
Does the second column of the view contain the value that you are trying to read? (Check out the rules for counting columns in the documentation for #DbLookup.)
A few thoughts:
The ByApplicant view needs to have its first column sorted alphabetically and that column should be the list of applicant names you are matching on
Try hard coding the value for applicant in the #DBLookup to see if it works, and to rule it out as the problem.
This does not work on the web, only on the client (I believe)

Resources