Putting Results in a dialog Field

Qwaletee, I think by now you know the code I am refering to.  After I select the Role and hit OK.  The field RolesForACLName get populated with the names assigned to the role example.

CN=Joe Smoe/OU=TNT/O=Corp; CN=Chris Kringle/OU=TNT/O=Corp

Is there a way that this field on the main form could be a Dialog Field and the two names be [CN] and shown for selection.  It could even be a check box.  The problem I am having they may be 3 users in the same role, but only one needs to respond.  
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.

If the main form field is to be dialog field then use formula for keywords option and set to point a hidden field .

Use this hidden field in your dialogbox.

Also wrap the field around @Name([CN];hiddenField) in the dialog field formula

In your setup, what I think would be best is if you did this in the main form, not the subform.  Hide the second field (NamesForACLRole).  Add a new field called SelectNameForRole, an EDITABLE listbox, use formula for choices, and enable refresh choices on document refresh.  The formula for SelectNameForRole choices should be: NamesForACLRole

You shoudl also change the button.  It now just has @DialogBox(...) in it.  Add ;@Command([ViewRefreshFields]) to teh button.

Now, NamesForACLRole is not visible, but does hold the choices for the new field, and the new field allows the user to select a name for the document.  The Refresh causes the new field's choices to update upon return from teh dialog box.

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
JaziarAuthor Commented:
On the first past the form works perfectly, but if I click the dialog button again, the displayed value in SelectNameForRole always reflects the first value.  How would you remove the value and reset it to the current pick?
JaziarAuthor Commented:
Never Mind I got it - Thanks
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.