Home RAP

GetAutoSearchDescriptionLines problem

edited June 2003 in RAP
RB7.02 D6 EndUser DADE with rap

I use the GetAutoSearchDescriptionLines method to put out the values
in the title page. I have a report that has an autosearch criteria
that uses a select clause such as:

Field is ID (a numeric)
Operator is inList
Value is Select id from customer where name like 'S%'

The query and report work fine but if you use the
GetAutoSearchDescriptionLines method it throws an error. I think it
is trying to convert the value to an integer in the ConvertValue
method.

How do I get around this?

Thanks,

Rick Matthews
Dartek Systems Inc.

Comments

  • edited June 2003
    Is this with a DADE dataview or a query on a form/datamodule? It works fine
    in tests here. Can you reproduce this problem with our demos?

    You don't have to use the GetAutosearchDescriptionLines, but rather you can
    build your own description by looping through the Report.AutosearchFields
    array proeprty checking Report.AutosearchFieldCount. Then once you pull out
    a TppAutosearchField, you can reference its value and description. See the
    help on TppAutosearchField for more info on its members.

    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited June 2003
    Jim,

    No, as I said it was Dade.

    I have emailed an example using your report explorer end user demo
    that shows the error.

    Cheers,

  • edited June 2003
    I totally missed the DADE part. Sorry.

    BTW- We did not receive a demo for this issue.Can you resend it to
    support@digital-metaphors.com


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited June 2003
    Lost in the ether I guess. I have sent it again with subject of
    "GetAutosearchDescriptionLines sample".


    Cheers,

  • edited June 2003
    Ok, we got an email example from you today. I'll dig into it this morning!


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited June 2003
    A patch is available to fix this problem when using sub selects for DADE
    search criteria and then calling Report.GetAutosearchDescriptionLines.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.