Open dialog box or dashboard window through business rule

Tom_R
New Contributor III

Currently I have a button on a dashboard that will run a business rule that checks if a specific load task is completed.  If it is, it will trigger a data management job to run.  If the load job is not completed the process ends.  I would like to trigger a pop-up window telling the user if the data management package is not going to run.  So far I have been unable to figure out the commands to do this with-in my business rule.

 

Thanks,

Tom

1 ACCEPTED SOLUTION

Cosimo
Contributor II

Here's a screenshot on how the pop-up box looks like. It's not the prettiest message I'd want to see (the 1st line I can do without) but an easy one line of code that can be added to any business rule.

Cosimo_0-1657200038695.png

 

View solution in original post

3 REPLIES 3

Cosimo
Contributor II

Use XFUserMsgException in your BR:

 

Throw New XFUserMsgException(si,Nothing, Nothing, "The data management package is not going to run")

 

Cosimo
Contributor II

Here's a screenshot on how the pop-up box looks like. It's not the prettiest message I'd want to see (the 1st line I can do without) but an easy one line of code that can be added to any business rule.

Cosimo_0-1657200038695.png

 

Tom_R
New Contributor III

Works great.  Thanks.