[LON-CAPA-users] Panic - dropboxes not appearing?

Ray Batchelor lon-capa-users@mail.lon-capa.org
Wed, 5 Sep 2007 16:55:45 -0700


Couldn't you set it in the course parameters instead putting it in the
problem code?
You may not like that as a permanent solution,  though... just a thought.


On 9/5/07, Robert_Brewington@er.monroe.edu
<Robert_Brewington@er.monroe.edu> wrote:
> OK, I now see a brute force fix. I have to put the parameter in the main
> problem, before any of the parts.
>
> Unfortunately, this will require me to search all the problems that use this
> - there are perhaps 50 out of 500 or more? and change them all. OK, I can do
> that - I live for drudge work:) but I wonder of there is some trick to make
> it work by putting the parameter in the library? The code structure is
>
> <problem>
>      ------ This one works correctly ----
> <parameter name="uploadedfiletypes" id="13" default="xls"
> type="string_fileext" description="Allowed File Extensions for Uploaded
> Files" />
>
> <import> script library </import>
>
> ... set some script variables ...
>
> <import> problem_part_stuff library </import>
>
>
> My design was hopefully to make single changes to the libraries, rather than
> changing every problem of this structure:(
>
> I tried putting the parameter as the first line in the problem_part_stuff,
> before any parts, but that didn't work.
>
> I also tried putting it in the problem_part_stuff <part> that did the
> dropbox, thinking that it would certainly affect that part. Again with no
> luck.
>
> I also tried putting it in the script library, before the <script>
> statement. Again no luck.
>
> I ma beginning to think I can't put <parameter> statements in files that are
> imported - does that sound correct?
>
> Thanks,
> brew
>
> -----lon-capa-users-admin@mail.lon-capa.org wrote: -----
>
> To: lon-capa-users@mail.lon-capa.org
> From: Guy Albertelli II <guy@albertelli.com>
> Sent by: lon-capa-users-admin@mail.lon-capa.org
> Date: 09/05/2007 04:43PM
> Subject: Re: [LON-CAPA-users] Panic - dropboxes not appearing?
>
>
> Hi Brew,
>
>
> Quick guess:
>
> > <library>
> > <part id="Spreadsheetdone">
>
> ...
>
> > <parameter name="uploadedfiletypes" id="13" default="xls,xlsm,xlsx"
> > type="string_fileext" description="Allowed File Extensions for Uploaded
> > Files" />
>
> ...
>
> > </part>
> ...
> > <part id="dropBox">
> ...
> > <essayresponse id="upload">
> ...
>
>
> Your parameter is affecting part Spreadsheetdone, not part dropBox.
>
> Thus no extensions set thus no file selector.
>
> For a quick fix PPRM -> set uploadfiltypes at part 0 to xls,xlsm,xlsx
> for this problem.
>
>
>
> --
> guy@albertelli.com   0-7-0-9-27,137
> _______________________________________________
> LON-CAPA-users mailing list
> LON-CAPA-users@mail.lon-capa.org
> http://mail.lon-capa.org/mailman/listinfo/lon-capa-users
>
>
>  _______________________________________________
> LON-CAPA-users mailing list
> LON-CAPA-users@mail.lon-capa.org
> http://mail.lon-capa.org/mailman/listinfo/lon-capa-users


-- 
Raymond J. Batchelor
Dept of Chemistry
Simon Fraser University