cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

Intralink scripting - FINALLY AN ANSWER

lylebeidler
1-Visitor

Intralink scripting - FINALLY AN ANSWER

Ever since I started writing Intralink scripts, I have been trying to find a
way to read in the value for the current Table Configuration pull-down menu.


The reason for this is that I want to record the value, manipulate the table
configuration through the course of execution, and then set it back to where
it started at the end of the script.

I have finally found an answer.

This code will do it:



<start of=" inserted=" code=">

// FIND THE CURRENT TABLE CONFIGURATION NAME

// REQUIRES THE FOLLOWING IMPORT COMMANDS:

/*

import com.ptc.intralink.component.ILToolbarComboBox;

import java.awt.*;

import com.ptc.intralink.event.ILEventManager;

*/

Window activewindow = ILEventManager.getActiveWindow();

int boxX = 450;

int boxY = 60;

ILToolbarComboBox tableConfigBox =
(ILToolbarComboBox)activewindow.findComponentAt(boxX, boxY);

Object tableConfigCaptureObj = tableConfigBox.getSelectedItem();

String tableConfigName = tableConfigCaptureObj.toString();

// END TABLE CONFIGURATION NAME

<end of=" inserted=" code=">



This snippet allows you to then, at the end of the script, use this command:

IL.setTableConfiguration(tableConfigName);

To set the table config back to where it was.

--



Lyle Beidler
MGS Inc
178 Muddy Creek Church Rd
Denver PA 17517
717-336-7528
Fax 717-336-0514
<">mailto:-> -
<">http://www.mgsincorporated.com>
0 REPLIES 0
Announcements


Top Tags