CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Displaying Foreign Key Values in Grid

Print topic Send  topic

Author Message
cringwall

Posts: 11
Posted: 11/04/2010, 7:14 AM

Hi all,

I like to display the 'text' values of my foreign keys that are in axillary 'lookup' tables in my grid.

So what I have been doing is, using list boxes to pull the values from the lookup tables into the grid and then just disabling the list box so it's grayed out. This way I can see what the real human value of the foreign key in the grid.

Is there a more elegant way to do this using a label instead? I can't figure it out.

Best,

Carl
View profile  Send private message
datadoit
Posted: 11/04/2010, 6:43 AM

Sure. Use a label, and in the label's BeforeShow use the DLookup action.
cringwall

Posts: 11
Posted: 11/04/2010, 7:49 AM

Wow, that was easy.

Thanks.

View profile  Send private message
dragoon


Posts: 173
Posted: 11/06/2010, 3:20 PM

structure your t-sql query and make use of a view.
a dlookup action will fire "n" additional queries on your sql box, where "n" is the number of rows in the grid.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.