Time taken to load a form

rashi.kaushikrashi.kaushik Member Posts: 52
edited 2006-03-27 in Dynamics AX
Hi All

I want to display the time taken to load the form i am opening to be displayed in the status bar.

Any ideas how to do this will be of great help.

Thanx in advance
Rashi

Comments

  • SavatageSavatage Member Posts: 7,142
    personally I don't know why it doesn't take a split second?

    what form are you having trouble with?
  • rashi.kaushikrashi.kaushik Member Posts: 52
    Hi Savatage

    Actually my SalesOrder form is too heavy.
    I want to check the time taken to load it on different servers.
    I need to display this time in the status bar.

    Thanks
  • SavatageSavatage Member Posts: 7,142
    Sorry I didn't realize I was in the Axapta forum :oops:
  • rashi.kaushikrashi.kaushik Member Posts: 52
    Thanks
    I figured it out myself.
  • MugurMugur Member Posts: 93
    Hi Rashi,

    I don't know how to display this in the status bar, but why not you use a custom Progress screen? I suggest you open it before the call of any stmt in init() and close after the call of all stmts in run().

    Hth,
    Ciprian
    Kind regards,

    Ciprian Dudau
    Axapta Developer
  • rashi.kaushikrashi.kaushik Member Posts: 52
    Mugur

    What i have done is i have calculated the current time before the Super() of init and after the Super() of run and found the difference and after that i have set the focus SalesId field and set its help text.

    SalesTable_SalesIdAdvanced.setFocus();
    SalesTable_SalesIdAdvanced.helpText("Time taken to load the form is " + time );

    This way i have been able to get this info in the status bar.

    Thanks
    Rashi
  • MugurMugur Member Posts: 93
    very nice :D:wink:
    Kind regards,

    Ciprian Dudau
    Axapta Developer
Sign In or Register to comment.