The Code Generator for Extensions
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 :
Not complicated. You agree to the terms and you choose Custom Input. Then you click Next.
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!
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.
That’s it. The code is displayed. This can be copied and pasted manually into a blank text file or…
Scroll down to the bottom and click Copy to Clipboard. But we’re not finished yet. Next!
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.