Hi I’m trying to pass a dictionary to my UI node that I’m making with ZeroTouch…
My dictionary consists of key from strings, and values from lists
I’m having difficulties as I’m still new in creating UI and integrating it with dynamo
Any tips how I should process my dictionary so that it can be displayed as a dropdown list and return the value? If i’m not mistaken, combo box only works with lists?
Also, how does one have multiple outputs with zerotouch nodes?
This is what I have so far:
public class MyNode
{
public List<Object> UI_Interface(Dictionary<string, List<object>> dict)
{
List<Object> listReturn = new List<Object>();
myForm window = new myForm();
var res = window.ShowDialog();
//check if there is any input
if (!res.HasValue && res.Value)
window.Close();
//draft
var data = window.comboBox.SelectedItem;
listReturn.Add(data);
return listReturn;
}
}