Joined: 13 Oct 2011
Online Status: Offline
Posts: 26
Topic: How to filter inactive data Posted: 20 Oct 2011 at 4:26pm
Hi,
Does anyone know how to filter inactive data in crystal report XI formula?
I have a field call warehouse:
(if {@Warehouse} <>''
then{G.Warehouse} = {@Warehouse}
else true
)
This will call out all the warehouse included active and inactive.
I try to filter warehouse.isactive =1 but is not working
Joined: 13 Oct 2011
Online Status: Offline
Posts: 26
Posted: 21 Oct 2011 at 4:08am
Is not this.
In my product table have a column call "warehouse" field. I also have a warehouse table to keep the warehouse information.In warehouse table there is column/field call "IsActive" So, if the warehouse is inactive the value is = 0, if active the isactive column value=1.
When i link my product table to the warehouse table, i need to filter those isactive <>0 then product.warehouse. I do using select expert to set "warehouse.isactive" = true.
Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Posted: 21 Oct 2011 at 5:24pm
I don't know what your @warehouse formula is doing but the you can't have a then statement that alters existing data fields so it does not make any sense to me.
If isactive is a Boolean field then just use
And {Warehouse.IsActive}
If isactive has your 1/0 data then use
And {Warehouse.IsActive}=1
Joined: 13 Oct 2011
Online Status: Offline
Posts: 26
Posted: 23 Oct 2011 at 5:27pm
Originally posted by DBlank
You mean you have a user entered parameter?
Initial yes, user can enter through parameter.
Now I want to get the data from the database table so user can select their warehouse. I using back the same parameter. Just need to add the condition. But how I try the parameter is not working for that. Is still get all the data out from database instead of filter out the inactive warehouse
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