Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.

Moderator: amosbatto

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.

I write a trigger before my form:
Code: Select all
//This is exist in my server and my database
$aFileVar = array ( 
	'appDocUid' => '4451428635d2af3e2734131096936236',
	'name' => 'test.pdf',
	'version' => 1

//This work
//for multiple file type
@=multipleFileVar005 = array();
@=multipleFileVar005[0] = $aFileVar;

//This don't work!
//for single file type
@@fileVar003 = json_encode(array($aFileVar['appDocUid']));
@@fileVar003_label = json_encode(array($aFileVar['name']));
when I use thie trigger in before my form, the multiple file is correct and get data, but the file field don't show download link in the form.

How can I set data and download link for file field in my form with trigger.

You need to set the "name" of the File field in the APP_DOCUMENT.APP_DOC_FIELDNAME field in the database in order for the file to appear in the File field.
See: ... se_storage

Add this to your trigger code:
Code: Select all
   APP_DOC_UID='4451428635d2af3e2734131096936236' AND DOC_VERSION=1";

You have to copy the library, put it into folder:[…]

hi, I have m_file variable (@@draft), and I have […]

Croatian translation

Hi gosmart, Nobody is currently working on a C[…]

Hi, I am facing some issues while using the Proce[…]