17
Views
2
Comments
Solved
[OfficeUtils] Content property is missing from resource folder
officeutils
Service icon
Forge asset by Bruno Gonçalves
Application Type
Reactive

Hi Community,

I am trying to use the forge component to export to word document. 

1. The following screenshots, are from the forge demo app. As you can see, they are able to pass in xxx.Content to the input parameter, in the first image. The second image, basically just a screenshot, when i double-click on the 'Template' label, and the dialog box opens to allow me to choose whatever parameters I had to pass in


2. In my app, when i have upload the file to my resource folder, when i open the expression editor, i am not able to find the Content. 




I must have done something wrong, but what is it? Thank you.

UserImage.jpg
Bruno Gonçalves
Solution

Hi Jun,

The resource files content can only be accessed in server-side, and most likely you are trying to access it from within a client action.

You should wrap all the logic to generate your word file in a single server action, that will then be invoked by a client action.

Hope this information helps.

Best,

Bruno 


2022-05-01 03-47-53
Jun Mun Chan

Hi Bruno,

Thank you for pointing this out!


Warm Regards,

Jun Mun

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