How to know active form when opening lookup form?

erik_kurniawanerik_kurniawan Member Posts: 7
edited 2009-01-27 in Navision Financials
Hi everybody...

When Navision Open Form Sales Order, and open No. Series Form by Textbox behalf Sales Header called
No.
, How can I know that No. Series Form is opened by Sales Order Form?

- I have function on Sales Order Form;

IF CurrForm.ACTIVE THEN
EXIT(TRUE)
ELSE
EXIT(FALSE);

Return Value is Boolean.

- When No. Series Form use this function return value is always FALSE.

thanx...

Answers

  • SavatageSavatage Member Posts: 7,142
    do you need to know the form name by code? Or do you just want to know?

    while in a form tools->design will give the form name & #
  • DenSterDenSter Member Posts: 8,307
    How can I know that No. Series Form is opened by Sales Order Form?
    What is the purpose, what are you trying to accomplish?
  • erik_kurniawanerik_kurniawan Member Posts: 7
    | do you need to know the form name by code? Or do you just want to know?
    | while in a form tools->design will give the form name & #

    No, I want to Know that No. Series Form is called by Sales Order Form. Because i want to filter No. Series if it called by Sales Order Form. For any form like Purchase, Transfer, Item Journal, etc will by pass the filter... how can i do that? thanks...
  • DenSterDenSter Member Posts: 8,307
    It already does that when you click on the (...) button, run the debugger and step through the code to figure out how it works. In NAV development you never know from where a form is opened, you prepare the form from where you call it.
Sign In or Register to comment.