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
Want to create your own meme coin?

In the world of cryptocurrencies, a unique and exc[…]

The market for cryptocurrencies is demonstrating a[…]

What's SAP FICO?

Embarking on a dissertation can be one of the most[…]

Hello. For rental housing, there are software solu[…]