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

We are happy to announce the new Windchill Customization board! Learn more.

Modal dialog

hbock
7-Bedrock

Modal dialog

Hello Community,

 

I'm looking for a possibility to pop up a modal message dialog when working in a workflow like the dialog that is openend on doing this (also like a Java JDialog.show()):

 

    throw new wt.util.WTException(“message”)

 

but when calling the searched method, the program flow shall continue with the next line, like:

 

boolean showInfo;

...

    showInfo = true;

...

if (showInfo)

{

  notifyUser("info message");

  // go on with code

}

 

...

 

2 REPLIES 2
schen-7
14-Alexandrite
(To:hbock)

What do you mean ? I think we can use  "throw new wt.util.WTException(“message”) " to let workflow task page show a pop up window when completing task. So it doesn't work in your system ?

hbock
7-Bedrock
(To:schen-7)

Thanks for your answer!

The exception works, but then the program flow will be "back to task".

What I wanted is a possibility to show a message that is not handled as an exception and does not end the program flow.

 

For example have a message within the "Complete" transition of the task:

 

// some code...

if (needMessage1) showMessage("message1");

// more code...

if (needMessage2) showMessage("message2");

// still in Complete transition...

task = "completed";

 

As fas as I learned this might not be possible as the message caused by the exception is a "server exception".

Top Tags