Thursday, October 13, 2011

Custom code on application initialize

To add your custom code on application initizlize (Credits to Justin Anderson):
  • Create Search Screen
  • From the Write Code drop-down, select <ScreenName>_CanRun from the Access Control Methods category. This generates an Application class with the <ScreenName>_CanRun
  • Delete method <ScreenName>_CanRun and add Application_Initialize method

    Add this code in created clas to your check user permission

    partial
    void Application_Initialize()
    {
        //Write your Custom code
    }

  • Delete Search Screen (it is not needed anymore)

No comments:

Post a Comment