Hello,
I have a CrystalReport in which I want to devide the records in two groups depending on datatable field "id". In the first group I want to have the records which have id value less then or equal to 10, and in the second group >10. Also within the group I also want to have another group depending on id.
If the id<=10 I want the textobject in the crystal report to have value "Pr" and if >10 to have value "IS"
It should look like:
Pr (First group if id<=10)
id Name Price
01 ppp 124 (Embedded groups)
01 ppp 56
-------
180
02 kkk 67
03 nnn 89
Is (Second group if id>10)
22 mmm
23 bbb
25 ddd
I inserted group selection formula and chose is less then or equal to 10, but now I get only one group, I can not see the other group for the case if id>10 and Text12 has value "Is". I don't know what to do, how to solve this.
Can anybody please help me?
Thanks
P.S. I use one datatable from the dataset for the report.
Loading
NelPosted Jul 2, 2012, 5:52 AM
NelPosted Jul 2, 2012, 5:08 AM
Whenever I try to do what you suggested me
1)Insert 2 groups in crystal report & group both this 2 group by "id" field.
2)In 1 st group expert , in Suppress write condition id<10
3)In 2 nd group expert , in Suppress write condition id>10
both groups change, not only the one where I make the codnition. For example in the first group expert -> options->options->Use formula as a group name->ToText({DataTable1.idpod} <= "10")
If I open the second group, the same way as above, it is already changed like the first one. If I write here >10, it automatically changes in the first group expert:(. So, the both groups are same, and every time I see only one type of records, made either by the first condition, if I leave id<=10, or >10 if I set the condition in the second group. I can not see two groups, in both ways only one group is shown.
So, I don't know what to do:(
Pravin GhadgePosted Jun 30, 2012, 4:35 AM
Have u got the solution?
If no then reply
Pravin GhadgePosted Jun 29, 2012, 8:23 AM
In first group where id<10 , here you hardcode the text object as "PR"
and same for second group
NelPosted Jun 29, 2012, 6:48 AM
Pravin GhadgePosted Jun 29, 2012, 5:35 AM
I think it must work.
NelPosted Jun 29, 2012, 4:41 AM
Pravin GhadgePosted Jun 29, 2012, 4:19 AM
2)In 1 st group expert , in Suppress write condition id<10
3)In 2 nd group expert , in Suppress write condition id>10
Hope this may help you.
NelPosted Jun 29, 2012, 1:53 AM
Pravin GhadgePosted Jun 28, 2012, 9:50 AM
May i know from which field you have grouped your report.