Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
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!
Solved! Go to Solution.
You can follow steps as below:
Hope this works for you.
@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.
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!
You can follow steps as below:
Hope this works for you.
Hi @abhiramk,
Seems cool to me. Just a couple of points I'm missing - and it's not you fault
Thanks a lot!
When you're using navigation widget and providing mashup name, load it as popup by giving in properties.
Coming to styling, you can define style and state definitions use it accordingly. UI design and colors you can make however you want.
Also you can use custom css.
Hi @abhiramk,
Thanks, I will try it out and come back if I have any doubts. Anyway, does a navigation widget exist? I usually implement navigation using navigation functions.
Thanks,
Federico
Hi @abhiramk,
I understood and implemented your approach. I have only one doubt, being that in a given page I might have output coming from several services, but I can bind the text source for the area only once per service result. The only thing that could solve this, would be to create e popup mashup for every service output. Is there a better way to do it?
Edit: I solved this using an EventsRouter function.
Thanks,
Federico