Hi,
I have been following the tutorial online on a web-based application using outsystems service studio 11.0. I am stuck at Web Block and UI Reusability exercise as I am unable to find Notify action in the web-block. I tried to use manage dependencies, but I only saw Deprecated_Notify action.Are they the same? If so, how come I still get NotifyGetMessage() error after using Deprecated_Notify action.
Please help me.
I think P11 completely switched over to events (making Notify actions deprecated), where you can throw an event with parameters rather than a notify message (just like how it is on Mobile).
Personally I think this approach is better than notify messages, as you have more control over the data you pass.Though this probably means you have to change your applications to use Events instead of Notify.... for larger projects this can be quite a chore!
In P11 the Deprecated actions (like Notify and NotifyGetMessage) are renamed to Deprecated_, You can still use them but it is better to use the newer event approach.
But for the exercises thers no problem using these renamed actions.
Kind regards,
Matthias
@Matthias @Joey: Can you guys teach me how to use the newer event approach instead of deprecated_notify? I am pretty lost already.
I have tried to use depracated_notify action, however, I can get the notify message using NotifyGetMessage().
I got this error message:
Invalid ExpressionUnknown function 'NotifyGetMessage' in expression.
You also have to use the Depracated_NotifyGetMessage.
Sorry when I had a P11 environment I've made a example for you; but my PE is not updated yet...
Matthias Preuter wrote:
Still can not ...
GetUserMovieRating.List.Current.UserMovieRating.Rating = TextToInteger(Depracated_NotifyGetMessage())
Depracated_NotifyGetMessage() is still unknown
I think this new P11 documentation can help you Pass Data Between Blocks
I think you have to check the dependency to System.Depracated_NotifyGetMessage
I already checked the dependency Depracated_NotifyGetMessage. My problem is how can I use Depracated_NotifyGetMessage and Depracated_notify replace original notify action. It is because I would like to store the output message from Notify action to a variable in an assign statement.
SyntaxEditor Code Snippet
GetUserMovieRating.List.Current.UserMovieRating.Rating =
TextToInteger(NotifyGetMessage())
Something like this.
I don't have a P11 environment available now... I'll come back on this ASAP.
Check if this can help you with the events https://www.outsystems.com/forums/discussion/41012/how-communication-between-widget-and-parent-page-works-on-outsystems-11/
Regards,
Marcelo