Jump to content

Crystal Reports Experts Lopaliki Ravali - Help Plzz


Recommended Posts

Posted

[size=3][background=transparent]
I am looking for a formula which should return me rows when SerialNum = somenumber or SerialNum IS NULL. [/background][/size]
[size=3][background=transparent]
This is what i am using to achieve that(Last line is of interest here)[/background][/size][size=3][background=transparent]
{ORDR.CANCELED} <> "Y" and
(if (InStr ({?Pm-?Project},".") < 5) then
{RDR1.U_Project} = Mid({?Pm-?Project},1,InStr ({?Pm-?Project},";")-1)
else
({RDR1.U_Project} = Mid({?Pm-?Project},1,InStr ({?Pm-?Project},";")-1)) and
[size=5]({RDR1.SerialNum} = Mid ({?Pm-?Project}, InStr ({?Pm-?Project},";") + 1) OR IsNull({RDR1.SerialNum}))[/size])[/background][/size]
[size=3][background=transparent]
There is no error in the formula but this simply doesnt return rows for which serianum is null. I dont know why?[/background][/size][size=3][background=transparent]
Can someone see something wrong with this.[/background][/size]

Posted

try this
[color=#282828][font=helvetica, arial, sans-serif][size=5]({RDR1.SerialNum} = Mid ({?Pm-?Project}, InStr ({?Pm-?Project},";") + 1) OR [/size][/font][/color][color=#ff0000][font=helvetica, arial, sans-serif][size=5]{RDR1.SerialNum} = [/size][/font][/color][color=#282828][font=helvetica, arial, sans-serif][size=5]null)[/size][/font][/color][color=#282828][font=helvetica, arial, sans-serif][size=3])[/size][/font][/color]



[color=#282828][font=helvetica, arial, sans-serif][size=3]check the correct syntax....i think u got what i am saying[/size][/font][/color]

  • Upvote 1
Posted

[quote name='cherlapalli_jailer' timestamp='1372707139' post='1303908123']
try this
[color=#282828][font=helvetica, arial, sans-serif][size=5]({RDR1.SerialNum} = Mid ({?Pm-?Project}, InStr ({?Pm-?Project},";") + 1) OR [/size][/font][/color][color=#ff0000][font=helvetica, arial, sans-serif][size=5]{RDR1.SerialNum} = [/size][/font][/color][color=#282828][font=helvetica, arial, sans-serif][size=5]null)[/size][/font][/color][color=#282828][font=helvetica, arial, sans-serif][size=3])[/size][/font][/color]



[color=#282828][font=helvetica, arial, sans-serif][size=3]check the correct syntax....i think u got what i am saying[/size][/font][/color]
[/quote]


I got what you are saying, kani adi work avvatledu bro......null is not a keyword in crystal reports formula, so you are comparing a number with an unrecognized format antondi......

Posted

[quote name='halwaraaj' timestamp='1372707478' post='1303908146']


I got what you are saying, kani adi work avvatledu bro......null is not a keyword in crystal reports formula, so you are comparing a number with an unrecognized format antondi......
[/quote]
normal or condition full ga raayali
[color=#282828][font=helvetica, arial, sans-serif][size=5]or {RDR1.SerialNum} =[/size][/font][/color][color=#282828][font=helvetica, arial, sans-serif][size=5]IsNull({RDR1.SerialNum})[/size][/font][/color]

[color=#282828][font=helvetica, arial, sans-serif][size=5]did u try this[/size][/font][/color]

Posted

[quote name='cherlapalli_jailer' timestamp='1372707708' post='1303908161']
normal or condition full ga raayali
[color=#282828][font=helvetica, arial, sans-serif][size=5]or {RDR1.SerialNum} =[/size][/font][/color][color=#282828][font=helvetica, arial, sans-serif][size=5]IsNull({RDR1.SerialNum})[/size][/font][/color]

[color=#282828][font=helvetica, arial, sans-serif][size=5]did u try this[/size][/font][/color]
[/quote]

ya try chesa.......error vastundi.....bcoz condition turns out to be

[color=#282828][font=helvetica, arial, sans-serif][size=5]{RDR1.SerialNum} = TRUE[/size][/font][/color]
[color=#282828][font=helvetica, arial, sans-serif][size=5]{RDR1.SerialNum} = FALSE[/size][/font][/color]

Posted

did you check if there are actual nulls in the rows.. ante.. probably empty strings lantivi emana unayemo ani check chesava.. instead of null values... and

inkoti try chei.. [color=#282828][font=helvetica, arial, sans-serif][size=5]IsNull({RDR1.SerialNum} ee condition statement mundara petu..[/size][/font][/color]

[color=#282828][font=helvetica, arial, sans-serif][size=5]ante.. like this [/size][/font][/color][color=#282828][font=helvetica, arial, sans-serif][size=5]IsNull({RDR1.SerialNum} or YOUR ACTUAL CONDITION.. this mgiht work out try chei[/size][/font][/color]

Posted

so you don't want non null fields of [size=3][background=transparent][size=5]{RDR1.SerialNum} [/size][/background][/size]

[color=#ff0000]IF[/color] [size=3][background=transparent][size=5]IsNull({RDR1.SerialNum}) [color=#ff0000]then [/color][/size][/background][/size][size=3][background=transparent][size=5]({RDR1.SerialNum} = Mid ({?Pm-?Project}, InStr ({?Pm-?Project},";") + 1)[/size][/background][/size] [color=#ff0000]else[/color]

Posted

[quote name='cherlapalli_jailer' timestamp='1372707708' post='1303908161']
normal or condition full ga raayali
[color=#282828][font=helvetica, arial, sans-serif][size=5]or {RDR1.SerialNum} =[/size][/font][/color][color=#282828][font=helvetica, arial, sans-serif][size=5]IsNull({RDR1.SerialNum})[/size][/font][/color]

[color=#282828][font=helvetica, arial, sans-serif][size=5]did u try this[/size][/font][/color]
[/quote]
[quote name='athadu' timestamp='1372708931' post='1303908250']
did you check if there are actual nulls in the rows.. ante.. probably empty strings lantivi emana unayemo ani check chesava.. instead of null values... and

inkoti try chei.. [color=#282828][font=helvetica, arial, sans-serif][size=5]IsNull({RDR1.SerialNum} ee condition statement mundara petu..[/size][/font][/color]

[color=#282828][font=helvetica, arial, sans-serif][size=5]ante.. like this [/size][/font][/color][color=#282828][font=helvetica, arial, sans-serif][size=5]IsNull({RDR1.SerialNum} or YOUR ACTUAL CONDITION.. this mgiht work out try chei[/size][/font][/color]
[/quote]
[quote name='ultimatejeffa' timestamp='1372709877' post='1303908364']
so you don't want non null fields of [size=3][background=transparent][size=5]{RDR1.SerialNum} [/size][/background][/size]

[color=#ff0000]IF[/color] [size=3][background=transparent][size=5]IsNull({RDR1.SerialNum}) [color=#ff0000]then [/color][/size][/background][/size][size=3][background=transparent][size=5]({RDR1.SerialNum} = Mid ({?Pm-?Project}, InStr ({?Pm-?Project},";") + 1)[/size][/background][/size] [color=#ff0000]else[/color]
[/quote]


thanks for your replies guys.....I figured it out.......

What i am doing in else part is

else
(x) and ((y) or (z))

I changed it to

else
((x) and (y) OR (x) and (z))

syntax mistake...... F@#da F@#da

Posted

[quote name='halwaraaj' timestamp='1372710410' post='1303908433']
thanks for your replies guys.....I figured it out.......

What i am doing in else part is

else
(x) and ((y) or (z))

I changed it to

else
((x) and (y) OR (x) and (z))

syntax mistake...... F@#da F@#da
[/quote]
areiii Halwiii gaa balisinda ...naaku job chudara ante..ikada DB lo nuvvu nee natakaalu [img]http://lh6.ggpht.com/-pLotjruTwU8/T9VQrBiE0lI/AAAAAAAAGng/JioSCX6SR0U/s150/Trivikram-1.gif[/img]

Posted

[quote name='HAPPYNESS' timestamp='1372710465' post='1303908440']
areiii Halwiii gaa balisinda ...naaku job chudara ante..ikada DB lo nuvvu nee natakaalu [img]http://lh6.ggpht.com/-pLotjruTwU8/T9VQrBiE0lI/AAAAAAAAGng/JioSCX6SR0U/s150/Trivikram-1.gif[/img]
[/quote]


DB lo naku laga crystal reports errors ki answers adukkovali [img]http://lh6.ggpht.com/-pLotjruTwU8/T9VQrBiE0lI/AAAAAAAAGng/JioSCX6SR0U/s150/Trivikram-1.gif[/img]....adukkunta ante ippista.....

Posted

[quote name='halwaraaj' timestamp='1372710747' post='1303908458']


DB lo naku laga crystal reports errors ki answers adukkovali [img]http://lh6.ggpht.com/-pLotjruTwU8/T9VQrBiE0lI/AAAAAAAAGng/JioSCX6SR0U/s150/Trivikram-1.gif[/img]....adukkunta ante ippista.....
[/quote]
naku Java kavali [img]http://lh6.ggpht.com/-pLotjruTwU8/T9VQrBiE0lI/AAAAAAAAGng/JioSCX6SR0U/s150/Trivikram-1.gif[/img]

Java.....Pega BPM....MS SQL ...vetilo edo okati thagaleyyii [img]http://lh6.ggpht.com/-pLotjruTwU8/T9VQrBiE0lI/AAAAAAAAGng/JioSCX6SR0U/s150/Trivikram-1.gif[/img]

Posted

[quote name='HAPPYNESS' timestamp='1372711202' post='1303908487']
naku Java kavali [img]http://lh6.ggpht.com/-pLotjruTwU8/T9VQrBiE0lI/AAAAAAAAGng/JioSCX6SR0U/s150/Trivikram-1.gif[/img]

Java.....Pega BPM....MS SQL ...vetilo edo okati thagaleyyii [img]http://lh6.ggpht.com/-pLotjruTwU8/T9VQrBiE0lI/AAAAAAAAGng/JioSCX6SR0U/s150/Trivikram-1.gif[/img]
[/quote]

already tagalessesa.......boodidhaipoyayi aa positions anni......

×
×
  • Create New...