Test example 6 – how to hand over data to UI handlers
Just now, with the previous test example where we hit upon the need for two dialog handlers, it makes sense to discuss how to hand over data to a UI handler, as we cannot directly control this. It's the platform that controls this, and we have no way of passing any additional data.
Customer wish
In this context, let's pick up another part of our customer wish – when creating a new customer from the UI, by clicking the standard New action on the ribbon, you have to select a template to base the new customer on (or simply bypass it by selecting Cancel), as shown in Figure 7.6:
This part of the customer wish tells you that the configuration template that's behind the templates you can choose should be set up so that it will auto-populate the Lookup Value Code
field on the newly created customer from the selected template...