TOC : Script API > JavaScript > JavaScript API > Component > Shape > Rectangle > Method >

 

SetLinkRepository

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

TOC : Script API > JavaScript > JavaScript API > Component > Shape > Rectangle > Method >

 

SetLinkRepository

 

 

Execute or save the file on the server repository.

 

 

 

Prototype :

 

void SetLinkRepository

(

        string RepositoryFileURL,

        string FileExecuteMode

)

 

 

 

Arguments :

 

RepositoryFileURL

Repository File URL

FileExecuteMode

File Execution Mode

 

 

 

Reference :

 

HTML5JS viewer only support "save".

 

Android and iOS viewers only support "run".

 

File Execution Mode:

 

mode

description

run

execute the linked file

save

save the linked file

choice

execute/save/cancel the linked file

 

 

 

Example :

 

This.SetLinkRepository("ozp://sample.jpg", "choice");

 

 

 

Available Events :

 

OnAddToPage,  OnBind,  OnEndBind,  OnInitialize,  OnStartBind