Sep 082014

Introduction OScript scripts behave like other data types. Like an integer, string, or list, a script can be assigned to a variable and passed as a parameter to other functions. For example: // Assign a script to a variable Script s = $MyModule.SomeGlobal.SomeScript // Pass the script to another function $MyModule.Utils.SomeFunction(s) A Script variable even […]

Aug 062014
Part IX: Making "super" calls in OpenText Content Server

Introduction Many programming languages provide a way to override methods, and from the override call the original method that was overridden. This is a fundamental part of object-oriented programming (OOP), and is often made possible with a keyword like super. It may be hard to believe, but this is sort of supported in OScript. OpenText […]

Jun 302014

Introduction OpenText Content Server OScript does not provide native support for enumerated types. In this blog post I’ll discuss why enumerated types are useful, and introduce a simple framework for mimicking the data type with OScript. So what is an enumerated type? The Wikipedia page on Enumerated types sums it up in the introduction: In […]

Apr 212014
Part VII - Admin Configuration Pages in OpenText Content Server

One of the most tedious and repetitive tasks in OpenText Content Server development is the building of a module configuration page. A configuration page is usually linked from the admin.index page, contains a form, and allows an administrator to set the module preferences to their liking. It’s a process that involves: adding a section in […]

Feb 142014

Categories & Attributes are a powerful feature of OpenText Content Server. Categories allow custom attributes to be defined and assigned to a document, folder, or any other node in the system. Other features of categories & attributes include: definitions can be versioned; can be applied to each version of a document; attributes can be multi-valued; […]

Jan 282014
Part V - Paging, Sorting, & Filtering in OpenText Content Server

List views are an important component of the OpenText Content Server interface. In a nutshell, a list view provides a summary of related information and is often rendered in an HTML table. Consider a few examples of list views in Content Server: folder browsing; audit tab; assignments list; user lists; group membership list; task list; […]

Nov 242013
Part III: Template Rendering with OpenText Content Server

Introduction In Part I of this blog series I discussed how an object-oriented programming approach can simplify development in Content Server. I introduced RHNode and RHUser, which are classes to simplify the interaction and traversal of Content Server nodes, users, and groups. In Part II I introduced RHModel, which is a base class for defining, […]

Oct 202013
Part II: Object Persistence in OpenText Content Server

Introduction In Part I of this blog series I discussed how object-oriented programming (OOP) can be used to simplify some common tasks in OpenText Content Server. I introduced RHNode and RHUser, which wrap the basic functionality of a Content Server node and user into an object. I also highlighted that similar classes exist for permissions, […]