Populate a "Numeric Text Field" using a "Drop down List" that is looking at a DB

Good Morning. I am trying to populate a Numeric Text Field (Memory Tag) using a drop down list that is pointing at a DB File. I think I have the drop down list set up correctly to show the values I want
image

Now I am stuck getting the selected value to populate into the Numeric Text Field.

My drop down list and the Numeric text field are in separate templates. Does it make more sense to put the drop down on my template where the Numeric Field is?

Thank you for any input.

You’re going to have a hard time putting a prefix like AD or RB into a numeric text field. You technically can:
image
But it requires customizing the number format property, and it won’t manually edit ‘cleanly’; you can enter the same prefix that’s already defined, and it will be ignored, but you can’t change it by editing the text field.
image

A formatted text field is probably closer to what you want; a regex pattern like [A-Z]{2}\d{5} will only allow two uppercase letters, then five digits, which will do at least a basic level of input validation.

Yes. You are correct…LOL I started down a different path originally. I should just turn that into a label field that excepts strings.??

Yeah, a label is probably your best bet if you don’t want any input. You can also use a regular text field but mark it not editable in the properties if you prefer that appearance.

Then would I just bind the value selected to mt Label Tag?

Since you’ve already got a dropdown, bind the label’s text value to the selectedValue property on your dropdown; or, if you’re using tags throughout, use those. Be wary that if you’re using a regular tag, not a client tag, all clients will ‘share’ the same value - one user switching the dropdown will update all other open clients to that value.

I am using a Memory tag to hold the values. I am also using indirect tags to display where Each material is located. BD1, BD2, etc

Thank you for your help.