Create a view concatenating information to use in @DbLookup

I have Documents describing Reports that have the fields, RptName, RptRecipient and AltRecipient.

Any one recipient might be on many documents, there are about 80.

I want a view that will show a person in one column, whether they appear in the RptRecipient OR the AltRecipient field in any of the documents, and the associated RptNames they show up on.

So the result might have, in one row

Recipient              Report
Jane Doe               Expense Rpt, HR Rpt, Vacat Rpt

Where there are three documents, one for each report, and Jane may have been in either the RptRecipient OR the AltRecipient field, but in this view there is only one row.

The purpose is to use this view for an @DbLookup formula based on the user name.

1.  I have a view that displays the RptRecipient and one Report per row, so there are multiple rows with one user name, and I don't know if @DbLookup will step through all the rows
2.  I can't get the first column to list both the RptRecipient and AltRecipient together.  I've tried RptRecipient : AltRecipient but it won't show the AlRecipient.
jkee54Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SysExpertCommented:
see

http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/Lotus_SmartSuite/Lotus_Notes/Q_20736189.html

also this might be helpful.

Also , can either field be blank or have multiple values

Also have you considered using @DBcolumn instead of  @DbLookup ?


I hope this helps !
0
Sjef BosmanGroupware ConsultantCommented:
In a view, one row contains data from one document, unless it is a category row. One row never contains data from multiple documents.

1) @DbLookup doesn't "step through", but if you categorise the view, @DbLookup will give you only the distinct values
2) What do you mean "together"? Is the column categorised? Then use a formula like:
      @Trim(@Unique(RptRecipient : AltRecipient))

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jkee54Author Commented:
That did the trick, works like a charm, thanks!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Lotus IBM

From novice to tech pro — start learning today.