Please see my images below. I am trying to filter Start Date column and in Lobby Element Designer using url like below.
page/ShopOrders/List?$filter=RevisedStartDate ge #START_OF_THIS_MONTH# and RevisedStartDate le #END_OF_THIS_YEAR# or page/ShopOrders/List?$filter=(RevisedStartDate ge ‘#START_OF_THIS_MONTH#’ and RevisedStartDate le ‘#END_OF_THIS_YEAR#’) , but kept getting and error. Not sure what could be the issue. Thank you very much in advance.
Best answer by Mohamed Asjath
Hi @jgrace,
Following are the date related CSV (Context Substitution Variable) values for searching dates available in IFS Cloud Web so far;
However, there have been some issues observed when using these variables in Lobby Datasource WHERE clauses or in navigation URLs. These issues have been acknowledged by the IFS Product Development team and a fix has been provided in version 25.2E.0 (25R2 EA).
I tested this out, and I am also facing the same error. There is no issue with the URL formatting -page/ShopOrders/List?$filter=(RevisedStartDate ge ‘#START_OF_THIS_MONTH#’ and RevisedStartDate le ‘#END_OF_THIS_YEAR#’) since the system is accurately creating RevisedStartDate parameter values on the destination page.
However, there have been some issues observed when using these variables in Lobby Datasource WHERE clauses or in navigation URLs. These issues have been acknowledged by the IFS Product Development team and a fix has been provided in version 25.2E.0 (25R2 EA).
However, there have been some issues observed when using these variables in Lobby Datasource WHERE clauses or in navigation URLs. These issues have been acknowledged by the IFS Product Development team and a fix has been provided in version 25.2E.0 (25R2 EA).
Best Regards, Asjath.
Hi @Mohamed Asjath Apologies for replying to a 4-month old post, but I saw this and thought I’d check if the same issues are possibly applied to other Datasource clauses? I’ve been struggling to get a BETWEEN clause to work with “AND TRUNC(CREATED) BETWEEN '$DateFrom$' AND '$DateTo$”, where a near identical clause works in another datasource that was created a year ago.
This could also be due to conflicting data types, but I’ve tried casting the date to the parameter and the created column both with no success.
There was another thread created as well here that might be related?