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

Pro/intralink toolkit - Dialog boxes

unknown1
1-Newbie

Pro/intralink toolkit - Dialog boxes

Hi to all,

I need to display dialog boxes on submission trigger errors and I really
don't know how to proceed.
Any suggest will be appreciated.

Fred

This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
1 REPLY 1

For dialog boxes in triggers I've used the system() function to call
little a executeable app written in Java or VBScript to bring up dialog
boxes. I pass a string on the command line for the message to be
displayed. This is a crude technique but was easy, quick and works well.
Since I just needed to popup an informational or warning dialog when the
required trigger returns a non-zero causing a checkin to fail, there was
no need to return any values from the dialog itself. Here's a piece of
the trigger code...

#define CMD_BUFFER_SIZE 1000


#ifdef WIN32
#define SCRIPT_EXT "vbs"
#else
#define SCRIPT_EXT "csh"
#endif

/*====================================================================*
Function: triggerDialog
Description: display dialog to user
\*====================================================================*/
int triggerDialog(char *msg) {
int status;
char cmdBuffer[CMD_BUFFER_SIZE];
if ( strlen(msg) > CMD_BUFFER_SIZE - 22 ) {
status = 1;
} else {
sprintf( cmdBuffer, "triggerdialog.%s "%s", SCRIPT_EXT, msg );
status = system( cmdBuffer );
}
return(status);
}


Hope this helps,
Gary Hoffman
CAD Application Support
Solar Turbines Incorporated
Telephone: (858) 694-6961
E-mail: -
Announcements
Attention: Creo 7.0 Customers
Please consider upgrading
End of Life announcement here.

NEW Creo+ Topics:
PTC Control Center
Creo+ Portal
Real-time Collaboration