Basically, I have a need to batch post Purchase Orders that meet certain critera. I have no problem setting this up in code, but what I need to do is force the report (496) to always set the "Receive" and "Invoice" option on the report to True. (This is something which can not be trusted to the operator)
Basically, what I have now is something like this:
// rptBatchPO is defined as report 496
// POhdr is defined as record for the Purchase Header table
POhdr.RESET;
POhdr.SETFILTER(field1, value1);
POhdr.SETFILTER(field2, value2);
rptBatchPO.SETTABLEVIEW(POhdr);
rptBatchPO.RUNMODAL;
I do not seem to have access to the option values on the request form. Can anyone give me some pointers on how to set these - or tell me if it is "unpossible"?
Thanks in advance
0
Comments
Vew->Request Form->View C/al Code
OnOpenForm()
ReceiveReq := TRUE;
InvReq := TRUE;
plus any other changes you need.
Maybe Like
"Posting Date" := TODAY;
http://www.BiloBeauty.com
http://www.autismspeaks.org
Thanks
Works like a charm for us.
http://www.BiloBeauty.com
http://www.autismspeaks.org