hello
i have dropdown
final SelectItem ServiceItem = new SelectItem(); ServiceItem.setName("services"); ServiceItem.setWidth(350); ServiceItem.setTitle("მომსახურების სახე"); ServiceItem.setOptionDataSource(DataSource.get("serviceDS")); ServiceItem.setOptionOperationId("getServices"); ServiceItem.setValueField("service_id"); ServiceItem.setDisplayField("service_name"); ServiceItem.setAutoFetchData(true); ServiceItem.setDefaultToFirstOption(true); how can i take default value of ServiceItem? after onChanged i can take value but before onChanged i can not take default value.
i have dropdown
final SelectItem ServiceItem = new SelectItem(); ServiceItem.setName("services"); ServiceItem.setWidth(350); ServiceItem.setTitle("მომსახურების სახე"); ServiceItem.setOptionDataSource(DataSource.get("serviceDS")); ServiceItem.setOptionOperationId("getServices"); ServiceItem.setValueField("service_id"); ServiceItem.setDisplayField("service_name"); ServiceItem.setAutoFetchData(true); ServiceItem.setDefaultToFirstOption(true); how can i take default value of ServiceItem? after onChanged i can take value but before onChanged i can not take default value.
Comment