COBAL Renderings in Sitecore


Sitecore’s flexible rendering module allows developers to create their own custom rendering types.  If you wish to avoid XSLT, Web Forms or Razor you can also create your own rendering type.  I was doing some work for an older generation of developers that didn’t want to get retrained on .NET and we came up with this easy to use rendering type that supports COBAL.

 

First we create our COBAL code file on the server.  Notice the use of the DISPLAYFIELD method to allow support for the Page Editor.

cobal_code

 

Next you just insert the new COBAL rendering type into the content tree and set the path to point to your code file or mainframe system you would like to return the content from.

cobal_rendering

 

The GetRendering pipeline was then extended to call out to a AS400 Mainframe witch runs the COBAL code and calls back to the Item Web API to get the rendered content.

All in all it works pretty good, and was very easy to implement due to Sitecore’s flexible rendering engine.

 

 

 

Advertisements