Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Urgent: Populating table fields based on a parameter value

Status
Not open for further replies.

kncd2005

Programmer
May 31, 2005
14
US
Hi,

I have 2 different tables that can be linked together by the same field name. I want to display all field values from these tables in Crystal Report 11 based on a parameter value getting from JSP. For example,

Table 1
Employee_ID First_Name
1 Tom
2 Bill
3 James


Table 2
Employee_ID Extension_Number
1 123
2 456
3 789

If I have the value "1" for the Employee_ID (getting from JSP parameter), how do I get the First_Name and Extension_Number values (i.e Tom and 123) to display in my CR 11? Your prompt to this issue is greatly appreciated. Thanks.

KNCD2005
 
Not sure what your question is, nor whether this parameter exists within the Crystal Report already, or if you are stating that you have a parameter collection screen in Java and you want to modify the record selection formula within the report.

I would suggest creating the parameter within Crystal, and then joining table1 to table 2 within Crystal, and then populating the parameter from your java code.

Here's the jsp samples:


check out: jrc_set_multivalue_parameter

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top