26
Views
0
Comments
[Simple Resource Viewer] JavaScript for Text in Resource Date field
simple-resource-viewer
Reactive icon
Forge asset by Rafael Fantato
Application Type
Reactive

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

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.