Forum Discussion

Tom_R's avatar
Tom_R
New Contributor III
3 years ago

Open dialog box or dashboard window through business rule

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

  • 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's avatar
    Cosimo
    Contributor II

    Use XFUserMsgException in your BR:

     

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

     

    • Cosimo's avatar
      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.