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
------------------------------
Original Message:
Sent: Wed February 08, 2023 01:11 AM
From: Witold Olewniczak
Subject: Add Document Functionality in Coach View
Hi Tomas
What If I want upload file with more then 3 custom properties (not only name)? How do that?
------------------------------
Witold Olewniczak
Original Message:
Sent: Mon September 20, 2021 05:33 AM
From: Tomas Dambrauskas
Subject: Add Document Functionality in Coach View
yes, that's true, this CV won't allow changing any properties.
One of the workarounds could be:
- 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
- Use "ECM File Uploader"
- Configure needed EVENT, e.g. Document name formula
------------------------------
Tomas Dambrauskas
Original Message:
Sent: Mon September 20, 2021 04:48 AM
From: Lakshya Agarwal
Subject: Add Document Functionality in Coach View
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
Original Message:
Sent: Mon September 20, 2021 04:43 AM
From: Tomas Dambrauskas
Subject: Add Document Functionality in Coach View
Hi,
have you tried to use "ECM File Uploader" from "Content Management" toolkit?
------------------------------
Tomas Dambrauskas
Original Message:
Sent: Sun September 19, 2021 02:06 PM
From: Lakshya Agarwal
Subject: Add Document Functionality in Coach View
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
------------------------------