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.
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
Hi Bruno,
Thank you for pointing this out!
Warm Regards,
Jun Mun