Toad World® Forums

Where can I find more documentation for the scripting API?


#1

In the delivered help files I can find documentation for all classes and there attributes, that’s fine. But where can I find documentation about all methods like Model.AddLinkObject. I miss some kind of use case driven documentation. There seems to be very powerful methods, but unfortunatly they are useless without background informations how to use them…

And all avalilable sample scripts does not go into depth, they are too simple to explain the possibilites.

ANdreas


#2

Hello Andreas,

The methods can be found under the classes in the Reference Guide (they are the functions and procedures). We try to name the methods by their usage (CreateNewObject etc.).
At the moment, the Ref. guide is the only documentation for this. Unfortunately, we don’t have a capacity and resources to document it as deep as you would probably appreciate. However, please do not hesitate to ask us specific questions of yours. We’re ready to help.

Thanks.

Regards,

Vladka + TDM Team


#3

Hi Vladka,

I would like to create a Oracle package via script and wasn’t able to find the code to pass to CreateNewObject.

Thanks in advance for your help

Hazi


#4

Hi Hazi,

i’ll put toghether a document with all db specific objects for all supported databases, but it will take me few hours, that’s why I’ll publish it tomorrow.

For oracle packages please use code 52000.

function main(){
var pckg = Model.CreateNewObject(52000);
pckg.Name = “my new oracle package”;
}

Regards,

Vaclav


#5

Thanks Vaclav


#6

Hi Hazi,

updated TDM reference with Object Type codes of all database specific items can be downloaded from community library. See http://modeling.inside.quest.com/entry.jspa?externalID=4244&categoryID=29

Regards,

Vaclav