{ QueryBuildDatasource qbdsInventSerial; ; if (_index == 1) { qbdsInventSerial = InventSerial_q.dataSourceName(InventSerial_ds.name()); qbdsInventSerial.clearRange(fieldnum(InventSerial,HoldByUser)); qbrMyVehicles = qbdsInventSerial.addRange(fieldnum(InventSerial,HoldByUser)); qbrMyVehicles.value(curuserid()); qbrMyVehicles.status(RangeStatus::Open); InventSerial_ds.executeQuery(); } }
Specified argument was out of the range of valid values. Parameter name: index at Microsoft.Dynamics.Framework.Data.Ax.DataSetView.GetElement(Int32 index) at Microsoft.Dynamics.Framework.Data.Ax.DataSetView.GetCurrent() at Microsoft.Dynamics.Framework.Portal.UI.WebControls.AxCurrentRecordDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) at System.Web.UI.WebControls.DataBoundControl.PerformSelect() at System.Web.UI.WebControls.BaseDataBoundControl.DataBind() at System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() at System.Web.UI.WebControls.BaseDataBoundControl.set_RequiresDataBinding(Boolean value) at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewChanged(Object sender, EventArgs e)