×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Findings with DetachContent() Method

Findings with DetachContent() Method

Findings with DetachContent() Method

(OP)
Hi All,
I am creating a simple report which displays details of Orders.
There are three categories of orders

Bulk Scheduled
Regular Scheduled
AdHoc

The layout of the report is as below:
For every customer, three rows will be displayed, one for each category.
The customer name, is displayed at the same level of the details and not as Group Header or something..
Here is a sample:

Customer Name   Order Cat   Sold    Booked

ABC Cust             Bulk S           1       1
ABC Cust             Regular S      2       9
ABC Cust             AdHoc            4       11

How I want it to be displayed is:

Customer Name   Order Cat   Sold    Booked

ABC Cust             Bulk S           1       1
                         Regular S      2       9
                         AdHoc            4       11


Now,
I used DetachContent(CustmerNameControl), to detach the Customer Name control for 2 out of the three row.
Followig is my finding:
If I use DetachContent() in Start method of the frame on which this control resides, the report slows down like hell and the time taken by the report increses almost 2 time.
If I call the same method the same way in Finish method of the frame, the report works fast.

Has anybody came across with similar issue?

Thanks in advance!
Abhijit

RE: Findings with DetachContent() Method

How about:
- Define a global. Say flag AS integer.
- 1st report sets flag to 99 or something known.
- 1st report allows cust name to appear in control.
- All other reports test flag in OnRow() of the control.
  IF flag = 99 THEN
     DataValue = ""  ' Space out cust name  
  END IF

RE: Findings with DetachContent() Method

(OP)
Hey Milton,
Yes..even that can be done...
But the intention behind asking the question about DetachContent is not to find an alternative but to know if you guys have came across any situation like this before.

Appreciate ur comments!
Thanks!

abhijit

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close