Run Form from a report

karuchuakaruchua Member Posts: 151
Hi all,

am trying to run a form from a report.

the form opens but not with my filters.

how do i pass the filters to the form?

Comments

  • mohana_cse06mohana_cse06 Member Posts: 5,504
    Can you show us the code please.

    Take a record variable of table (sourcetable of form)
    apply filter and pass the record while calling RUN/RUNMODAL command
  • karuchuakaruchua Member Posts: 151
      FnCheckItemLE;  
    
     LItemREC.SETCURRENTKEY(LItemREC.Make,LItemREC.Model,LItemREC.Category);
     LItemREC.COPYFILTERS(Item);
    
    
    FORM.RUN(FORM::"Inventory With Zero Movement",LItemREC);
    

    FnCheckItemLE; // this function modifies a field on my item table


    the whole of this code is on OnPreDataItem trigger of the item dataitem.
  • udayrmerudayrmer Member Posts: 171
    Instead using COPYFILTERS function do manual filtering
    Uday Mer | MS Dynamics NAV Techno-Functional Consultant
Sign In or Register to comment.