Welcome to the OPA Hub!

Category Archives: Oracle Policy Automation

The Code Generator for Extensions

The Code Generator for Extensions

As many of you have already found out, we have been experimenting with a template code generator for JavaScript extensions. It started out as a simple way to demonstrate the basic structure of JavaScript extensions, and sort of morphed into a tool to generate working examples of code for a variety of different extensions. It’s become too big to continue messing with it, so we decided to put it out on the Website for you to play with.

As of today, it can generate the following

  • Label Extension
  • Input and Full Input Extensions
  • Search Extensions (several different examples)
  • Entity Container Extension
  • Container Extension
  • Options Extension

All you have to do is know a little bit about what you want to do. For example, let’s say you want to generate a Container Extension. You read that a Container Extension can be used to display a chart. So that’s what the generator does – it builds the code for you. Let’s walk through it as an example:

You want to experiment and find out what an Input Extension looks like. Start the Project in the Debugger and review Screen One :

Code Generator OPA 1

Not complicated. You agree to the terms and you choose Custom Input. Then you click Next.

Code Generator OPA 2

All the extensions use Custom Properties to enable you to know which Input has an extension and where the code should run (and not run). I use a simple system whereby you add a custom Property to your Input on your Screen, and the Property Name is “name” and the value is anything you want. In real life you maybe have multiple Property Names here. But one will do. Next!

Code Generator OPA 3

Individual Templates need further information. For example, since an Input Control needs to give the user something to look at, it will add an INPUT tag to your page, with the HTML Id you specify. Plus, since this is an Input, what attribute will the user be inputting? Then hit Next.

Code Generator OPA 4

That’s it. The code is displayed. This can be copied and pasted manually into a blank text file or…

Code Generator OPA 5

Scroll down to the bottom and click Copy to Clipboard. But we’re not finished yet. Next!

Code Generator OPA 6

On the final page you can download a PDF which should explain what you have just done, what you can do with the other Code Generator examples, how they work, how to use them and so on.

Take your JavaScript file and create a new Project. Add the file to the resources folder. Add the attribute and the Control to your Screen, not forgetting the custom Property you specified. And your new Custom Input should work when you debug.

The Code Generator can be downloaded from the OPA Hub Shop. Official Oracle documentation can be found online.

Template Generator Update – JavaScript for Control Extensions

Hi There!


This content is accessible only to logged in users of the OPA Hub.

To Register takes only 10 seconds and uses LinkedIn for authentication. It does not take your contacts or use any other permission.

Once registered you can change your OPA Hub password and manage it independently of LinkedIn.

We recommend you keep different passwords for all your sites.

To register, click the Log in link in the menu at the top of your page.

Thanks, the OPA Hub Website.

Back to Basics : Seeding from a URL Parameter

Hi There!


This content is accessible only to logged in users of the OPA Hub.

To Register takes only 10 seconds and uses LinkedIn for authentication. It does not take your contacts or use any other permission.

Once registered you can change your OPA Hub password and manage it independently of LinkedIn.

We recommend you keep different passwords for all your sites.

To register, click the Log in link in the menu at the top of your page.

Thanks, the OPA Hub Website.

Entity Collect Extension

Hi There!


This content is accessible only to logged in users of the OPA Hub.

To Register takes only 10 seconds and uses LinkedIn for authentication. It does not take your contacts or use any other permission.

Once registered you can change your OPA Hub password and manage it independently of LinkedIn.

We recommend you keep different passwords for all your sites.

To register, click the Log in link in the menu at the top of your page.

Thanks, the OPA Hub Website.

Silent and Invisible : Back to Basics

Hi There!


This content is accessible only to logged in users of the OPA Hub.

To Register takes only 10 seconds and uses LinkedIn for authentication. It does not take your contacts or use any other permission.

Once registered you can change your OPA Hub password and manage it independently of LinkedIn.

We recommend you keep different passwords for all your sites.

To register, click the Log in link in the menu at the top of your page.

Thanks, the OPA Hub Website.

Showing a Loading Image During Entity Creation

Hi There!


This content is accessible only to logged in users of the OPA Hub.

To Register takes only 10 seconds and uses LinkedIn for authentication. It does not take your contacts or use any other permission.

Once registered you can change your OPA Hub password and manage it independently of LinkedIn.

We recommend you keep different passwords for all your sites.

To register, click the Log in link in the menu at the top of your page.

Thanks, the OPA Hub Website.

Siebel CRM as a custom Search source

Hi There!


This content is accessible only to logged in users of the OPA Hub.

To Register takes only 10 seconds and uses LinkedIn for authentication. It does not take your contacts or use any other permission.

Once registered you can change your OPA Hub password and manage it independently of LinkedIn.

We recommend you keep different passwords for all your sites.

To register, click the Log in link in the menu at the top of your page.

Thanks, the OPA Hub Website.

What is Happening Here – Date Function with Wrong Date

Hi There!


This content is accessible only to logged in users of the OPA Hub.

To Register takes only 10 seconds and uses LinkedIn for authentication. It does not take your contacts or use any other permission.

Once registered you can change your OPA Hub password and manage it independently of LinkedIn.

We recommend you keep different passwords for all your sites.

To register, click the Log in link in the menu at the top of your page.

Thanks, the OPA Hub Website.

What’s new in Oracle Policy Automation 18D?

Hi There!


This content is accessible only to logged in users of the OPA Hub.

To Register takes only 10 seconds and uses LinkedIn for authentication. It does not take your contacts or use any other permission.

Once registered you can change your OPA Hub password and manage it independently of LinkedIn.

We recommend you keep different passwords for all your sites.

To register, click the Log in link in the menu at the top of your page.

Thanks, the OPA Hub Website.

The OPA Hub Website Poll : Results So Far

Hi There!


This content is accessible only to logged in users of the OPA Hub.

To Register takes only 10 seconds and uses LinkedIn for authentication. It does not take your contacts or use any other permission.

Once registered you can change your OPA Hub password and manage it independently of LinkedIn.

We recommend you keep different passwords for all your sites.

To register, click the Log in link in the menu at the top of your page.

Thanks, the OPA Hub Website.