- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Parameter question: Can I leave a dynamic parameter blank?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-27-2012 09:49 AM
I have a report with dynamic paramaters for beginning and ending inventory item numbers and static parameters for beginning & ending product lines. My goal is to be able to select either a range of items OR a range of product lines. Below is my formula:
{AR_InvoiceHistoryDetail.ItemCode} in {?Beginning Item Number} to {?Ending Item Number} and
{AR_InvoiceHistoryHeader.InvoiceDate} in {?Beginning Date} to {?Ending Date} or
{AR_InvoiceHistoryDetail.ProductLine} in {?Beginning Product Line} to {?Ending Product Line} and
{AR_InvoiceHistoryHeader.InvoiceDate} in {?Beginning Date} to {?Ending Date}
If I only want to select a range of product lines, I'm still required to select a range of item numbers.
Is there a workaround for this?
Re: Parameter question: Can I leave a dynamic parameter blank?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-27-2012 10:56 AM
Have you tried something like this:
if {?Beginning Product Line} = "" then
{AR_InvoiceHistoryDetail.ItemCode} in {?Beginning Item Number} to {?Ending Item Number} and
{AR_InvoiceHistoryHeader.InvoiceDate} in {?Beginning Date} to {?Ending Date}
else
{AR_InvoiceHistoryDetail.ProductLine} in {?Beginning Product Line} to {?Ending Product Line} and
{AR_InvoiceHistoryHeader.InvoiceDate} in {?Beginning Date} to {?Ending Date}
Re: Parameter question: Can I leave a dynamic parameter blank?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-27-2012 11:20 AM
Re: Parameter question: Can I leave a dynamic parameter blank?
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-27-2012 01:39 PM - last edited on 01-27-2012 01:43 PM
Dynamic parameters in Crystal cannot have default values and must be explicitly selected. That said I don't suppose there would be any reason that you could create a dummy product line and inventory item called "NONE" and change your logic to
( {AR_InvoiceHistoryDetail.ItemCode} = "NONE" or
(
{AR_InvoiceHistoryDetail.ItemCode} in {?Beginning Item Number} to {?Ending Item Number} and
{AR_InvoiceHistoryHeader.InvoiceDate} in {?Beginning Date} to {?Ending Date}))
or
(
{AR_InvoiceHistoryDetail.ProductLine} = "NONE" or
(
{AR_InvoiceHistoryDetail.ProductLine} in {?Beginning Product Line} to {?Ending Product Line} and {AR_InvoiceHistoryHeader.InvoiceDate} in {?Beginning Date} to {?Ending Date}))
You would need to post at least one NONE item to get the dynamic list populated. If you begin your codes with an ampersand (&) they will show at the beginning of the dynamic lists.
The bummer about dynamic paramters is that they provoke the MAS login screen for EACH parameter even when they are installed on the custom reports menu. Maybe I should have mentioned that first! :-)
Re: Parameter question: Can I leave a dynamic parameter blank?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-30-2012 07:52 AM
Thanks Dan. I realized pretty quick that the dynamic parameters would prompt for logins. Unfortunate, but I guess that's the price we pay.


