Technique #3: partitioning non-visual logic via server-side REST APIs

Partitioning non-visual logic and encapsulating it within server-side REST APIs means rewriting the logics in C#, deploying them as REST APIs, and then invoking them from PowerScript. With this technique we have reduced those numerous server calls of the database transaction to just one single call to the REST API, and at the same time created a re-usable component that can be shared by other modules in our PowerBuilder application or shared by other applications.