When I write a code "month(fv!item.asDate) = local!month", why it's showing a result A null parameter has been passed. How to resolve that part?
Also I put that part
if( a!isnullOrEmpty(index(fv!item, "asDate", null)), false, contains( tointeger(local!month), month(index(fv!item, "asDate", null)) ) ),
but same error as it is
Discussion posts and replies are publicly visible
same error occurred yet
Ikr, I was just showing how to do null handling and as far as compatibility concern, I assumed it was just a primitive type (date field), so will not disappoint but it seems like top level of null handling is also not applicable to this data. moulikadas can you please share the data you are using in items?
What is in ri!taskProductionList? screenshot?
and the "asDate" is Date types. but it's not working. plz suggest some another way.
So "asDate" is a field which is in "taskProductionList".table.
Unknown said:What is in ri!taskProductionList?
Namely, we need to verify that the "asDate" property of that rule input actually contains Date data. The month() function (afaik) typecasts its input as date, so for example if OP is trying to call this function on String data, it'll still return the same error message as seen here.
moulikadas said: "asDate" is Date types
Yes, but she mentioned it is of type Date only.
Unknown said:but she mentioned it is of type Date only
yeah, though from the evidence we're seeing here, it'd be nice to confirm this, because it seems as if it might not be.