Hi,
Hope you can help me modify this fantastic Forge Asset. I would like to include a 2 or 3 character text (Code) inside the container for the “SimpleResourceDateList”. However, I am getting an error regarding the JavaScript.
What is the JavaScript I need to make this work?
I created a new client action GetDateCode:
With this script:
$parameters.Code = ResourcesData[$parameters.WidgetId][$parameters.ResourceId+":"+$parameters.Date.toDateString()]
And this Expression inside the container:
GetDateCode(ResouceList.Current.Id,NewDate(SimpleResourceDateList.Current.Year,SimpleResourceDateList.Current.Month,SimpleResourceDateList.Current.Day),SimpleResourceViewer.Id)
Thanks,
Glenn