ImportCustomer(CustImport : XMLport "WS ImportCustomer";VAR myCust : XMLport "WS ReturnCustomer") : Text[50] CustImport.IMPORT; BEGIN Cust.FINDFIRST(); Cust.SETRANGE(Cust."No.",CustImport.GetCustomer); myCust.SETTABLEVIEW(Cust); END; cuMgtLogs.LogsMgmt;
Codeunit Import Customer ImportCustomer(CustImport : XMLport "WS ImportCustomer";VAR myCust : XMLport "WS ReturnCustomer") : Text[50] ProcessCust.SetParam(CustImport,myCust); IF NOT ProcessCust.RUN THEN LogMgt(GETLASTERRORMSG); Codeunit Process Customer SetParam(NewCustImport : XMLport "WS ImportCustomer";VAR NewmyCust : XMLport "WS ReturnCustomer") CustImport := NewCustImport; myCust := NewmyCust; OnRun() CustImport.IMPORT; BEGIN Cust.FINDFIRST(); Cust.SETRANGE(Cust."No.",CustImport.GetCustomer); myCust.SETTABLEVIEW(Cust); END;
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Thanks for your reply but the problem begins in the line "CustImport := NewCustImport" since these are XMLPort variables.
NAV gives me an error "Assignment is not allowed for this variable."
I wanted to copy the content of one variable XMLport to another but i have not been sucessfull.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
I guess this means that it is not possible to use XMLPorts as a WebService parameter and have a Logging logic in NAV.
I guess i'll try to find another solution.
Thank you for your help.
Do you find another solution for this case? I think we have the same!
Thanks