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
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.
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.
Thomas
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.
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.
Comments
- 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
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,
Shibily
1): NAS does not get the message at all
2): Is the debugger set to break on triggers?
Thomas
Regards,
Shibily
Actually I have never set up ep (only for testing). Please check all the necessary setup again from the pdf on the cd.
Thomas
Regards,
Shibily
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.
Epimatic Corp.
http://www.epimatic.com
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
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.
This is otherwise done by Sharepoint.
If you do that I said, you will be able to debug all code in NAV.
please have a look at my post in this thread:
http://www.mibuso.com/forum/viewtopic.php?f=4&t=14228
HTH,
Rainer