Get Key filter in subform Purchase Line

pruebasEx
pruebasEx Member Posts: 51
In a form of a Purchase, we have Purchase Header and the Purchase Lines on a subform.

I want to get the key filter when you change de sort of lines on subform with hotkey SHIFT+F8, and then pass it to the header form where I will call a report to print the purchase.

Thanks!

Answers

  • pruebasEx
    pruebasEx Member Posts: 51
    Up!
  • AK
    AK Member Posts: 226
    Not exactly sure if I understood you completely, but a starting point might be to use GETFILTERS and CURRENTKEY in the OnActivateForm trigger. You'll have to check if the filter or the key has actually changed, since this will always fire whenever the form gets the focus.