H
Herve Brun
Hi everybody ,
I've two VERY SIMPLE web parts in a SharePoint WebPart page ...
The first one is a SimpleFormWebPart (in this case, we can say that it
is nothing but a HTML form) ...
This web part communicates with the second one to give him input
parameters.
In fact, I've defined as much parameters in the XSLT data view as
needed (5 in this case).
So, I've got one form which supplies filter parameters to the second
one ...
I've got two problems :
- Some of my parameters are numbers, others are string based. These
strings are causing one problem : when the user enters nothing (the
string fields are not filled in) then my filter is not working. In
fact, the rules defined in the data view's filter are like the
following one : <Field> contains <Parameter>. But if <Parameter> is ""
(empty string) then no result is returned because no <Field> contains
an empty string ....
- The second problem is that the form web part is somewhat buggy ... ?
In fact, if you fill in a field, submit the form, clear the field and
submit the form again then the parameter in not "" (empty string) but
the old value of the first pass ... ? This is really annoying ...
Do I do sometyhing wrong ??
Does someone know how to handle the first problem ? Can I define a
default value to a parameter which is not "empty string" but "All
values" ?
Is it the way a SimpleFormWebPart is intended to work ?
Thanks for your answers ..
I've two VERY SIMPLE web parts in a SharePoint WebPart page ...
The first one is a SimpleFormWebPart (in this case, we can say that it
is nothing but a HTML form) ...
This web part communicates with the second one to give him input
parameters.
In fact, I've defined as much parameters in the XSLT data view as
needed (5 in this case).
So, I've got one form which supplies filter parameters to the second
one ...
I've got two problems :
- Some of my parameters are numbers, others are string based. These
strings are causing one problem : when the user enters nothing (the
string fields are not filled in) then my filter is not working. In
fact, the rules defined in the data view's filter are like the
following one : <Field> contains <Parameter>. But if <Parameter> is ""
(empty string) then no result is returned because no <Field> contains
an empty string ....
- The second problem is that the form web part is somewhat buggy ... ?
In fact, if you fill in a field, submit the form, clear the field and
submit the form again then the parameter in not "" (empty string) but
the old value of the first pass ... ? This is really annoying ...
Do I do sometyhing wrong ??
Does someone know how to handle the first problem ? Can I define a
default value to a parameter which is not "empty string" but "All
values" ?
Is it the way a SimpleFormWebPart is intended to work ?
Thanks for your answers ..