Modifying an IPA written by someone else and getting an error "agsDate" is not defined from this call "agsDate(Emptermtoday_EFFECT_DATE)".
I need some guidance as to what the updated call should be or I may look to research it.
Thanks
I need some guidance as to what the updated call should be or where I may look to research it.
Hi Patrick,I believe the call would be string = getDateAGS(Emptermtoday_EFFECT_DATE)
The following is a search from the IPD help:
it returns an error msg
TypeError: Cannot find function getFullYear in object 01/15/2020 (threadScript#191)
Somewhere before the function call was working.....no documentation to reference these ags calls.
Maybe they created their own functions, but the delivered functions would depend on the object in Emptermtoday_EFFECT_DATE.If your date is coming in as DME like your error is showing, you'd have to stack another function to get it to JS date format first.So string = getDateAGS(pfDate(Emptermtoday_EFFECT_DATE, 'mm/dd/yyyy')).