Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
User avatar
By amosbatto
#825086
HeshanKaru1994 wrote: Fri Jun 21, 2019 5:58 am Can we not use the file and set the generated csv to a link
The code example I gave you explains how to get the URL. Use this code:
Code: Select all
 	//If needing to get URL to download CSV file:	
	@@csvFileUrl = ($g->is_https() ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] .
          '/sys' . @@SYS_SYS . '/en/neoclassic/cases/cases_ShowDocument?a=' . @@fileId;
	@@csvFilename = pathinfo($filePath, PATHINFO_BASENAME);
Then add a link field to the Dynaform whose "href" property is set to: @@csvFileUrl
and whose "display text" property is set to: @@csvFilename
See: https://wiki.processmaker.com/3.2/Links ... n_Triggers

Being the best in the started business is the obje[…]

Winzo is a popular and unique game on the mobile p[…]

Cannot create process using templets

Real details. The problem was solved by effect!

However, it is essential to use it responsibly and[…]