The trigger portal is expected to be outside the attribute pick template. The way I'd do this is to create a template, which contains the trigger button, and then place that template into the same layout as the attribute table with a templateref and then arrange the two visual elements as you like.
|