Re: How to append parameter to Url that has parameters?
From: John Jansen \(MSFT\) (johnjan_at_online.microsoft.com)
Date: 06/16/04
- Next message: Aaron: "Re: Data Views"
- Previous message: lyndon: "Re: How to append parameter to Url that has parameters?"
- In reply to: lyndon: "Re: How to append parameter to Url that has parameters?"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 16 Jun 2004 10:26:13 -0700
I believe you are missing several steps here.
1. Changing the filter to be Company Equal [Input Parameter] is not enough.
You then have to go into code view and tell teh Data View Web Part where
that Filter Parameter will be coming from. In your case, you should make
the code that looks like this:
<ParameterBinding Name="filterParam" Location="Postback;Connection"/>
look like this:
<ParameterBinding Name="filterParam"
Location="Postback;Connection;QueryString(Title)"/>
Then the filtering will work. Also, you should add your own Parameter that
will be populated by the parameter you want to add to the URL in your
hyperlink.
<ParameterBinding Name="filterParam2"
Location="Postback;Connection;QueryString(Fruit)"/>
and add a param to the beginning of your data view to make sure it is in
scope
<param name="filterParam2"/>
-- Thanks! John Jansen Microsoft Office FrontPage This posting is provided "AS IS" with no warranties, and confers no rights. "lyndon" <anonymous@discussions.microsoft.com> wrote in message news:1d4f801c453c2$c1cc2980$a101280a@phx.gbl... > What I mean by "filtered using input parameter @Title" is > this: The @Title input parameter is the Company Name from > Step 1.The parameter name is Title instead of company > since I used the default contact list of sharepoint to > create a list of companies. I changed the Title field to > Company for that list. > > I go into the Data View propertiesProperties select > filter and then create filter "Company Equal [Input > Parameter]" > > I guess the one line statement that might help clarify > what I am having difficulty with is: > > The parameter I am trying to add to the hyperlink in the > dataview isn't an input parameter to that data view. > > and a simple example: > > The link to the dataview webpage. > http://mysite.com/step3.aspx?Company=AcmeInc&Fruit=Orange > > The step3 dataview has no Fruit field nor is the Fruit > Parameter getting used by the dataview. > > Is there a way to attach the Fruit parameter value to a > hyperlink parameter in the dataview? > > Thanks > Lyndon > > >>-----Original Message----- >>I guess I am just missing something. I think my steps > below show you how to >>do exactly what it is you are trying to do. There is > some confusion here >>about what you mean by "filtered using input parameter > @Title". How did you >>set that up? >> >>The fact that FrontPage puts the '@' symbol there is by > design, but as I >>said, probably not what you actually want. If your URL > says: >>step1.aspx?@company=Acme, then the value in your code > needs to be >>"@company". However, since the '@' sign is actually > just the XPATH way of >>selecting attributes in an XML file, this is likely not > what you want, but >>it really does depend on how you actually set up the > filtering using Input >>parameters. >> >>-- >>Thanks! >>John Jansen >>Microsoft Office FrontPage >>This posting is provided "AS IS" with no warranties, and > confers no rights. >>"Lyndon" <anonymous@discussions.microsoft.com> wrote in > message >>news:24a601c45005$b1c60620$7d02280a@phx.gbl... >>> Helpful info John, but I need to clarify and add more >>> info to fully define problem. >>> >>> First regarding your comment about the @ sign. The @ > sign >>> is put there by frontpage. I go to hyperlink > properties, >>> click Parameters button,Click Add, select Name dropdown >>> and choose parameter such as xsl:company. The Name > field >>> is then filled in with @Company and the value field is >>> filled with {@Company} >>> >>> OK restating and clarifing what I am trying to do. >>> >>> I have 4 custom lists. >>> Company List - with columns (Company[Text], Address >>> [Text], etc) >>> >>> Contact List - with Columns (Company[Lookup to Company >>> list],Full Name[Text].etc) >>> >>> Customer Software List - with columns (Company[Lookup > to >>> company list],Product Name, Version, etc. >>> >>> Support Issues - with Columns (Company[Lookup to > Company >>> list],Contact[Lookup to Contact],Product[Lookup to >>> Customer software List], etc. >>> >>> So Step1.aspx is a dataview of Company List which shows >>> company field. I have a hyperlink on this field which >>> passes Company as a parameter to Step2.aspx. link >>> is.../step_2.aspx?@Title=AcmeInc >>> >>> Step2.aspx dataview is filtered based on input paramter >>> @Title. In this data view Contact is displayed. Since >>> this list contains company field and Contact field I > can >>> add company and contact to hyperlink parameter by using >>> frontpage hyperlink parameters UI.This yields the link >>> >>> /step_3.aspx?@Company=AcmeInc&Contact=Lyndon >>> >>> Now Step3.aspx has data view of Customer Software. It > is >>> filtered using the input parameter Company. The > dataview >>> has Product Name field displayed. >>> I want to create a hyperlink on the Product Name field >>> and have the Contact parameter from the URL appended to >>> this hyperlink. Ie /step_4.aspx? >>> @Company=AcmeInc&@ProductName=CantOPt&Contact=Lyndon >>> >>> There hope that clarifies what I am trying to do. >>> Currently this is what is in my Code >>> <a href="step_4.aspx?@Company={@Company} >>> &@Product_x0020_Name={@Product_x0020_Name};Contact= >>> {Contact)"> >>> >>> Thanks, >>> Lyndon >>> >>>>-----Original Message----- >>>>Assuming you used the filterParam to perform your >>> filtering on page >>>>StepB.aspx, go into code view in FrontPage and add the >>> following: >>>> >>>>Original: >>>>/StepC.aspx@Name=Jack >>>> >>>>Change to: >>>>/StepC.aspx?Name=Jack;Title={$filterParam} >>>> >>>>NOTICE: Your URL doesn't seem to be correct: >>>> >>>>#1: There is no '?' after the .aspx indicating >>> parameters are to follow >>>>#2: You have an @ symbol in your parameter name. It >>> will still work with >>>>this @ symbol, but you probably don't actually want it >>>>#3: your link above means that you are passing the >>> name 'Jack' with every >>>>row in your data view, which also may be what you want, >>> but if you want to >>>>pass the Name data value it should look like this: >>>> >>>>/StepC.aspx?Name={@Name};Title={$filterParam} >>>> >>>>-- >>>>Thanks! >>>>John Jansen >>>>Microsoft Office FrontPage >>>>This posting is provided "AS IS" with no warranties, > and >>> confers no rights. >>>>"lyndon" <anonymous@discussions.microsoft.com> wrote in >>> message >>>>news:1995001c44cf8$a9e14650$a001280a@phx.gbl... >>>>>I have successfully passed parameters from a dataview >>>>> webpart to another dataview webpart and filtered the >>>>> dataview using the input parameter. As Per >>>>> http://support.microsoft.com/?id=831093 >>>>> >>>>> Now what I would like to do is do the same thing to a >>>>> third dataview but add the first parameter to the >>> second >>>>> webparts url. >>>>> >>>>> /stepA.aspx Dataview has hyperlink to StepB.aspx > which >>> is >>>>> /StepB.aspx?@Title="ACME Inc." >>>>> StepB Dataview has hyperlink to Stepc.aspx which is >>>>> /StepC.aspx@Name=Jack >>>>> I want the Title parameter included in above URL. >>>>> >>>>> I am considering using cookies but would prefer to > use >>>>> URL parameters. >>>>> >>>>> Suggestions Please? >>>>> Lyndon >>>>> >>>>> >>>> >>>> >>>>. >>>> >> >> >>. >>
- Next message: Aaron: "Re: Data Views"
- Previous message: lyndon: "Re: How to append parameter to Url that has parameters?"
- In reply to: lyndon: "Re: How to append parameter to Url that has parameters?"
- Messages sorted by: [ date ] [ thread ]