Table cellWidgetRC combo box

Find and share HowTos to various installations / configurations!
4 posts • Page 1 of 1
tmalone
Posts:192
Joined: Mon Nov 22, 2010 11:21 pm

Table cellWidgetRC combo box

Post by tmalone »

I'm using a Table cellWidgetRC combo box. I want to have a blank as a choice in the combo box.

right now I have:

tagList.cellWidgetRC(3, "#7", "ComboBox", makeDynString("false", "", "input", "output", in_out"))

It does not seem to give me a blank line at the top of the ComboBox selections?

I am guessing that this is not like the standard ComboBox object, maybe it cannot do a blank?

Todd Malone
Malone Computing Service

gschijndel
Posts:376
Joined: Tue Jan 15, 2019 3:12 pm

Re: Table cellWidgetRC combo box

Post by gschijndel »

It is also possible to pass the combobox properties as a mapping. Do you also try this?

tmalone
Posts:192
Joined: Mon Nov 22, 2010 11:21 pm

Re: Table cellWidgetRC combo box

Post by tmalone »

I can't seem to get mapping methods to work. Maybe I have a syntax problem:

mapping list;
list = makeMapping("editable", "false", "items", makeDynString("", "BOOL", "INT", "FLOAT"), "permanent", "false");
TagList.cellWidgetRC(i, "#5", "ComboBox", list);

There is nothing in the combo box list. No errors in log viewer either!

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Table cellWidgetRC combo box

Post by leoknipp »

I have tested it with a mapping and it worked. I have 2 entries with blanks in the combo box.

mapping mBox;

mBox = makeMapping("editable",0,"items",makeDynString("","Hello","World","","End of lines"),"permanent",true);
TABLE1.cellWidgetRC(0,"#2","ComboBox",mBox);

Best Regards
Leopold Knipp
Senior Support Specialist

4 posts • Page 1 of 1