Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Parameter Crystal Reports Post Reply Post New Topic
Author Message
fsilvabrasil
Groupie
Groupie
Avatar

Joined: 08 Jul 2013
Location: Brazil
Online Status: Offline
Posts: 42
Quote fsilvabrasil Replybullet Topic: Parameter Crystal Reports
     Posted: 13 Feb 2014 at 3:11am
good day

someone help with this doubt with crystal, developed the report created the parameter of the filter is the analytical and synthetic. Only this que pull information from the Cost Center "cc" or at the Average Cost "cm" information has the same vision.

Syntax.

if (UpperCase({?visao}) = 'cm') then true
else not isnull({AGR_REQ_CENTRO_CUSTO_V.ID_CENTRO_CUSTO})





IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 13 Feb 2014 at 5:22am
Not quite sure what the question is.  If you want to filter by information from Cost Center and Average Cost, then you need to include those fields in as part of a filter.

But I have noticed a couple of things.  First off doing a upper case on the prompt,but then comparing to the lower case string might still work, but not advised.  Second the NOT in front of the is null is a function.  Modified formula below.

if (UpperCase({?visao}) = 'CM') then true
else not(isnull({AGR_REQ_CENTRO_CUSTO_V.ID_CENTRO_CUSTO})
)
IP IP Logged
fsilvabrasil
Groupie
Groupie
Avatar

Joined: 08 Jul 2013
Location: Brazil
Online Status: Offline
Posts: 42
Quote fsilvabrasil Replybullet Posted: 13 Feb 2014 at 5:46am
thank you

at tip solved the problem. have one with another report that has been developed that is shown to the product on the document type and NF equal to the product does not show the type of document like NFS.


example.

(
If  isnull(({AGR_ENTRADA_V.COD_TIPO_DOCUMENTO})) Then
   'NFS'
Else
   {AGR_ENTRADA_V.COD_TIPO_DOCUMENTO}
)
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum