Can somebody explain this widget to me? I want to display a Document as you can do in the Classic UI. A Document contains LocalFile_Id_Id which contains Folder_Id, but the binaries are stored elsewhere. Internally the Classic UI uses: https://…/Application/Document/odata/GetDocumentFile(function=@x)?@x={ "FileId":"MY_FILE_ID", "IconId":"MY_ICON_ID"} I can use the Mendix Out-of-the-Box widget ' Dynamic Image' to display the Icon, but it doesnt support PDF, so I thought thats why the 'OPC EX FN Pdf Viewer' exists, but it works differently and expects a list. When I pass it [Document, by Database] (a list of all documents, which I can filter with XPath to reduce it to my single, wanted document), the UI prints following Error: Could not render widget 'Document.Details_Document.oPCEXFNPdfViewer1' Maybe someone has experience with the widget and got a soluton for me.
asked
Kevin Friedrich
3 answers
0
As a recommendation, the cleanest and most reliable approach is to use the Document Viewer for PDFs. If your goal is simply to display a PDF, place a Data View with a Document (System.FileDocument or a specialization) as its context, and add a Document Viewer inside it. This widget natively supports PDF files and works with a single document, so there is no need to pass or filter a list. Did you try this?
answered
Ahmet Kudu
0
Yes, but with the basic Document Viewer I can't pass a Data Source (a PDF File) since I am using the Opcenter Entities.
Have you used it with Opcenter?
When using the Dynamic Image Widget I can select Document > Icon_id > File as input and it works.
With the Document Viewer it doesn't let me select the File entity.
answered
Kevin Friedrich
0
Hi Kevin, did you send any messages to the dedicated support team for Opcenter Foundation Execution?
If you have any questions or encounter issues related to Opcenter Execution topics, feel free to reach out via email.