Using pre-commit

By Arjun Subramanian,

The pre-commit function is a server scoped function that flushes the instances in the current transaction to the persistence layer and locks them to the current transaction. If another transaction tries to read this resource, it either reads stale data or is denied access. Difference between commit and pre-commit functions The pre-commit function flushes a  … Read more

Tricks with “@” Macro in NexJ Scheme

By Johnny Zhang,

NexJ Scheme is NexJ’s scripting language, which is based on and extends Scheme R(6)RS. The at sign (“@”) is a special macro in NexJ Scheme, and provides a special way of accessing a value through associations relative to this pointer and much more. This table summarizes the most common use cases of the @ macro  … Read more

Controlling View Security on the Record Level

By Syed Irtaza Hassan,

In NexJ Studio, it is possible to provide record-level view security on any class. This means it’s possible to handle scenarios where we want only non-deleted employee records to be visible to all non-admin users, while admin users should be able to see all the employee records. Record-level view security is set by specifying the  … Read more

Using messages to transfer information between systems or functions

By Scott Hadley,

A message (Transfer Object) contains a unit of information with a message as its root and a hierarchy of messages, collections of messages, or primitive values (where primitive values are defined by a pair consisting of a named attribute with a value for the primitive). This message can be passed to another function or system.  … Read more

Recovering stripped files when using Mercurial

By Ivan Surya,

If you accidentally strip a patch and do not have a backup for it, you can still recover your files using Mercurial. To recover your files: Open a Microsoft Windows Command Prompt window. Navigate to the project folder where you stripped the files. Run the dir Navigate to the .hg folder where Mercurial stores all  … Read more

Creating a Channel and Service For External HTTP Messages

By James Spence,

The NexJ framework allows you to create an interface between external web pages and NexJ servers through channels and services. You can create a channel to handle incoming HTTP messages, pass them to a service for work to be done, and then send responses back to the sender. You can also create a service to  … Read more

Identifying Lazy Loads

By Ed Shaw,

Some background First of all, what is a lazy load and why do I care?  The NexJ Framework read event is at the same time very forgiving as well as demanding.  What it demands of you is that you tell it exactly what you want.  There is no equivalent wildcard like what is commonly found  … Read more