Multi company - Filter error

thensthens Member Posts: 17
Following error occurs in NAV 5 SP1.

Considers 2 company's:
Company A: This company has job 1 to 10
Company B: This company has job 11 to 20

When I work in company A, I open de Job card, with job 4.
I close this one and open company B.
When I now try to open the job card, I get the following error:


Microsoft Dynamics NAV
There is no Job within the filter.

Filters: No.: 4, Advanced Job: Yes

OK


It seems that Nav is trying to open this same Job card (Job 4), eventhough I am working in another company.
This company does not have this Job, so the error makes sence in that way...
Does anyone have a clue how to solve this?

Thanks in advance!

Comments

  • jglathejglathe Member Posts: 639
    Hi,

    try to set the SaveTableView property in the form to "no". Drawback: no filters will be saved. Another workaround would be to test on the form if the filter is empty:

    OnOpenForm:
    If isempty then reset;

    This will open the form without filters if the filters lead to an error. Should also apply to pages btw...

    with best regards

    Jens
  • sunnyksunnyk Member Posts: 280
    Try to delete your zup file and try!!!!!!!!!!!
  • kinekine Member Posts: 12,562
    I have found similar problem. In most cases is problem the filter on primary key. If you look at standard forms like Sales Order, you can find one line which clears the primary key filter. It could help you too...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • jglathejglathe Member Posts: 639
    Hi,

    even this in OnFindRecord() of the form would avoid the error, but not clear the filter:
    EXIT(FIND(Which));
    

    Interesting option, though.

    with best regards

    Jens
Sign In or Register to comment.