Skip to content
Discussion options

You must be logged in to vote

Bonjour, vous n'utilisez pas le bon évènement, le 'onReadTransform' permet de transformer la valeur avant de la renseigner à une additionnelle / propriété, elle doit forcément retourner une valeur.
Ici vous voulez plutôt agir grâce à l'évènement 'onValueChange', voici le script que vous cherchez je pense :

switch (context.newValue) {
    case 1:
        this.properties.content = this.additionals.prop1;
        break;
    case 2:
        this.properties.content = this.additionals.prop2;
        break;
    case 3:
        this.properties.content = this.additionals.prop3;
        break;
    case 4:
        this.properties.content = this.additionals.prop4;
        break;
    case 5:
        t…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by 3dd1e
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@WITNicolas
Comment options

@Eregul56
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants