Skip to Content
0
Former Member
Oct 22, 2005 at 11:31 AM

populate dropdownwith key

21 Views

Dear all,

I have a dropwdown box with key, Now my requirement is to fill this dropdown box with 30 dates..I tried it but getting runtime error. can anybody suggest a way out.

String datelist[] = new String[30];

SimpleDateFormat dtFormat = new SimpleDateFormat("dd.MM.yyyy");

ISimpleTypeModifiable myType=wdThis.wdGetAPI().getContext().getModifiableTypeOf("days");

// ArrayList ldate = new ArrayList();

for (int i = 0; i < 31; ++i) {

datelist<i> = dtFormat.format(new java.util.Date());

IModifiableSimpleValueSet values=myType.getSVServices().getModifiableSimpleValueSet();

values.put("i", "datelist<i>");

}

Regds

Anup