Set Primary Key value in Request form when perss print[solve

JAYESHJAYESH Member Posts: 290
Hi Experts,

I have one form in which i have Print button.
What i want when any one press print button. The primary Key value of the Form is set in to Request form.

For eg.

Primary key of the form is NO.

Request form - Request field is NO.

Value of NO. field on form is 1.
When user press print button 1 is set to Reqest form - Request filed NO. = 1.

So user can direct take print.

Thank you
JAYESH PATEL

Comments

  • Revolution1210Revolution1210 Member Posts: 161
    There are a few ways of doing this:
    YourRecordVar.SETRANGE("No.","No.");
    YourReportVar.SETTABLEVIEW(YourRecordVar);
    YourReportVar.RUNMODAL;
    

    or
    CurrForm.SETSELECTIONFILTER(YourRecordVar);
    REPORT.RUNMODAL(REPORT::"Report Name",TRUE,FALSE,YourRecordVar);
    
    Ian

    www.NextEqualZero.com
    A technical eye on Dynamics NAV
  • JAYESHJAYESH Member Posts: 290
    Thanks very much its working..:)
    JAYESH PATEL
Sign In or Register to comment.