Skip to main content
1-Visitor
September 29, 2020
Solved

Visualize service errors in Mashup

  • September 29, 2020
  • 1 reply
  • 2865 views

Dear devs,

 

I am currently developing a dashboard (mashups) with textboxed, bound to buttons that in turn call services. As for now, I show success/error message from another textbox. but I would like to beautify the design and therefore add some popup/snackbar to display messages. However, I could not find any widget to help me with this. Am I missing something?

 

Thanks and best regards!

Best answer by abhiramk

You can follow steps as below:

 

  1. Create mashup based on your requirement which contains text area, if required add ok button to acknowledge the message, on click of button closeifmashup.
  2. Use navigator in actual mashup and provide above created mashup  and render it as popup. 
  3.  Pass service output to popup mashup using mashup parameters or session parameters.
  4. Bind service execution event to navigate to that popup message.

Hope this works for you.

1 reply

1-Visitor
September 30, 2020

@Raccone  You can use status messages as default. If you need some fancy UI to display the messages based on error, warning or success message, then you have to create a mashup based on your requirements. Bind service invoke complete event to navigate to this mashup and service output message which will be shown as popup.

 

Raccone1-VisitorAuthor
1-Visitor
September 30, 2020

Hey @abhiramk,

 

Those services are designed to have a return of type string, being max 50-60 characters-ish, and I would like to keep it like that.

 

I'd go for the second option, but I'm not quite sure of what you mean. I understand the logic, but I wouldn't know what widgets to use in this new Mashup, which was the main point of my question.

 

Thanks!

abhiramk1-VisitorAnswer
1-Visitor
September 30, 2020

You can follow steps as below:

 

  1. Create mashup based on your requirement which contains text area, if required add ok button to acknowledge the message, on click of button closeifmashup.
  2. Use navigator in actual mashup and provide above created mashup  and render it as popup. 
  3.  Pass service output to popup mashup using mashup parameters or session parameters.
  4. Bind service execution event to navigate to that popup message.

Hope this works for you.