BPM, Workflow, and Case

 View Only
  • 1.  Add Document Functionality in Coach View

    Posted Sun September 19, 2021 02:07 PM
    Edited by Lakshya Agarwal Sun September 19, 2021 02:07 PM
    Greetings

    I need to provide the capability to upload a document in one of the FileNet folder in the coach view. I checked "ECM Document List" and there is a capability to add document via clicking the Add Button and then a screen pops-up showing the properties of the Document Class where user can enter values.

    I want to use similar capability on the click of a button in the coach view(without Document List view and other functionalities). Is it possible to re-use or is there some other OOTB functionality available for the same. Below is the screen shot for the same


    Thanks

    ------------------------------
    Lakshya Agarwal
    ------------------------------


  • 2.  RE: Add Document Functionality in Coach View

    Posted Mon September 20, 2021 04:44 AM
    Hi,
    have you tried to use "ECM File Uploader" from "Content Management" toolkit?



    ------------------------------
    Tomas Dambrauskas
    ------------------------------



  • 3.  RE: Add Document Functionality in Coach View

    Posted Mon September 20, 2021 04:49 AM
    Hi @Tomas Dambrauskas

    Thanks for the response. Yes, I had a look into it. But I think it uploads the file directly to the FileNet Folder without allowing users to set properties or am I missing some configuration ?

    Thanks​

    ------------------------------
    Lakshya Agarwal
    ------------------------------



  • 4.  RE: Add Document Functionality in Coach View

    Posted Mon September 20, 2021 05:34 AM
    yes, that's true, this CV won't allow changing any properties.

    One of the workarounds could be:
    1. Add separate TextCV for user to provide document property value (needs to be added by the user before uploading the document), e.g. provide document name
    2. Use "ECM File Uploader"
    3. Configure needed EVENT, e.g. Document name formula



    ------------------------------
    Tomas Dambrauskas
    ------------------------------



  • 5.  RE: Add Document Functionality in Coach View

    Posted Wed February 08, 2023 09:28 AM
    Hi Tomas 
    What If I want upload file with more then 3 custom properties (not only name)? How do that?

    ------------------------------
    Witold Olewniczak
    ------------------------------



  • 6.  RE: Add Document Functionality in Coach View

    Posted Thu February 09, 2023 12:56 AM
    Edited by Witold Olewniczak Thu February 09, 2023 12:57 AM

    I resoved my isue myself. I did script in onClick event of "Save" button.

    function psgGenFileName(){
        var myDate = new Date();
        myName = myDate.getTime();
        
        var filename = ${txtFileName}.getText();
        
        if( filename != ''){
            myName = filename;
        }
        
        ${ECM_File_Uploader1}.setDocumentName(""+myName);
    }

    function psgPrepProps(){
        var props = [];    
        props[0] = 'digPlikRodzaj';
        props[1] = 'digPlikOpis';
        
        var values = [];
        values[0] = ${digPlikRodzaj}.getData();
        values[1] = ${digPlikOpis}.getText();
        
        ${ECM_File_Uploader1}.setUploadProperties(props, values);
    }

    psgPrepProps();
    psgGenFileName();

    ${ECM_File_Uploader1}.startUpload();



    ------------------------------
    Witold Olewniczak
    ------------------------------