TRIRIGA

Expand all | Collapse all

UX - Document Manager Upload

  • 1.  UX - Document Manager Upload

    Posted Fri October 25, 2019 11:59 AM

    Does anyone know when can we expect to see the ability to upload documents to the document manager using the UX components

    .I am aware of the triplat-document component, but it appears that this is just for download.

    The triplat-file component, does not seem to be for use with the document manager, but for binary fields in a BO.

     

    Anyone have suggestions on UX with the document manager.

    From past experience with the Connector API, getting the smart object revision on the document to increment before uploading revisions was a problem.



    ------------------------------
    Robert Nenne
    ------------------------------


  • 2.  RE: UX - Document Manager Upload

    Posted Mon March 08, 2021 08:49 AM
    Hello, Robert,

    There is an image upload in the Service Request app, you might want to check how it's done there

    ------------------------------
    Kirill Drozdov
    ------------------------------



  • 3.  RE: UX - Document Manager Upload

    Posted Tue March 09, 2021 11:09 AM
    The upload on the service request goes to an IMAGE type field on the Business Object. 
    I'm looking for something that uploads to the document manager

    ------------------------------
    Robert Nenne
    ------------------------------



  • 4.  RE: UX - Document Manager Upload

    Posted 24 days ago
    Hi Robert, 

    I had the same issue. We ended up opening using javascript to open a new window to the "classic" upload window in TRIRIGA. Here are a few tips:
     - You need to mimic the findAccept() function in your UX app that the Upload Window is looking for when the upload is complete.
     - Create an Action in the UX model that will run a WF to do the association between the newly created document and your "parent" record.

    ------------------------------
    Nick Schwake
    ------------------------------



  • 5.  RE: UX - Document Manager Upload

    Posted 24 days ago
    I ended up doing the same thing.  Not really thrilled about using a "undocumented" feature like the findAccept() function. If IBM changes this things could break.
    Just wondering are you using Polymer 1 or Polymer 3.   
    I got this to work in Polymer 1, but was having issues in Polymer 3. 
    The findAccept() function didn't seem to be visible to the "classic" UI upload window in Ploymer 3.
    I haven't had time to research why, but sure I'll have to revisit this at some point

    Bob Nenne

    ------------------------------
    Robert Nenne
    ------------------------------



  • 6.  RE: UX - Document Manager Upload

    Posted 24 days ago
    I agree, its something Tririga should support in UX. We are using Polymer 3. We did the following:
    1. Created a new .js file and put the findAccept() function in there
    2. In the connectedCallback() function of our top level Polymer web component we used javascript to create a 'script' element and appended it to the 'head' element. See the code below.
    This brings the findAccept() function "outside" of Polymer and lets the "classic" UI window see it.  

      connectedCallback() {
            super.connectedCallback();
            afterNextRender(thisthis._loadRequestsPage);
            var script = document.createElement('script');
            script.type = 'text/javascript';
            script.src = '../components/r/3/v/en-US/l/VIEW_NAME/findAccept.js';
            document.getElementsByTagName('head')[0].appendChild(script);
        }


    ------------------------------
    Nick Schwake
    ------------------------------