Thanks for this Rene, we've made these changes to 2.0.0.11 and we can now load forms by pasting and by browsing to a file.
>-----Original Message-----
>From: René Haentjens [mailto:[log in to unmask]]
>Sent: 14 August 2013 15:30
>To: WebPA
>Cc: Nuala Davis
>Subject: Re: Importing forms in WebPA 2.0.0.9 & 10
>
>The same in 2.0.0.11...
>
>I made the following changes in the tutors/forms/import scripts, and it
>all seems to work now, René.
>
>index.php:
><form name="frmXml" enctype="multipart/form-data" action="xml_file.php"
>method="POST"> <!-- // RH, was "../../../tmp/xml_file.php" -->
>
>import.php:
>'form_xml' => $xml //RH, was ''
>
>xml_file.php (in 3 places):
>require_once("../../../includes/inc_global.php"); // RH, was
>"../includes/..." (3 lines changed)
>$isValid = Validate($localfile, 'schema.xsd'); // RH, was
>'../tutors/forms/import/schema.xsd'
>'form_xml' => $xml // RH, was ''
>
>17/04/2013 17:08, Nuala Davis:
>> Hi all,
>>
>> Wonder if anyone could offer any pointers on this ... I'm not sure if it is
>something I am doing wrong. In brief, I've not been able to find a way of import
>forms into WebPA 2.0.0.9 or 2.0.0.10
>>
>> - cut and paste results in a form without any criteria which I cannot add to or
>delete
>> - browse to file location then load results in a file not found error <server
>address>/tmp/xml_file.php
>>
>> The only way round it that I have found so far is to recreate the form.
>>
>> Many thanks
>>
>> Nuala
|