edwinguedez
8/26/2013 - 8:08 PM

Llenar combo/select/value selector

Llenar combo/select/value selector

// {ATTRIBUTE} = atributo del contexto que esta bindeado al combo
// {LISTA} = Valores del combo

IModifiableSimpleValueSet values =
  wdThis.wdGetAPI().getContext().getModifiableTypeOf({ATTRIBUTE})
		.getSVServices().getModifiableSimpleValueSet();
values.clear();
for (int i = 0; i<{LISTA}.length; i++){
	values.put({LISTA}.key, {LISTA}.value);
}