Skip to main content
yasminea4528
May 10, 2024
Question

documentViewer

  • May 10, 2024
  • 7 replies
  • 0 views

 hello , j'ai besoin d'aide s'il vous plait .Je voudrais traiter cette partie : lorsque l'utilisateur dépose des documents, au moment de la visualisation, les documents PDF doivent être compilés dans un seul visualiseur de PDF. J'ai utilisé la fusion de PDF dans le modèle de processus avec ce code dans l'interface qui s'appel :               projet_docsInterface( fv!item)


a!cardLayout(
contents: a!documentViewerField(
label: ri!record['recordType!**.{c36418cc-1402-4f64-801f-7a433c3ed250}type'],
labelPosition: "ABOVE",
document: ri!record['****0902-47a3-8490-7833fee28c37}docid'],
height: "TALL"
),

)

et j'ai fait l'appel de cette interface ici : 

a!cardLayout(

contents: {

a!forEach(
items: local!docs,
expression: {
rule!Projet_docsInterface( fv!item)
}
)

},
height: "AUTO",
style: "#cccccc",
shape: "ROUNDED",
padding: "STANDARD",
marginAbove: "LESS",
marginBelow: "STANDARD",
decorativeBarPosition: "END",
decorativeBarColor: "#000000"
),

    7 replies

    richardm900458
    May 10, 2024

    Salut thraskar, 
    bienvenue. Est-ce que c'est possible de traduire ta question?
    Je suis allemend est mon anglais est limité mais dans cette communauté ici, on parle anglais et peut-être espagnol. 
    La vocabulair d'appian est anglais.-> C'est plus facile d'etres précise à notre response pour d'aider.

    (excusez moo pour mon competence limité de la language francaise )

    yasminea4528
    May 10, 2024

    yes for sure this is my question translated : "Hello, I need some help please. I would like to handle this part: when the user uploads documents, at the time of visualization, the PDF documents should be compiled into a single PDF viewer. I have used PDF merging in the process model with this code in the interface named: project_docsInterface(fv!item).

    stefanhelzle0001
    Brainy
    May 11, 2024

    In Appian, you cannot display a just uploaded document. Appian does finalize the upload only AFTER a submit action.

    This is a snippet from a blog post I will publish soon. I hope it helps.

    richardm900458
    May 10, 2024

    in my first comment i asked the poster to translate his question.
    Is that not working at all?  can you explain your issue more? assumed that the issue is that the document is not displayed:

    [mention:9322c334ce224857b6b7e2f011f055bd:e9ed411860ed4f2ba0265705b8793d05]  what parameters does rule  rule!Projet_docsInterface() have? my first idea is, that this rule has more than one parameter eventually so that fv!item is filling another parameter than "record"

    yasminea4528
    May 10, 2024

    Thanks for answering me ! No, it works, but I want all the documents to be in the same document viewer. I don't want to have a document viewer to display each document. In my case, the user should input three documents in a form, then verify the form, and upon confirming by pressing the 'confirm' button, I want those three documents to be displayed in the same document viewer

    richardm900458
    May 11, 2024

    a documentviewer can only display one document.

    I created a post connected to IDP quite some time back, but this might help you as well as i made some experiments how to merge different image and document types with a plugin called -  PDF Tools plugin

    you can find the commmunity post here.
    https://community.appian.com/discussions/f/best-practices/23665/idp-experiences-picture-formats-vendor-settings