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