As you already may know from the help files and manuals, the customization in Toad Data Modeler is based on running scripts.
In this forums section you have been provided with some scripts you can run in TDM 's Scripting window. This Scripting window has some limitations, e.g. you cannot directly modify a model (you have to select the model index in the script code), you cannot run other scripts…
Now consider a button on the Entity Properties form. If you have such button, you can call other scripts and in the FmPEREntity* script you have the possibility to modify objects from the model (you call Instance.SomeMethod). The drawback with this would be
- Modification of the Entity Properties form
- Possibly modification of the PEREntity* object in the Meta model
- Modification of the already debugged FmPEREntity* script
- You have an ugly looking Entity Properties dialog which you’re ashamed to show in screenshots or on presentations
The solution could be to create a helper object accessible in every model and customize its Properties dialog .
You have the possibility now to download an add-on package along with the necessary Meta model from the attachment. When you install the package, you’ll see a new Model object folder in the Application View and in the Physical Model Explorer. Just add a new Custom Scripting object to your model, like on the attached screenshot ModelScripting-AV.PNG.
Edit its Properties and modify the script FmPERScriptingObjectEdit. You have now an access to all the model objects and run the other scripts methods!
ModelScripting.zip (7.02 KB)