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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to display all entries from a parameter

Status
Not open for further replies.

javedi

Technical User
Apr 30, 2007
196
GB
Hi Guys,

I have written some code that allows 'All' entries to be included by one option, or a selection of multiple entries. The problem is that only one is shown.

the code is
({AdminNameAddressDetails.StreetDescriptor} in {?Street} or {?Street} = "<ALL>") The {?Street} parameter allows multiple values, but only shows one. Any ideas how i can get all chosen option in the paramter to appear in the report?

Any help would be appreciated.

Thanks
 
If it is a string parameter, use a formula:

join({?Street},", ")

-LB
 
Thanks lbass,

How would the formula need to be implemented?

Thanks
Javedi
 
Go to view->field explorer->formula->new and enter it there. Then drag the result onto the report canvas.

-LB
 
Sorry lbass,

i meant to ask where do i include your formula, would it be in the code i use? or something seperate?
 
I don't understand your question. Aren't you just looking for a formula to display the parameter options that were selected?

-LB
 
Yes your right. But how do i use your formula in the report?
 
I've already explained:

Go to view->field explorer->formula->new and enter:

join({?Street},", ")

Save and close the formula and then drag the result onto the report canvas.

If you are still having trouble, you need to be more specific about what you are doing and what isn't working.

-LB
 
Are you the same person? There is an faq on how to display all kinds of parameter selections. But for numeric parameters, use:

whileprintingrecords;
numbervar i;
numbervar j := ubound({?parm});
stringvar display;

for i := 1 to j do(
display := display + totext({?parm},0,"") + ", ";
);
left(display, len(display)-2)

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top