How to send parameter and then clear it?

julkifli33julkifli33 Member Posts: 1,087
i send parameter from SO
BEGIN
  CLEAR(ImportMatSO);
  ImportMatSO.Param("No.");
  ImportMatSO.RUNMODAL;
END;

and in report,i create function like this
Param(ParDoc : Code[20])
DocNo := ParDoc;

first i send parameter is correct (SO001)
and then second (SO002)..... it appears the first parameter (SO001)
how to clear it?

Answers

  • kinekine Member Posts: 12,562
    WHat do you mean with
    first i send parameter is correct (SO001)
    and then second (SO002)..... it appears the first parameter (SO001)
    how to clear it?

    What do you mean with "Second"? It is second call to the function? It is called in a loop?
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • julkifli33julkifli33 Member Posts: 1,087
    kine wrote:
    WHat do you mean with
    first i send parameter is correct (SO001)
    and then second (SO002)..... it appears the first parameter (SO001)
    how to clear it?

    What do you mean with "Second"? It is second call to the function? It is called in a loop?

    what i mean second is second imports
    i already fix it
    it because in that report properties SaveValues = yes
    I change become no
    now it works
  • vijay_gvijay_g Member Posts: 884
    you mean when i am going to clear a report, the request form does not clear.have you debuge to calling function parameter.
    Param(ParDoc : Code[20])
    DocNo := ParDoc;
    
    check what's value of ParDoc here?
    have you try it with call by reference?
Sign In or Register to comment.