xTuple.com xTupleU Blog & News Customer Support

QVariant

Using Windows 5.1

I added a parameter widget to my script

parameterWidget.append
(
qsTr(“Templates”),
“panel_templates”,
ParameterWidget.Multiselect,
null, false,
qsTr("select panel_templates_id,panel_templates_name from ww_panel.panel_templates ")
);

when i query I call

var c_template = parameterWidget.parameters().panel_templates;

but c_template is a QVariant

I dont see any way to get the values from the variable c_template

Does anyone know how to get these values?

Thank you

Bob

Once again I solved my own problem by changing the

ParameterWidget.Multiselect

to

ParameterWidget.XComBox

then one key id is returned

I dont see any way in scripting to get the values from a QVariant