Results 1 to 2 of 2

Thread: [RESOLVED] Crystal Group Name

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2005
    Location
    Chesterfield, UK
    Posts
    162

    Resolved [RESOLVED] Crystal Group Name

    In Crystal XI is there any way I can test what field a particular group is using.

    If you imagine a sales order I have report that can print the details in one of 3 seqeuences, line number, part number or bin number. If the report is printed in Bin sequence I need to create a formula to print some text. (The grouping is driven by a VB.Net app).

    i.e.

    if group field 1 = {salesorder.bin} then "message text" else ""

    Hope it makes sense!

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Aug 2005
    Location
    Chesterfield, UK
    Posts
    162

    Re: Crystal Group Name

    Cracked it!

    if GroupingLevel ({salesorder.bin})=1 then "Warehouse Copy" else ""

    Groupinglevel returns the group level of the field supplied, in the other sequences it returns 0 as its not a group by field.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width