function: datetime\addDays, index: 2, should be: numeric [] []

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dodom2
    Senior Member
    • Jan 2020
    • 198

    function: datetime\addDays, index: 2, should be: numeric [] []

    Hey guys.

    I have a issue with the datetime\addDays formula.

    requestDateTime=datetime\addDays(datetime\today(), selectActivity.performEveryDays);

    I get an error of function: datetime\addDays, index: 2, should be: numeric [] [].

    My issue is that I need the ability of adding different days depending on the record field but it won't accept the above or a variable.

    Does anyone have another solution?
  • rabii
    Active Community Member
    • Jun 2016
    • 1250

    #2
    Hi

    Seems that the field selectActivity.performEveryDays is a string, addDays function requires a numeric value. Just make sure that peformEeveryDays field is of type integer and everything should work fine.
    Rabii
    Web Dev

    Comment

    Working...