User interface changes on user action?
I am writing a plugin that loads fields from a csv file. I need to show a preview of those fields (say the first 3 rows) to the user so he can decide what type of field they are, ie date, name, address. What I want is a row of headers of popup boxes and the the first 3 rows under them. The problem is I don't know ahead of time how many columns there are.
I thought I would make a varible to hold a columnview and bind to the correct place on the interface. Then loop though the file and build the preview data.I have tried this and cannot get the data to update on the screen and I am not sure exactly how to bind the varible to a columnview.
Here is a preview of what I would want the data in the column view to be and then bind it to the.
f:row {
f:popup_menu {
items = fielditems
},
f:popup_menu {
items = fielditems
},
f:popup_menu {
items = fielditems
},
},
f:row {
f:static_text {
title = 'DataField1',
alignment = "left",
width_in_chars = 20
},
f:static_text {
title = 'DataField2',
alignment = "left",
width_in_chars = 20
},
f:static_text {
title = 'DataField3',
alignment = "left",
width_in_chars = 20
},
}
Am I going about this the entire wrong way? At this point I am lost on how to build a interface that will update on user interaction. I have seen this type on interface on LR Transporter (the import metadata from file) so I know it is possible.