Combo-box, dynamic choice - return another value than displayed

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
ekwo
Posts: 15
Joined: Mon Nov 29, 2021 11:16 pm

Combo-box, dynamic choice - return another value than displayed

Post by ekwo »

Hi
I have a similar issue explained in this topic: viewtopic.php?f=4&t=1703
I want a drop-down list on a form column that lists fields from one BO dependent on a column value in the current form. Is it possible to List one value and return another value? eks list Description and return ID ?

Evelyn
Jaymer
Posts: 2466
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: Combo-box, dynamic choice - return another value than displayed

Post by Jaymer »

RegularUser BO. This shows the fields and sample data:
Name Jaymer
Initials Jay
DisplayCalc Jaymer (Jay)

The Calculated field is from a Rule Formula.

On a Job screen, the user picks the Salesman using the DisplayCalc field, that displays CHOICES from the user table.
Salesman Picker.png
Salesman Picker.png (34.03 KiB) Viewed 1887 times
Then, this rule fires, to lookup the Record and store the Initials (or ID# in your case).

Code: Select all

If Job.SalesmanDisplay WAS CHANGED  Then 
FIND RegularUser WHERE RegularUser.DisplayCalc = Job.SalesmanDisplay
 Job.SalesmanInit = RegularUser.Initials
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
Post Reply