I would do something like this:
public int this_onAfterInitEvent(CSpInitEvent event) {
CSpComboBox cb = (CSpComboBox) getDisplayField("cbYear");
int year = Calendar.getInstance().get(Calendar.YEAR);
cb.addSelectable(""+(year-1),new CSpInteger(year-1));
cb.addSelectable(""+year,new CSpInteger(year));
cb.addSelectable(""+(year+1), new CSpInteger(year+1));
return (PROCEED);
}
Aby
TeamND
>
> "Rameswar" <[EMAIL PROTECTED]> wrote:
> >
> >Hei,
> >
> >I was trying to populate the Combo Box with the Year values
> of the system year, plus one year and minus one year (to System Date).
> >I tried differnt ways on
> ComboBox1.OnBeforeDisplayEvent()without any success. Help
> would be a great save for me.
> >Thanks
> >Rameswar
>
> ______________________________________________________________
> ___________
>
> For help in using, subscribing, and unsubscribing to the discussion
> forums, please go to:
> http://www.netdynamics.com/support/visitdevfor.> html
>
> For dire
> need help, email: [EMAIL PROTECTED]
>
_________________________________________________________________________
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]