Help me Regarding NAS

ajaybabuCh
Member Posts: 208
Hi
Please give me the details of do's and dont's on NAS
I knew that we should not use dialogue boxes and confirmations
what else that i do not use while running NAS
Is there any pdf about NAS. Please send me the link
Kind Regards
Ajay
Please give me the details of do's and dont's on NAS
I knew that we should not use dialogue boxes and confirmations
what else that i do not use while running NAS
Is there any pdf about NAS. Please send me the link
Kind Regards
Ajay
Ajay
0
Comments
-
Documentation about NAS is in your DOC folder on install cd (w1w1atas.pdf). More about NAS from designer point of view is in w1w1adg.pdf.
Example:Navision Application Server only supports dataports that don’t use request forms.0 -
can i use form variables and testfield fuction in nas
when i use the variable of type its throwing the error in event viewer
that
You can not use C/AL variables of type Form with NASAjay0 -
No, how you want to use FORM if there is no GUI???
No, it is not possible to use FORM under NAS... [-X0 -
You don;t want to use TESTFIELD because when that fails you get an error message and the transaction is aborted. What you want to do is control every contingency in code. So instead of doing TESTFIELD(SomeField,SomeValue) you do:
If SomeField = SomeValue THEN BEGIN // do something here END ELSE BEGIN // do something else here END;
That's the only way to prevent the event logfrom filling up with errors that you would normally see as a user. NAS is a client session without a human being looking at the screen, so you have to program it to act like one. Use your common sense to determine what you can and cannot do.
There's nobody looking at the screen, so why would you want to display anything? The only reason you ever should use a form object is when you need to display something. NAS doesn't have a user looking at the screen, so you never ever need to use a form when working with NAS.0 -
Don't forget about the GUIALLOWED function, which is useful for setting up seperate behaviors for the Nav client and NAS. Although there would be no need to use this function in the CU that is running under NAS, it can be a useful function if you are VALIDATEing fields.There is no data, only bool!0
-
I'm also not sure if you can run a dataport which imports a file from NAS. I had a dataport variable setup with all properties (filepath, import/export direction) and NAS showed error that "you can't use dataport....". That was in navi 3.7. Maybe in v4 its possible.0
-
fufikk wrote:I'm also not sure if you can run a dataport which imports a file from NAS. I had a dataport variable setup with all properties (filepath, import/export direction) and NAS showed error that "you can't use dataport....". That was in navi 3.7. Maybe in v4 its possible.
No it's still not possible in v4.0 -
As I wrote - this is citation of NAS documentation:Navision Application Server only supports dataports that don’t use request forms.
You need to disable request form on the dataport to be able to use it under NAS...0 -
I try to start a dataport by the NAS and the NAS displays: "You cannot use C/AL variables of type DATAPORT when running the Microsoft Business Solutions-Navision Application Server."
In the dataport I set the properties (in brackets the value): Filename (path to my local computer), Import (No), UseReqForm (No), ShowStatus (No).
I tried to start the dataport with Dataport-var and directly with DATAPORT.RUN(50000)
I always get the same error.
By the way: I use the sql-server, maybe it makes a difference.
Any ideas?0 -
What I found is that documentation says that it is possible but in real world it is not working... 8)0
-
-
I suggest writing a codeunit that works just like a dataport.
This is what I've been doing for integrations and using NAS.0 -
Just my 2 cents regarding testfield etc.
If you use the navision timer dll, you could just run your codeunit and in the trigger timer::onTimerError you could handle some errors or write a log0 -
Hi all,
I think you have no problem in using ERROR, TESTFIELD or also MESSAGE in NAS, because simply in that case the messages are all written in the NAS log because they don't need a user decision but they are only messages to the user.
I think the instructions that must be catched with GUIALLOWED are those ones that want a user decision so: CONFIRM, STRMENU. There are also the Dialog variables that must be controlled with GUIALLOWED.
Marco0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions