Send Message on other view

Hello, I need help using sendMessage function:
I want send a value on another View

1 : View that I use to send message


1.1 Script that I created

  1. I wand send message on this view :

What I what is : when I selected a value on de dropdown list, this value must be sended on Custom called pOuvrage

to receive message, I did :

I don't nkow what is wrong.

I want send a param on this view because META.Visiblle of my component in view will be True ou False depend of value os Custom pOuvrage receved.

My english is not good sorry!

You're setting scope = "view" in sendMessage. Use scope = "page" instead.
Assuming the view with the dropdowns in embedded in the view with the message handler.

But do you NEED those dropdowns to be in another view ?
One one those 2 things has to be true:

  1. you're only embedding the view once, in which case there's little reason not to put them in the parent view directly
  2. you have several of them, in which case you're missing something in the payload and the message handler: an identifier that will allow you to filter messages.

Also, why not use output parameters instead of messages ?

Bonjour @pascal.fragnoud j'ai mis une pose sur cette question, car pour l'instant je ne travail plus sur ce jugé. Mais merci pour ta réponse.