Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
Hi ,
Is it possible to raise message from Expression or Validation ? do we have certain TW.runtime function support this ?
Regards,
Sean
Solved! Go to Solution.
The output of Expression can be a String, so you can get the message.
@zyuan1 ,
I want to display the raised message as the floating message box, just like the message of calling the service . is it possible ?
if use popup of navigation widget then the message style is different with the message of service, I want to always have a unified look&feel for displaying any message .
Maybe it's possible to use CSS to simulate the same look&feel with Service message, but for such a function independent feature , I don't think it should be implemented by every project , it should be a feature of the ThingWorx itself.
Old comment:
"You will get the same unified Look and Feel with the navigation if you provide to each Navigation popup the same "MessageMashup" which is styled with your UI guidelines, and it is not really needed to use CSS .
I agree with the fact that raising a message from an expression is something that would be nice, but my personal experience is that in such a case, I'm 100% sure that somebody will want to style that message box to add more information to it, maybe a picture etc, and then add a third button that does something custom for his usecase...the list goes on. With the approach above you will have much more flexibility.
I'm happy to take a look in your use-case and any other issues you might have - just drop me a private message and we can have a webex (I will be in holiday until 26th of September though)"
Later edit: I read again the thread, and I believe I understand now what you mean. Please add a new Idea in the IOT /ThingWorx Ideas subforum for this issue.