Choice Options property SQL

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
jholsombach
Profound User
Posts: 27
Joined: Tue Feb 07, 2012 11:29 am
First Name: john
Last Name: holsombach
Company Name: stoneriver, inc.
Contact:

Choice Options property SQL

Post by jholsombach »

Is this a valid value for the choice options property for a database driven auto-complete?

AAAGT# || ' - ' || (SELECT AGNAME FROM WMAGP WHERE AGCO# = AACO# AND AGFEIN = AAFEIN AND AGMOD = AAMOD)

all are fields above except for WMAGP which is a file.

The idea is i want to populate my autocomplete with "Agent# - Agent Name" value. The agent name coming from a different file (one that does not have agent #, but rather links to agent # via their FEIN and MOD values).
User avatar
Brian
Profound Logic Staff Member
Posts: 286
Joined: Thu Apr 14, 2011 10:23 am
First Name: Brian
Last Name: May
Company Name: Profound Logic Software
Contact:

Re: Choice Options property SQL

Post by Brian »

If it does work, I would not recommend doing it this way. The better way to approach this is to create an SQL view that joins your two files and includes the columns you need. Once done, just use this new view instead of your original table in the database property.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests