Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: formula field Post Reply Post New Topic
Author Message
radheshyam
Newbie
Newbie


Joined: 01 Oct 2011
Online Status: Offline
Posts: 7
Quote radheshyam Replybullet Topic: formula field
    Posted: 24 Nov 2011 at 10:57am

User has two options through radio buttons in the front end:
1. with tax
2. without tax

If the user selects option 1, then I should filter the report based on table.tax>0
If the user selects option 2, then I should filter the report based on table.tax=0

 
I need to write the formula for it and include in the record selection formula.

And I should make the formula applicable to subreport as well.

I have done the following, could anyone let me know if I am right or wrong

I have a taken a parameter field named 'tax' of type string

then I introduced a formula field named 'tax'

if ({?tax} = "Without tax") then
{table.tax}=0
else if({?tax} = "With tax") then
{table.tax}>0

Then in the record selection formula

I just added

@tax

Is this method right or any flaws in it.

Could anyone correct it and also let me know how do i make it applicable in subreport
IP IP Logged
rahmaniac22
Newbie
Newbie


Joined: 24 Feb 2010
Location: United States
Online Status: Offline
Posts: 14
Quote rahmaniac22 Replybullet Posted: 28 Nov 2011 at 4:19am
Create a linked subreport using the same parameter.
IP IP Logged
Post Reply Post New Topic
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



This page was generated in 0.031 seconds.