Hi all,
I´ve a simple, i hope, question.
I´m trying to compare a year in a form published in a Sharepoint library with the current year (substring-before(now(); "-"))
I´ve the following code in a rule of a button.
if (NReparacao = substring-before(now(); "-"))
NRef = máx(NRef ) + 1
else
NRef = "001"
But i´m getting the following error
Expected value type: end-of-string !
Real value: name
if (my:NReparacao = substring-before(now(); "-"))
-->my:NRef