Created attachment 1454645 [details] sample ruby method used Description of problem: on a multiple selection dialog element is it not possible to set more than one default selection through automation Version-Release number of selected component (if applicable): 5.9.2 How reproducible: all the time Steps to Reproduce: 1.create a method based on additional info details 2.create a dialog with two fields, mparent and mselect 3.mparent should be filled with a list of options as in additional infos 4.mselect should be configured to allow multiple selection 5.associate the method with the refresh of mselect (not on initial value, only when mparent is changed) Actual results: only the first default selection is ever made, the others are always ignored Expected results: when giving a list of option and the element supports multiple selection, all given options should be taken into account Additional info: - values for mparent : {"1"=>"one","2"=>"two","3"=>"three"} - sample method attached
Created attachment 1471760 [details] sample_mselect_dialog.yml sample dialog to use with sample method
Hi John, I haven't had the time to look into this issue yet, but will look at it this week. Thanks, Tina
Hey Felix. Taking a look at your reproducer, the reason your automate method wasn't working is because the multiple defaults were being set incorrectly. You had: dialog_field["default_value"] = ["a, d"] You need: dialog_field["default_value"] = ["a","d"] Please retest on your appliance, you'll find this works fine.
Your ruby method that's attached to this ticket looks like it has the right format, I'm not sure why there's a discrepancy between the attached code and the code on your reproducer.
(In reply to drew uhlmann from comment #11) > Your ruby method that's attached to this ticket looks like it has the right > format, I'm not sure why there's a discrepancy between the attached code and > the code on your reproducer. that is working. I don't know how I missed that. it should have been the exact same as what is attached here. well, with the updated method, the dialogs do work. I'll update the customer case as well.