Options

Debug Employee Portal

shibilyshibily Member Posts: 89
edited 2008-10-07 in Navision e-Commerce
How we can debug Employee Portal.

Regards,
Shibily

Comments

  • Options
    ta5ta5 Member Posts: 1,164
    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
    Thomas
  • Options
    shibilyshibily Member Posts: 89
    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,
    Shibily
  • Options
    ta5ta5 Member Posts: 1,164
    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?

    Thomas
  • Options
    shibilyshibily Member Posts: 89
    ya, the debugger is set to breakpoint on triggers

    Regards,
    Shibily
  • Options
    ta5ta5 Member Posts: 1,164
    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
  • Options
    shibilyshibily Member Posts: 89
    ok . the event is fired, but debugging is not.

    Regards,
    Shibily
  • Options
    ta5ta5 Member Posts: 1,164
    NAS is running on the machine on which you have started the dummy form, isn't it?
  • Options
    shibilyshibily Member Posts: 89
    ya
  • Options
    jlandeenjlandeen Member Posts: 524
    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.
    Jeff Landeen - Sr. Consultant
    Epimatic Corp.

    http://www.epimatic.com
  • Options
    krikikriki Member, Moderator Posts: 9,090
    [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!


  • Options
    SDaurenSDauren Member Posts: 14
    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.
  • Options
    shibilyshibily Member Posts: 89
    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.
  • Options
    SDaurenSDauren Member Posts: 14
    Hi, Shibily.
    If you do that I said, you will be able to debug all code in NAV.
  • Options
    IHateLinuxIHateLinux Member Posts: 223
    Hi Shibily,

    please have a look at my post in this thread:
    http://www.mibuso.com/forum/viewtopic.php?f=4&t=14228

    HTH,
    Rainer
Sign In or Register to comment.