You have to access the reportrun instance using the reportRun method of the
query and downcast this to an object to be able to access the "non-standard"
(means your own) report methods.


taken from a posting from linus
technet.navision.com Posting date: Wednesday, March 16, 2005


... copied from that postinig start .....................................

//query prompt
public boolean prompt()
{
    boolean                 ret;
    ReportRun               rr;
    Object                  obj;
    ProjJournalID           ID;
    Query                   qr;
    QueryBuildDataSource    qbd;
    QueryBuildRange         qbr;
    ;

    ret = super();

    if (ret) {
        rr  = this.reportRun();
        obj = rr;

        ID  = obj.GetMethodOfYourVarAssignedInInitPreSuper();
        // must be downcasted to object
        // otherwise you ll get an compile error - methods are not checked
on object vars
        if (ID) {
            qr  = this.query();
            qbd = qr.dataSourceTable(tablenum(ProjJournalTable));
            qbr = qbd.addRange(fieldnum(ProjJournalTable,JournalID));
            qbr.value(queryvalue(ID));
        }
    }

    return ret;
}

... copied from that postinig end .. .....................................


...


regards

Douglas

----- Original Message -----
From: "ANIL OZAY" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, July 07, 2005 9:02 AM
Subject: [development-axapta] Accessing report functions from query


> Hi all,
>
> I have trouble when accessing report function from init function of Query
> of report.
>
> For ex, in the init method of query :
>
> str reportRange = element.parmRange();
>
> How can i access it?
>
> Thanks for now..
>
> Anil Ozay
> Software Engineer, MBSCP, MCP
> Anadolu Bilisim A.S.
>
> [Non-text portions of this message have been removed]
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>





SPONSORED LINKS
Computer part Programming languages Microsoft axapta
Support exchange


YAHOO! GROUPS LINKS




Reply via email to