John Jansen - One more question

J

John

Hi John,

Can you provide more detail on how to do this?

Thanks,
John



John Jansen (MSFT) said:
Yeah, you just need to create new ones in the XSLT (copy and paste the
filterParam we create by default and give it a new name).

--
Thanks!
John Jansen
Microsoft Office FrontPage
This posting is provided "AS IS" with no warranties, and confers no rights.
John said:
John,

Can I pass more than one parameter?

John

John Jansen (MSFT) said:
Hi Jim, you are right about the fact that his steps would have him filtering
on the string [T1], that's why I made sure to specify choosing [Input
Paramter] from the drop-down. Since List View web parts don't provide this
parameter from the drop-down, he must have been confused and just
typed
in
his own value.

However, you do still need to perform steps 5 - 7 or else the view you
connect to would take in the parameter but have no idea what to do
with
it.
The thing that causes confusion here is that in order to do the "Contains"
side of things, you cannot just set up connections that perform the
filtering for you, you need to set up the filter first and pass it a
parameter which populates the Contains clause via connections.

--
Thanks!
John Jansen
Microsoft Office FrontPage
This posting is provided "AS IS" with no warranties, and confers no rights.
I don't believe you need to do steps 5-7. In fact, I think
these are filtering on the literal "[T1]".

Step 10 should set up all the filtering you need.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------



-----Original Message-----
COPIED FROM microsoft.publiv.sharepoint.windowsservices


John,

I like your suggestion, but I am obviously doing
something wrong. It says,
"There are no items to show in this view of the "test"
list.

Here is what I did.

1. Opened the Sharepoint site with FrontPage 2003
2. Created a Web Part page
3. Dragged the "test" list to the right column
4. Right click to open "List View Properties"
5. Clicked on Filter
6. Clicked on "Click here to add a new clause"
7. Entered Field Name "Last_Name"
Comparison "Contains"
Value "[T1]"
8. Dragged the "Form Web Part" to the left column
9. Right click on "Form Web Part" to open Web Part
Connections Wizard
10. Entered:
Provide Form Values To
Connect to a Web Part on this Page
Target Web Part "test" Target
Action "Get Sort/Filder
From"
Columns in Form Web Part "T1" Columns in
test "Last_Name"
Finished
11. Saved the page

What did I do wrong?


John


in message
Sorry I'm jumping in here late. I believe the steps
below will get you
what
you want using Connections from within FrontPage 2003...

Convert the view you want to be filtered into a Data
View Web Part using
FrontPage
Create a filter where your Field Name CONTAINS [Input
Parameter]

Insert a Form Web Part onto the page
Use Web Part connections to pass the Form value as a
parameter to the Data
View

Save the page.

--
Thanks!
John Jansen
Microsoft Office FrontPage
This posting is provided "AS IS" with no warranties,
and confers no
rights.


.
 
J

John Jansen \(MSFT\)

Sure,

Insert a data view of your data source and save the page
In code view, find the following line:
<ParameterBinding Name="filterParam" Location="Postback;Connection"/>

Copy this line and then paste it and change the name attribute, like this:
<ParameterBinding Name="filterParam2" Location="Postback;Connection"/>

Now when you try to do a filter or setup connections, both of these
parameters will be available.

--
Thanks!
John Jansen
Microsoft Office FrontPage
This posting is provided "AS IS" with no warranties, and confers no rights.
John said:
Hi John,

Can you provide more detail on how to do this?

Thanks,
John



John Jansen (MSFT) said:
Yeah, you just need to create new ones in the XSLT (copy and paste the
filterParam we create by default and give it a new name).

--
Thanks!
John Jansen
Microsoft Office FrontPage
This posting is provided "AS IS" with no warranties, and confers no rights.
John said:
John,

Can I pass more than one parameter?

John

Hi Jim, you are right about the fact that his steps would have him
filtering
on the string [T1], that's why I made sure to specify choosing [Input
Paramter] from the drop-down. Since List View web parts don't provide
this
parameter from the drop-down, he must have been confused and just
typed
in
his own value.

However, you do still need to perform steps 5 - 7 or else the view you
connect to would take in the parameter but have no idea what to do with
it.

The thing that causes confusion here is that in order to do the "Contains"
side of things, you cannot just set up connections that perform the
filtering for you, you need to set up the filter first and pass it a
parameter which populates the Contains clause via connections.

--
Thanks!
John Jansen
Microsoft Office FrontPage
This posting is provided "AS IS" with no warranties, and confers no
rights.
I don't believe you need to do steps 5-7. In fact, I think
these are filtering on the literal "[T1]".

Step 10 should set up all the filtering you need.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------



-----Original Message-----
COPIED FROM microsoft.publiv.sharepoint.windowsservices


John,

I like your suggestion, but I am obviously doing
something wrong. It says,
"There are no items to show in this view of the "test"
list.

Here is what I did.

1. Opened the Sharepoint site with FrontPage 2003
2. Created a Web Part page
3. Dragged the "test" list to the right column
4. Right click to open "List View Properties"
5. Clicked on Filter
6. Clicked on "Click here to add a new clause"
7. Entered Field Name "Last_Name"
Comparison "Contains"
Value "[T1]"
8. Dragged the "Form Web Part" to the left column
9. Right click on "Form Web Part" to open Web Part
Connections Wizard
10. Entered:
Provide Form Values To
Connect to a Web Part on this Page
Target Web Part "test" Target
Action "Get Sort/Filder
From"
Columns in Form Web Part "T1" Columns in
test "Last_Name"
Finished
11. Saved the page

What did I do wrong?


John


in message
Sorry I'm jumping in here late. I believe the steps
below will get you
what
you want using Connections from within FrontPage 2003...

Convert the view you want to be filtered into a Data
View Web Part using
FrontPage
Create a filter where your Field Name CONTAINS [Input
Parameter]

Insert a Form Web Part onto the page
Use Web Part connections to pass the Form value as a
parameter to the Data
View

Save the page.

--
Thanks!
John Jansen
Microsoft Office FrontPage
This posting is provided "AS IS" with no warranties,
and confers no
rights.


.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top