|
![]() |
#1 |
Участник
|
It is time to look at new features in NAV 2013 C/Side. This will be quick overlook of new commands and functionality in the developers environment, which is replacement of the classic client and is intended only for developing now.
New commands [Ok :=] xRec.SETAUTOCALCFIELDS([Field1] ,…)[Ok :=] xRec.SETAUTOCALCFIELDS([Field1] ,…) Using this command you tell NAV to automatically calc the FlowFields after new record is read into the variable. You do not need to call CALCFIELDS in the repeat-until loop now and the fields will be calculated in one step with the reading the data. [SecurityFiltering :=] xRec.SECURITYFILTERING([SecurityFiltering]) The security filter model was changed in NAV 2013 and I hope that it will be much more usable now. Through this command you can set different modes:
Keys If you run the Symbol menu, you can find out that there is new group of command for each record variable, just under the “Functions” group. In this Keys group you can select existing keys and insert it into the code. No more manual entry of keys in NAV 2013! Type := GETDOTNETTYPE(Expression) This command will help you when using DotNet interop. It will return you the type object for the selected assembly. In NAV 2009 you needed to use workarounds to get the type. Ok := CANLOADTYPE(DotNet) Before you use some assembly, you can test if you can use it. Could help you when you are not sure, if the assembly is installed. String := CAPTIONCLASSTRANSLATE(CaptionClassText) Function will translate the caption class. It is using new function in CU1 with ID 15. [IsActive :=] CODECOVERAGELOG([NewIsActive] [, MultiSession]) This old command have new parameter – MultiSession. It looks like now you can use codecoverage for all sessions… CODECOVERAGEINCLUDE(ObjectRecord) No more info on this, it looks like you can enable CodeCoverage only for selected object. CODECOVERAGEREFRESH It looks like it reread the codecoverage data. CODECOVERAGELOAD No info on this. May be similar to previous one… String := GETLASTERRORCODE New command to read the error code. String := GETLASTERRORCALLSTACK If there is error, you can read the call stack to be able to show more info to user or log more info somewhere. New debugger commands There is whole new set of commands to work with debugger. Because the new debugger is based as Page in NAV, all functions of the debugger are exposed as commands and tables within NAV. It means, if you want, you can create your own debugger in NAV! New session commands Classic NAS was replaced with functionality, which allows C/AL to create new sessions which are doing what you need in background. There are new three commands for this: [{Ok} :=] STARTSESSION(SessionId, CodeunitId [, Company] [, Record]) Start new session, which will run the selected codeunit, in selected company with selected record. ExecutionMode := CURRENTEXECUTIONMODE Return the execution mode of the current session. The execution modes are EXECUTIONMODE::Standard or EXECUTIONMODE: ![]() [{Ok} :=] STOPSESSION(SessionId [, Comment]) You can decide to stop previously started background session. USID := USERSECURITYID Will tell you the User SID. Usage? Do not know yet… SETUSERPASSWORD(USID, Password) If you are using NavUserPassword authentication, you can change the password for selected user through code. CHANGEUSERPASSWORD(OldPassword, NewPassword) If you are using NavUserPassword authentication, you can change the password of current user through this function. ID := SESSIONID Will return the current session ID. ID := SERVICEINSTANCEID Will tell you ID of your NST. Test page functionality There is whole new area of functionality about testing the pages. You can simulate the user actions through the new commands. Than you can run automatized tests of the UI! I recommend to read more in documentation, look at some blog articles, watch the recorded sessions about this… Query functionality Again, whole new area of functionality. You can use the Query object to read data through complex select statements and loop through the result in code or save it as XML or CSV file. </h5> <h5> DotNet interop changes You can now consume events of the DotNet assemblies (WithEvents property). Addin changes When you are creating addins, you can again create events which you can consume in NAV, or you can add methods, which you can call from NAV. And there is more than that. You can set the Addin behaviour lik automatic resize etc. Conclusion There is a LOT of new things in NAV 2013, but I am sure, that there will be LOT of blog articles in next days, because the NDA for MVPs about NAV 2013 beta was lifted. Thus, watch the blogs of my fellow MVP friends for more info… As you can see, NAV 2013 is really big jump, may be bigger than NAV 5 to NAV 2009 jump. Источник: http://blogs.msmvps.com/kine/2012/05...ta-what-s-new/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|