Item9557: Import via URLPARAM delivers only first entry
Priority: Normal
Current State: No Action Required
Released In:
Target Release: n/a
Applies To: Extension
Component: FormPlugin
Branches:
--
MilaVawo - 26 Aug 2010
We have created a form with the
FormPlugin and are trying to put values
entered via checkboxes into a
DataForm.
Code of the input form:
%STARTFORM{
name="QualityNewProjectForm"
action="save"
onlywikiname="off"
topic="QualityIssueAUTOINC0000001"
method="POST"
passthrough="on"
}%
..................................
%FORMELEMENT{
type="checkbox"
name="ProjectNumbers"
title="Projects"
options="%DBSTATS{"ProjectForm AND topic='N0[0-9]{4}' AND Customer='%URLPARAM{"Customer"}%' AND Productfamily='%URLPARAM{"Productfamily"}%'" web="Project" fields="Productfamily" sep="," format="$topics"}%"
}%
............................
and here the definition of the
DataForm:
| *Name* | *Type* | *Size* | *Values* | *Tooltip message* | *Attributes* |
..............................................
| ProjectNumbers | text | 40 | %URLPARAM{"ProjectNumbers" multiple="on" separator=", "}% | e.g. N01234 | |
...............................................
The Problem is that if more than one project selected in the input form, only the first one
is submitted to the
DataForm.
In
Item8590 is described that it should work with release 1.(0.)6 but we cannot confirm that.
Best Regards
You need to change your form definition so that the Type of
ProjectNumbers is checkbox. Then it should work. And update the Values definition to be the DBSTATS macro as defined in your form. And change the size to something reasonable like 5 (i.e. 5 columns of checkboxes).
--
DavidPatterson - 03 Sep 2010