Problem while posting general journals with NAS

ajaybabuChajaybabuCh Member Posts: 208
Hi

I am working with integration between Oracle and Navision.

My task is I have to import the records from oracle, have to create

General Journals and I have to post them through Nas.

while I am posting if any error , NAS just throws them into Event Viewer.

and its saying that

"The Local computer may not have the necessary registry information
or message DLL files to display messages from a remote computer."


Could anybody please help me, I want to popup the messages, and confirmations and posting status window.

Kind Regards
Ajay
Ajay

Comments

  • ta5ta5 Member Posts: 1,164
    Hi
    EventLog: Normally the last sentence in an entry is the important one. Many of the events start with "The local computer may not have...".

    Messages and Errormessages: They also write in the EventLog. Remember, NAS is a basically a client without GUI.

    Status Windows and Confirm Dialogs: You have to avoid them by programming with "if guiallowed then..."

    Hope this helps
    Thomas
  • kinekine Member Posts: 12,562
    Yes, please, send us whole message you see in the event log, this part is useless..
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • ajaybabuChajaybabuCh Member Posts: 208
    With the above message which is marked in red it saying that

    You can not use C/AL variables of type FORM When running the Microsoft

    Business Solutions-Navision Application Server
    Ajay
  • kinekine Member Posts: 12,562
    I think that the message is answer to your question. You are not able to use FORM variable in code which is running under NAS. If there are just used some function from some FORM (for example Item tracking etc.) you need to mofe the functions into codeunit or somewhere and call them from there...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • DenSterDenSter Member Posts: 8,307
    If your posting routine is trying to use a form object, then someone modified the posting routine. You should be able to post through NAS fine, with a few adjustments to the visual parts of the code. What you would need to do is program it to only display information IF GUIALLOWED, so that NAS doesn't get confused. Of course you will have to program it also to set default values in case of user input. Then you also need to write a caller codeunit that you can use to evaluate the return value of the posting routine, so you can develop logging or error messaging capabilities. It's very advanced stuff though, I would not want to do this as my first project.
Sign In or Register to comment.