A
Anders
Hi all,
I really could use some some help now....:-|.
I have a form containing two combo boxes; Products and ProductRegion. I
populate them from two SharePoint Lists called the same.
The Products Region SharePoint list have one column; Region. The Products
SharePoint list have two columns; Product and Region. The Region column is a
lookup column pointing to Region in the ProductRegion list.
I would like both lists to be fully populated initially. When a user selects
a ProductRegion I would like to filter the Products combo to show only the
products in the selected region. I cannot get this to work...
I have started with finding out what values I am comparing. If I create a
rule in the Products combo to fill out a temporary textbox with the
ProductRegion of the selected Product from the data connection, it writes
<region_id>;#<region>. Example: 1;#Europe. The ProductRegion combo writes
only the <region> to the temporary textbox. Example: Europe. I can handle
this by using the function substring-after. substring-after(@Region[Product =
@Product]; "#") gives Europe as result.
Now, if I create a rule in the ProductRegion combo to Set Fields Value with
the condition that the Products field is to be populated with Products from
from the Products data connection filtered to take only the products with the
same region as selected in the ProductRegion combo.
@Product[ProductRegion = substring-after(@Region; ";")]
I have also tried to create a filter on the Products combo to select rows
only with the same ProductRegion as the one selected in the ProductsRegion
combo.
In the Products combo, in the column definition I have created a filter that
the ProductRegion combo should equal to the function substring-after(@Region;
";").
This results in that the Products combo becomes empty what ever I choose.
Clear as mud...clear as my brain right now....
I would really appreciate any help.
Anders
I really could use some some help now....:-|.
I have a form containing two combo boxes; Products and ProductRegion. I
populate them from two SharePoint Lists called the same.
The Products Region SharePoint list have one column; Region. The Products
SharePoint list have two columns; Product and Region. The Region column is a
lookup column pointing to Region in the ProductRegion list.
I would like both lists to be fully populated initially. When a user selects
a ProductRegion I would like to filter the Products combo to show only the
products in the selected region. I cannot get this to work...
I have started with finding out what values I am comparing. If I create a
rule in the Products combo to fill out a temporary textbox with the
ProductRegion of the selected Product from the data connection, it writes
<region_id>;#<region>. Example: 1;#Europe. The ProductRegion combo writes
only the <region> to the temporary textbox. Example: Europe. I can handle
this by using the function substring-after. substring-after(@Region[Product =
@Product]; "#") gives Europe as result.
Now, if I create a rule in the ProductRegion combo to Set Fields Value with
the condition that the Products field is to be populated with Products from
from the Products data connection filtered to take only the products with the
same region as selected in the ProductRegion combo.
@Product[ProductRegion = substring-after(@Region; ";")]
I have also tried to create a filter on the Products combo to select rows
only with the same ProductRegion as the one selected in the ProductsRegion
combo.
In the Products combo, in the column definition I have created a filter that
the ProductRegion combo should equal to the function substring-after(@Region;
";").
This results in that the Products combo becomes empty what ever I choose.
Clear as mud...clear as my brain right now....
I would really appreciate any help.
Anders