Use View Dialogue for choices options


Hello,

I've got a Dialog List field which uses a View Dialog for choices options.  The View is displayed and the value in column 1 of the selected document is returned to field 1.  How can I add to this so that the values from column 2 and column 3 are added to fields 2 and 3?  

The issue is in the View Dialog there could be several options with the same name (for example there are 10 John Smith) and when I compute fields 2 and 3 using a standard @DbLookup it pulls in the value from all 10 John Smiths into fields 2 and 3

I'm convinced this should be easy but today is not my day.  Too many easter eggs.
RichardStarkeyAsked:
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.

cezarFCommented:
try @Unique(@DbLookup(.........))  
0
CRAKCommented:
I often tend to use a @Picklist in a button or hotspot instead and rerieve either concatenated data or the chosen document's unique id (@Text(@DocumentUniqueID)).
Field 1, 2 and 3 would be editable and hidden and each of them would be accompanied by a similar computed for display field.

If the value you retrieve is a UNID:
UNID := @Picklist(.....);
Field field1:=@GetDocField(UNID, "Field1Source");
Field field2:=@GetDocField(UNID, "Field2Source");
...

If the value you retrieve is concatenated data (using e.g. "~" as separator):
concData := @Picklist(.....);
Field field1:=@Word(concData; "~"; 1);
Field field1:=@Word(concData; "~"; 2);
...

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
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.