Hi Setiaji
 
You are not sending any data to the report. You must use the send method when you override the fetch method to send data to be printed to the report or you may use a programmable section to print the data by calling element.execute(<ControlNumber>).
 
<ControlNumber> is the value of the ControlNumber property of the programmable section.

Varden Morris

 

J. Wray & Nephew Ltd. - Group I.S.

234 Spanish Town Road

Kingston 11, Jamaica, W.I.

 

Phone:  (876) - 923 - 6141 Ext. 2226
Fax:      (876) - 923 - 5372

Cell:      (876) - 3833566
Email:   [EMAIL PROTECTED]

            [EMAIL PROTECTED]  

setiaji kurniawan <[EMAIL PROTECTED]> wrote:
Hi guys, i need some help. Below is my fetch method
that always return "Report is empty".
In InventTrans, currently i have record in that range.
..strange...is there any solution ?

public boolean fetch()
{
InventTrans              _inventTrans;
boolean                  ret;
Query QueryInventTrans   = new Query();
QueryBuildDataSource bds =
QueryInventTrans.addDataSource(TableNum(InventTrans));
QueryBuildRange br       =
bds.addRange(fieldNum(InventTrans,Qty));
QueryRun qr              = new QueryRun
(QueryInventTrans);

br.value('1..500');
while (qr.next())
{
  InventTrans = qr.get(tablenum(InventTrans));
}
    ret = true;
    return ret;
}


-setiaji-

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


Sharing the knowledge on Axapta.


Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!

Sharing the knowledge on Axapta.



Yahoo! Groups Links

Reply via email to