LLBLGEN 3.0
Oracle 9i/10g
Hi I am trying to populate state combobox based on city selected. Just have a small glitch whilde doing so. The following code works fine with hardcoded predicatecity.Add(CityFields.CityId==1);
But If change this line as predicatecity.Add(CityFields.CityId==cmbcityid.SelectedValue);. It just does not work. Not able to figure out what is causing the issue
predicatecity.Add(CityFields.CityId==1);
bucketstate.PredicateExpression.Add(predicatecity);
bucketstate.Relations.Add(StateEntity.Relations.CityEntityUsingStateId);
bucketstate.PredicateExpression.Add(StateFields.Flag == StandardFlag.recordvalidflag);
adapterstate.FetchEntityCollection(datasourcestate, bucketstate, 0,
new SortExpression(StateFields.Description |
SortOperator.Ascending));
cmbstateid.DataSource = datasourcestate;
cmbstateid.ValueMember = "STATEID";
cmbstateid.DisplayMember = "DECRIPTION";
cmbstateid.SelectedIndex = -1;