109
Views
14
Comments
Notify action is not found on Outsystems 11

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. 

OSMDb_RU.oml
2017-12-13 08-27-28
Joey Moree

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!

2024-12-17 14-32-59
Matthias Preuter
 
MVP

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

2018-12-04 08-23-00
Boybabyrage

@Matthias @Joey: Can you guys teach me how to use the newer event approach instead of deprecated_notify? I am pretty lost already. 

2018-12-04 08-23-00
Boybabyrage

I have tried to use depracated_notify action, however, I can get the notify message using NotifyGetMessage().

I got this error message:

Invalid Expression
Unknown function 'NotifyGetMessage' in expression.

2024-12-17 14-32-59
Matthias Preuter
 
MVP

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...




2018-12-04 08-23-00
Boybabyrage

Matthias Preuter wrote:

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...




Still can not ...

GetUserMovieRating.List.Current.UserMovieRating.Rating = TextToInteger(Depracated_NotifyGetMessage())


Depracated_NotifyGetMessage() is still unknown

2024-12-17 14-32-59
Matthias Preuter
 
MVP

I think this new P11 documentation can help you Pass Data Between Blocks

Kind regards,

Matthias

2024-12-17 14-32-59
Matthias Preuter
 
MVP

I think you have to check the dependency to System.Depracated_NotifyGetMessage


2018-12-04 08-23-00
Boybabyrage

Matthias Preuter wrote:

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. 

2024-12-17 14-32-59
Matthias Preuter
 
MVP

I don't have a P11 environment available now... I'll come back on this ASAP.

2019-05-22 11-30-09
Marcelo Ferreira
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.