Debug Employee Portal

shibily
Member Posts: 89
How we can debug Employee Portal.
Regards,
Shibily
Regards,
Shibily
0
Comments
-
I'm not a the office at the moment, but out of my head I would suggest the following:
- Look in Codeunit 1 what codeunit is called when Application Server is started with the Employee Portal parameter
- Create a dummy form with a button. When the button is pressed, the Codeunit you have just identified will be started
- Turn on the debugger, start the dummy form, press the button, debug
Hope this helps
Thomas0 -
Hi Thomas,
Thanks for your feedback.
My scenario is, i have added a webpart for employee portal.
Also added an action with 'Save' button.
I have identified the codeunit & turned on the debugger.
But its not firing.
Regards,
Shibily0 -
At the moment I see 2 possibiities:
1): NAS does not get the message at all
2): Is the debugger set to break on triggers?
Thomas0 -
ya, the debugger is set to breakpoint on triggers
Regards,
Shibily0 -
So it seems to me that nas never gets the event to start processing anything.
Actually I have never set up ep (only for testing). Please check all the necessary setup again from the pdf on the cd.
Thomas0 -
ok . the event is fired, but debugging is not.
Regards,
Shibily0 -
NAS is running on the machine on which you have started the dummy form, isn't it?0
-
ya0
-
I've found that debugging NAS isn't completely bullet proof and it's tough to get NAS Debugger to recognize your break points.
Another option that may allow you to debug things more easily is to just build a simple codeunit that fires the Employee Portal Request Handler codeunit (just like in CDU1). Then if you stop the "real" NAS and run your new codeunit you should have much better success getting the Breakpoints to fire.0 -
[Topic moved from Navision forum to Navision e-Commerce forum]Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Hi.
If you want to Debug any specific parts then the easier way to Debug NAS is by designing Code unit 6810 and adding the following lines at the top:
IF GUIALLOWED THEN
SetNASID('NEP-1');
Then stop the NAS, and run the codeunit from a normal client instead. [Then you can activate the debugger and see what NAS would be doing.
I hope this information is helpful to you.0 -
Can u plz explain how to do this with the function InsertHeader and its parameters of the Codeunit(EP Insert Head Data Mgt.) from a normal client.
This is otherwise done by Sharepoint.0 -
Hi, Shibily.
If you do that I said, you will be able to debug all code in NAV.0 -
Hi Shibily,
please have a look at my post in this thread:
http://www.mibuso.com/forum/viewtopic.php?f=4&t=14228
HTH,
Rainer0
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