Hi
Can I get file by url link in method? I don't know code how to write
Another question is system get url file how to auto attachment in relationship.
You can use following Client Side method: top.aras.getFileURLEx(fileItem);
You can check how this function is working by review the code in following client side js file:
\Innovator\Client\javascript\item_methodsEx.js
Hi
If user provide url aras have api can download file? Because this url open by homepage will get file.
So user want to key in url and push a button get file
Hi
I create a AAA ItemType and create AAA_File ItemType (this is AAA itemtype RelationshipTypes and Related ItemType is File)
AAA Form have a button
step 1.download document
In button click event code:
WebClient wc = new WebClient();
wc.DownloadFile("">testweb/.../upload, @"C:\TestDownload\download.jpg");
step 2. User get download.jpg and add in RelagionShips File
Question:I want click button download document and auto add file in relationships.
Have anything API can do like FileUpload("fileName","URL") download and add document by system self
Hi Michelle,
thanks for posting the code for the WebClient. That was a missing piece for one of my own task.
Your code downloads the file to the server.
For storing the file into the Vault, you can take a look at my SSRS project:
github.com/.../AIP_get_SSRS_Report.cs
Look at line 69 downwards. The examples downloads a file to the server, than moves it to the file Vault and than attach it to the File Relationship of ItemType Document.
Regards!
Angela