Hi,
I have below statements in InitializeQuery() method of the ListPageInteraction Class
qbr = qbds.addRange(fieldNum(MyTable,EndDate));
qbr.value(queryRange(systemDateGet(),dateNull()));
qbds.addOrderByField(fieldNum(MyTable, EndDate), SortOrder::Ascending);
I want to lock down the EndDate so that no one can select past dates. It should be always today or future date.
but when i put below line after the qbr.value line, it throws the error.
qbr.status(RangeStatus::Locked)
Below is the error. Any hint on how to lock the range?
-----------------------------------------------------------------
An unhandled error has occurred. To view details about this error, enable debugging in the web.config file or view the Windows event logs.
Operation is not valid due to the current state of the object.
Microsoft.Dynamics.Framework.Portal
at Microsoft.Dynamics.Framework.Portal.UI.WebControls.AxFilter.GetFilterStringFromPostBackValue(String postBackValue)
at Microsoft.Dynamics.Framework.Portal.UI.WebControls.AxFilter.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
*This post is locked for comments