Skip to Content
author's profile photo Former Member
Former Member

On-Demand SubReport Caption

Hi,

I have a on-demand subreport. I would like to set its caption to one of the fields in the details section of the main report. I wrote the below formula for it

if {V_ETC_210_SUMMARY_T.DESCRIPTION}<>Previous({V_ETC_210_SUMMARY_T.DESCRIPTION}) then

{V_ETC_210_SUMMARY_T.DESCRIPTION}

else

''

but for the first row of the data it displays the subreport name instead of ({V_ETC_210_SUMMARY_T.DESCRIPTION}) . I even tried to add to the formula that

if ({V_ETC_210_SUMMARY_T.DESCRIPTION}) ='' then

({V_ETC_210_SUMMARY_T.DESCRIPTION})

but that also doesnt work. I dont know how to do this.

Thanks,

Reena

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jul 23, 2008 at 02:56 PM

    Try it with this modification;

    if not(onfirstrecord) or {V_ETC_210_SUMMARY_T.DESCRIPTION}=Previous({V_ETC_210_SUMMARY_T.DESCRIPTION}) then

    {V_ETC_210_SUMMARY_T.DESCRIPTION}

    else

    ''

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 23, 2008 at 12:47 PM

    The '<>' didnt appear in the formula I pasted earlier.

    if {V_ETC_210_SUMMARY_T.DESCRIPTION}<>Previous({V_ETC_210_SUMMARY_T.DESCRIPTION}) then

    {V_ETC_210_SUMMARY_T.DESCRIPTION}

    else

    ''

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.