This builds on the original scripting article - and gives you more ideas on how UI scripting can help you ...
Here's a few more uses for Intralink scripting, where some smart thinking can save you a lot of repetitive typing . . .
Say you've got a new attribute which needs a list of "allowable values" - eg: material (or coating description, designer list, etc...)
Or, you may need to set up a new server with a standard material list...
Do you fancy typing or copy-pasting all the values into the Intralink dialog box?
Didn't think so - this would take ages.
Before continuing - work on a BACKUP database, or with a non-critical attribute - these are powerful commands
Get to your Admin | Attributes | Object Attributes page
then kick off Scripting (Ctrl + S) and get Recording (with a meaningful name)
Start | Type a new value | Add | Change | Stop
You can open the .java file at PDM_LDB_PATH\.proi\.data\user.data\source\ in a text editor and see what's going on...
Take your material list and add this text round the values: IL.addEnumRestriction( "XXXXXXX" );
Just a simple Find/Replace should do the job... then incorporate these lines into the .java file and recompile it
(see "Get compiled" section in original article)
This example adds a few new values to the attribute list (use at your own risk!):
If you add a value by mistake, you can remove it using the method shown here : SQL Remove attribute values
Ed-19-Nov-04
PS - also see this article on Pro/Files magazine on the same subject.