Loading ...

Zencoding In Web Essentials

Hello everybody, today I want to point to some useful features of ZenCoding in web essentials. Quick reference of ZenCoding shortcuts:     # use it for creating id    . use it for creating a class attribute    [ ] use it for creating a custom attribute...

Notes About Angularjs Webinar

Hello everybody, few notes about some details of AngularJS. 1. What is $scope? $scope is something where we can store information which is needed for page. Also data for changes of which we need to track. 2. How can we react on some changes in $scope? In other words if something at page modified...

Http Service And Promises

Hello everybody, today another glimpse from the AngularJS world which I can name of how to get something from server. So, imagine that you see following code in your controller:   var OrderController = function($scope, $http) {     $scope.order = $http.get("/orders/1563"); } and no...

Angularjs Mouse Directives

Just short notice of AngularJS mouse directives: ngClick, ngDblClick, ngMousedown, ngMouseEnter, ngMouseLeave, ngMousemove, ngMouseover, ngMouseup Ready to take your Acumatica experience to the next level? Just like AngularJS mouse directives—ngClick, ngDblClick, and more—empower seamless us...

How To Define Properties In Javascript

Hello everybody, here is short notice of how to define properties in javascript:   So, lets say you want to have class Dog, with "private" field alias and public property Alias. you can achieve it in the following way:   function Dog(nameOfDog) {     var alias = nameOfDog; &nb...

Hierarchy For CTE In MS SQL

Hello everybdoy, today I want to write some notes about hierarchy research in ms sql database.  Imagine you have following structure in your table  TableWithParentChild: id               |           rootID   |    ...

How To Clean Plan Query Cache

Hello everybody, some sql notes: dbcc freeproccache; this one will clean plan of cached of sql.   Another note of how to find Sql code and plan by id from dm_exec_cached_plans create function SqlAndPlan(@handle varbinary(max)) returns table as return select sql.text, cp.usecounts,cp.cac...

MOQ And Unit Test

Hello everybody, today I want to write few words about Moq and unit testing.  First of all you can have a question, why do I need Moq at all? Moq is especially useful for cases if we don't have desire to code interface, then code implementation of interface, and then code fake implementation...

Override Equals Method Of Value Types

Hello everybody. Today I want to give some demo. using System; using System.Diagnostics; namespace StackOverflowQuest { class Program { struct StructTest { public string TestString { get; set; } //public override bool Equals(object obj)...

How To Set Current Record In Acumatica

Hello everybody, today I want to share one trick which can save you few lines of code. Imagine case: you created graph, and want to read something from db, and then set current property of that graph view to some value. How to do it in one line? The anser is simple, with help of Search<> Fo...