Para criarmos um infolog ao iniciarmos o AX basta alterar o método workspaceWindowCreated da classe Info.
Um exemplo, para obter o kernel:
- void workspaceWindowCreated(int _hWnd)
- {
- // Put workspace window specific initialization here.
- UserInfo userInfo;
- str kernelVersion;
- str applicationVersion;
- str hotfixVersion;
- ;
- kernelVersion = xInfo::releaseVersion() + '.' + this.getKernelBuildNo();
- WinAPI::SetWindowText(_hWnd, strFmt("%1 - %2",WinAPI::getWindowText(_hWnd), xInfo::configuration()));
- ApplicationVersion = ApplicationVersion::buildNo();
- if(ApplicationVersion::GLSAppl()!='')
- {
- applicationVersion += ApplicationVersion::GLSAppl();
- }
- info(strfmt("%1 - %2 %3/ %4 %5", "Kernel", "Esperado:", "5.0.1500.1330", "Obtido:", kernelVersion));
- info(strfmt("%1 - %2 %3/ %4 %5", "Application", "Esperado:", "5.0.1500.1313", "Obtido:", applicationVersion, hotfixVersion));
- select firstonly AutoLogOff
- from userInfo
- where userInfo.Id == curuserid();
- if (userInfo && userInfo.AutoLogOff)
- this.setTimeOut(identifierstr(autologoff), userInfo.AutoLogOff*1000*60, true);
- this.setTimeOut(identifierstr(watchDog), #watchdogInterval, false);
- }
O resultado é o seguinte:
Alexssander
Nenhum comentário:
Postar um comentário