• When using pickers send the result to Scoped variable and call SSJS

    By Fredrik Q Norling 1 decade ago

    It would be good if you could add the result to a Scoped variable and also call some SSJS.

    So you could manipulate things instead adding things to a field.

    • And also

      By Fredrik Q Norling 1 decade ago

      and also partial refresh id

    • Need more precision

      By Philippe Riand 1 decade ago

      Sorry, but I don't get your use case here with picker and SSJS. And also what you want a partial refresh id to do.

      • This is why

        By Fredrik Q Norling 1 decade ago

        If I select a value from a picklist when writing this today you often have your own icon with LS behind it.

        i.e. If I select a product in a list you want to add the productnumber in one field
        the productname in another field, the cost in a third and so on.

         

        or If you select a person you would like to add department in another field.

        Perhaps this can be done today some way.

        • Understood

          By Philippe Riand 1 decade ago

          The picker service is implemented in such a way that it can serve extra attributes. But this is designed to feed the dialog itself, not the other fields as you try to do.

          To achieve your use case, the best thing would be to use the picker, and then call a server side service to get the remaining information. It can be done by either doing a partial refresh of the fields while sending an event to the server with the data key, or, from a pure data angle, you can call a JSON RPC service to get this data.