But in my embedded form I want to display this pdf or open a new page that contain this pdf.
i try this simple :
< iframe src="data:{{ camForm.variableManager.variable(‘justificatifFile’).value }} " >
but it still not work, when i use the console.log to see the content of my variable justificatifFile it’s undefined…
The Value of the Variable is not fetched into the frontend as those can be really big files. Instead you get a path to download the contents with camForm.variableManager.variable(‘justificatifFile’).contentUrl
< img ng-src="{{contextPath}}/JUSTIFICATIF.pdf" />
but i have this error : TypeError: Cannot read property ‘value’ of undefined
i try also
< div class=“form-group”>
< label class=“control-label”>Piece d’identitee :
< div class=“controls”>
< a href="{{ camForm.variableManager.variable(‘justificatifFile’).contentUrl }}" target="_blank">Camunda variable
< /div>
< /div>
But when I click nothing happen
@Ingo_Richtsmeier
I’m trying your solution but I have 1 question in your example this line :
< object data="{{contextPath}}/file-variable?taskId={{taskId}}&variableName=document" type=“application/pdf” style=“width:100%; height:585px;” >
refer to a variable named document. I suppose this variable is a process instance variable, but what it’s the type ? a Byte value or a File value ?
You can see for me how the variable appear in Cockpit