Initiate UserSession and DBSetting: Difference between revisions
Content added Content deleted
Line 10: | Line 10: | ||
{{Warn|UserSession must only initiate once in the application. |
{{Warn|UserSession must only initiate once in the application. |
||
Do not create more than one instance in a running application. As it may consume system resource and has an impact on your application performance.<br/> |
Do not create more than one instance in a running application. As it may consume system resource and has an impact on your application performance.<br/> |
||
After obtained the object of UserSession, pass it as |
After obtained the object of UserSession, pass it as argument to constructor or method. |
||
}} |
}} |
||
{{Note|Plug-in development does not require to create new connection to AutoCount Accounting. |
{{Note|Plug-in development does not require to create new connection to AutoCount Accounting. |
||
Because, user has already login to the account book.<br>Programmer can access the UserSession that is |
Because, user has already login to the account book.<br>Programmer can access the UserSession that is sent as argument "e" at plug-in initiate, and as parameter in constructor. |
||
}} |
}} |
||
===Unattended Connection without loading UI components=== |
===Unattended Connection without loading UI components=== |