I have a very simple function for a label.
My parameter: {?LocationCode}
1)
if parameter is seleted to be All it should show "All locations"
(This always works)
2) if a parameter is selected I want to show the description as well for the selected one.
Sometimes there's no records for the selected parameter than the formula shows nothing for some reason. I want to at least show the selected parameter...
Here's what I have:
-------
if {?LocationCode} ="" then
"All Locations"
else if Trim({vwrptAssetByLocation1.LOC_CODE_1})<>"" then
{vwrptAssetByLocation1.LOC_CODE_1} & " - " & {vwrptAssetByLocation1.LOC_DESC}
else
{?LocationCode}
-------
I guess instead of making a comparision with view.field, should I be making a comparision with record Num? i.e. if the report doesn't have any records then show parameter. Is there a formula that shows if the report has any records? Maybe there's something else...
My parameter: {?LocationCode}
1)
if parameter is seleted to be All it should show "All locations"
(This always works)
2) if a parameter is selected I want to show the description as well for the selected one.
Sometimes there's no records for the selected parameter than the formula shows nothing for some reason. I want to at least show the selected parameter...
Here's what I have:
-------
if {?LocationCode} ="" then
"All Locations"
else if Trim({vwrptAssetByLocation1.LOC_CODE_1})<>"" then
{vwrptAssetByLocation1.LOC_CODE_1} & " - " & {vwrptAssetByLocation1.LOC_DESC}
else
{?LocationCode}
-------
I guess instead of making a comparision with view.field, should I be making a comparision with record Num? i.e. if the report doesn't have any records then show parameter. Is there a formula that shows if the report has any records? Maybe there's something else...