3449
Views
7
Comments
Solved
Notify deprecated in Service Studio 11, what can I use to replace it?

Greetings,

First of all, I have been messing around with OutSystems for around 3 days, so I'm in the novice side for now.


I'm following a Web App Guide from the courses list This One, and I kinda got stuck in the "Ajax and Reusable Ui - Web Blocks and reusability exercise" I got asked to use the notify action, which was deprecated, so I used the deprecated_notify action which ended up being fine, now I was asked to use an Assign in which I have to use the variable "GetUserMovieRating.List.Current.UserMovieRating.Rating" with the value "TextToInteger(NotifyGetMessage())", which is giving me an error, "Unknown function NotifyGetMessage" in expression, what can I use to pass this?


2019-01-16 11-43-08
Carlos Soares
Staff
Solution

Hi Fábio,

If you choose to keep following that exercise without recurring to events, you can do so by opening Manage Dependencies (ctrl + q) and search for "Notify" action in Public elements section:


Click Ok, and it should work. Forward in the Exercise, if you encounter related issues, keep in mind that your "Notify" is now "Deprecated_Notify".

Cheers,
Carlos

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

Hi Fábio,

In OutSystems 11 for Web you now have the same functionallity introduced in Outsystems 10 for mobile, events and eventhandlers with strong typed parameters. This is a great improvement over using the notify where you can only pass a string value.

Please read:

https://success.outsystems.com/Documentation/11/Developing_an_Application/Design_UI/Reuse_UI/Propagate_Changes_From_a_Block_to_the_Parent

Regards,

Daniel

2021-09-09 22-42-33
Fábio Rodrigues

 wrote:

Hi Fábio,

In OutSystems 11 for Web you now have the same functionallity introduced in Outsystems 10 for mobile, events and eventhandlers with strong typed parameters. This is a great improvement over using the notify where you can only pass a string value.

Please read:

https://success.outsystems.com/Documentation/11/Developing_an_Application/Design_UI/Reuse_UI/Propagate_Changes_From_a_Block_to_the_Parent

Regards,

Daniel


Hey Daniel,


Thanks for the quick answer, there's still a thing I don't get:

In step c) I'm supposed to set a message on notify, the message being "StarIterator.List.CurrentRowNumber +1", how am I supposed to do this with the events?

2019-01-16 11-43-08
Carlos Soares
Staff
Solution

Hi Fábio,

If you choose to keep following that exercise without recurring to events, you can do so by opening Manage Dependencies (ctrl + q) and search for "Notify" action in Public elements section:


Click Ok, and it should work. Forward in the Exercise, if you encounter related issues, keep in mind that your "Notify" is now "Deprecated_Notify".

Cheers,
Carlos

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

Fábio Rodrigues wrote:

 wrote:

Hi Fábio,

In OutSystems 11 for Web you now have the same functionallity introduced in Outsystems 10 for mobile, events and eventhandlers with strong typed parameters. This is a great improvement over using the notify where you can only pass a string value.

Please read:

https://success.outsystems.com/Documentation/11/Developing_an_Application/Design_UI/Reuse_UI/Propagate_Changes_From_a_Block_to_the_Parent

Regards,

Daniel


Hey Daniel,


Thanks for the quick answer, there's still a thing I don't get:

In step c) I'm supposed to set a message on notify, the message being "StarIterator.List.CurrentRowNumber +1", how am I supposed to do this with the events?

You can create an output parameter to the webblock event of type long integer and assign the StartIterator.List.CurrentRowNumber + 1 to it.

Or do what Carlos wrote and stick to how things are done in OS10.


2020-09-02 18-31-20
Richard Ince

So, in place of the "Notify Action" what would we add to the "StarClicked Action" before creating an output parameter to the webblock event of type long integer and assign the StartIterator.List.CurrentRowNumber + 1 to it?

2021-09-06 15-09-53
Dorine Boudry
 
MVP

Hi Richard,


1) you would add the event with an input parameter of type long integer.

2) in the StarClicked Action of the webblock, you trigger that event and pass the StartIterator.List.CurrentRowNumber + 1 into that input parameter



3) in the screen that has the webblock on it, you create a handler action with the same input.  If you use '(New Screen Action)' it will create and map the inputs automatically.

4) in the handler action you then have the clicked star available for processing

happy coding,

Dorine

2020-09-02 18-31-20
Richard Ince

This is great. Thank you for the swift response. I am really enjoying learning to use this platform and the onboarding experience and support is exceptional.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.