04-30-2019 05:21 AM
Hi everyone,
I want to add one button in workflow task form which will search the values for form field from datalist. Basically, I want to maintain one datalist which will have employee details (employee id, employee name, email, etc), I have one property keynumber (value will be same as employee id) as a metadata of the document on which workflow will be triggered. I want to add one button "Search" which will search the employee details from the datalist based on keynumber. How can I achieve thsi?
Thanks & Regards,
Yash
04-30-2019 10:48 AM
You need to make a custom .ftl which will be used in share-config-custom.xml by one of the properties which you want to provide the search upon. In that custom .ftl file, you will fetch the list of documents of the specific document type and filter the required properties on ajax call.
Regards,
Kintu
05-07-2019 03:04 AM
Thank you Kintubhai for the reply. Can you please give more insights on this or any reference available?
05-07-2019 03:42 AM
Write one webscript which will fetch the employee details from the datalist may be in json format. Call that webscript in your custom ftl file using javascript. Now you have to make the necessary changes like(parsing the json and populating the values from json) in ftl file in order to provide the search on textfield/dropdown based on the employee id entered by the user.
I hope, you will be more clear with this.
Regards,
Kintu
Explore our Alfresco products with the links below. Use labels to filter content by product module.