Files
Purpose: |
Save the variable content into a local file (forced download) |
Category: |
Files |
Syntax: |
VarToLocalFile [var name] "filename.txt" var name Variable name. filename.txt File name (include extension) to save the data. |
Example: |
VarToLocalFile [myvar] "output.txt" |
Purpose: |
Save a Base64 enconded content into a local file. |
Category: |
Files |
Syntax: |
Base64ToLocalFile [var name] "filename.jpg" var name Variable name. filename.jpg File name (include extension) to save the data. |
Example: |
Base64ToLocalFile [myBase64Data] "image.jpg" |
Purpose: |
Load and execute an external JavaScript file. |
Category: |
Files |
Syntax: |
LoadJS "url" url Path to .js file. |
Example: |
LoadJS "https://mydomain.com/js/myscript.js" |
Purpose: |
Load an external CSS file. |
Category: |
Files |
Syntax: |
LoadCSS "url" url Path to .css file. |
Example: |
LoadCSS "https://mydomain.com/css/mycss.css" |
Purpose: |
Load an external HTML file into a Container object. |
Category: |
Files |
Syntax: |
LoadHTML "container id" "url" Container Object Id where the HTML content will be rendered once loaded. url Path to .html file. |
Example: |
LoadHTML "Container1" "https://mydomain.com/html/mywebpage.html" |
Purpose: |
Load a Google font so it can be displayed even if not installed on the client system |
Category: |
Files |
Syntax: |
LoadGoogleFont "google font name" google font name Google font name to load. |
Example: |
LoadGoogleFont "Open Sans" |
Purpose: |
Loads an external file content into a variable. |
Category: |
Files |
Syntax: |
FileToVar "url" [result var] url Path to the file. result var Variable to store the loaded content. |
Example: |
FileToVar "https://mydomain.com/txt/mytext.txt" [myvar] |
Purpose: |
Set the subroutine to execute after any successful asyncronous loading |
Category: |
Files |
Syntax: |
OnLoadSuccess "subroutine name" subroutine name Subroutine name to be called |
Example: |
OnLoadSuccess "mysubroutine" |
Purpose: |
Set the subroutine to execute when an error occurs in any asyncronous loading |
Category: |
Files |
Syntax: |
OnLoadError "subroutine name" subroutine name Subroutine name to be called |
Example: |
OnLoadError "mysubroutine" |
Purpose: |
Set the subroutine to execute when all asynchronous loading have been completed |
Category: |
Files |
Syntax: |
OnLoadEnd "subroutine name" subroutine name Subroutine name to be called |
Example: |
OnLoadEnd "mysubroutine" |
Purpose: |
Remove the OnLoadSuccess listener |
Category: |
Files |
Syntax: |
RemoveOnLoadSuccess |
Example: |
RemoveOnLoadSuccess |
Purpose: |
Remove the OnLoadError listener |
Category: |
Files |
Syntax: |
RemoveOnLoadError |
Example: |
RemoveOnLoadError |
Purpose: |
Remove the OnLoadEnd listener |
Category: |
Files |
Syntax: |
RemoveOnLoadEnd |
Example: |
RemoveOnLoadEnd |
Purpose: |
Loads the content of a local file into a variable. You should use this action inside the FileInput Object change event. Note that loading is asynchronous. The content is loaded as text. |
Category: |
Files |
Syntax: |
LocalFileToVar "fileinput obj name" [result var] fileinput obj name A FileInput Object previously added to the Path to the Work Space. Necessary to allow the user to select the file. result var Variable to store the loaded content. |
Example: |
LocalFileToVar "FileInput1" [myvar] |
Purpose: |
Loads the content of a local binary file into a variable. You should use this action inside the FileInput Object change event. Note that loading is asynchronous. The content is loaded as text. |
Category: |
Files |
Syntax: |
LocalBinaryFileToVar "fileinput obj name" [result var] fileinput obj name A FileInput Object previously added to the Path to the Work Space. Necessary to allow the user to select the file. result var Variable to store the loaded content. |
Example: |
LocalBinaryFileToVar "FileInput1" [myvar] |
Purpose: |
Loads the content of a local file into a variable. You should use this action inside the FileInput Object change event. Note that loading is asynchronous. The content is loaded as Base64. |
Category: |
Files |
Syntax: |
LocalBinaryFileToBase64Var "fileinput obj name" [result var] fileinput obj name A FileInput Object previously added to the Path to the Work Space. Necessary to allow the user to select the file. result var Variable to store the content in Base64 format. |
Example: |
LocalBinaryFileToBase64Var "FileInput1" [myvar] |