forked from DonovanChan/fmfunctions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFileView.calc
39 lines (32 loc) · 918 Bytes
/
FileView.calc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Let ( [
path = folder ;
id = recID ;
nullMessage = "Data:text/html,Please select a file to view" ;
nullPathMessage = "Data:text/html,Path to file on server is invalid"
];
Case (
IsEmpty ( id ) ; nullMessage ;
IsEmpty ( path ) ; nullPathMessage ;
SuperContainerGetFile (
SuperContainerUser ;
SuperContainerPassword ;
path ;
height ;
width ;
resolution ; // resolution
style ; // style
backgroundColor ; // bckgndColor
False
)
)
)
/* —————————————————————————————— //
NAME:
FileView ( recID ; folder ; height ; width ; resolution ; style ; backgroundcolor )
PURPOSE:
Fetches file from SuperContainer for viewing in solution.
This is a wrapper for the core function, adding extra validation for record selection, etc.
EXAMPLES:
HISTORY:
Created: 2011-Apr-14 09h52 PST — Donovan A. Chandler
*/