Hi,
I was told that callFunction is like having that function in your calling efs. This means that something like this should work (and it did work until my HD crashed):
calling efs
...
var xxx = callFunction (""location/yyy.efs", "fake")
..
****************
where in yyy.efs
function main() {
}
function fake() {
return studyXYZ.getValue(MAStudy.MA)
}
**************
The error mesage I get is that in function fake studyXYZ has no properties.
NOTE1: studyXYZ is defined in both calling efs AND in yyy.efs.
NOTE2: If I include the entire function in calling efs it works.
NOTE3: if I give fake the study name as parameter also works (but I don't want to do this because I work on several studies, with already many input parameters, so would be a mess).
Can anybody tell where my brain damage is?
Thank you.
I had this working before i lost my HD.
I was told that callFunction is like having that function in your calling efs. This means that something like this should work (and it did work until my HD crashed):
calling efs
...
var xxx = callFunction (""location/yyy.efs", "fake")
..
****************
where in yyy.efs
function main() {
}
function fake() {
return studyXYZ.getValue(MAStudy.MA)
}
**************
The error mesage I get is that in function fake studyXYZ has no properties.
NOTE1: studyXYZ is defined in both calling efs AND in yyy.efs.
NOTE2: If I include the entire function in calling efs it works.
NOTE3: if I give fake the study name as parameter also works (but I don't want to do this because I work on several studies, with already many input parameters, so would be a mess).
Can anybody tell where my brain damage is?
Thank you.
I had this working before i lost my HD.
Comment