How to add checkBox in Dialog and get value? -
i want add checkbox in dialog.
i used code:
dialog dialog; dialogfield dialogfield; noyesid checkvalue; ; dialog = new dialog("new dialog checkbox"); dialogfield = dialog.addfieldvalue(identifierstr(noyes) , checkvalue); checkvalue= dialogfield.value(); dialog.run(); info(strfmt("value %1" , checkvalue)); so, in debug see value of variable (checkvalue) no .
on web-tutorial saw code:
dialog.addfieldvalue(typeid(noyes), noyes::yes, "tip"); but have error method typeid not exist .
what way? all,
enjoy!
you can use typeid (ax 2009 , before) or extendedtypestr (ax 2012) on extended data types (edt), not enums noyes. can used on noyesid, edt.
dialog.addfieldvalue(typeid(noyesid), noyes::yes, "check"); you must call run before can meaningful acquire value.
dialog dialog = new dialog("new dialog checkbox"); noyesid checkvalue = noyes::no; dialogfield dialogfield = dialog.addfieldvalue(extendedtypestr(noyesid), checkvalue, "check it"); if (dialog.run()) { checkvalue = dialogfield.value(); info(strfmt("value %1" , checkvalue)); }
Comments
Post a Comment