What is a Parameter ? in SharePoint Server Design and Customization  
 |  Edit my Profile  |  Help
 
     
  
 
 
 
JanetFan95758 4/26/2007 6:31 PM PST
  Question
  In Sharepoint Designer when setting up a condition for a data view filter you
can create your own "Parameter". Can someone explain what is a parameter,
and also give samples of how it could be used? Any parameter samples
(especially those refering to date fields) would be highly appreciated.

Note: In this forum, none of the questions about parameters were answered,
and the help in sharepoint designer does not include it (very strange). Can
anyone help with this? I'll buy you lunch.
 
  Was this post helpful to you?  
 
 
  Reply | Print post   TopTop  
 
 
 
 
Chandima [ MVP SharePoint ]  4/29/2007 1:07 PM PST
   
  "Can anyone help with this? I'll buy you lunch."

Very expensive lunch bill coming your way :-)


First your question: "What is a Parameter ?"

Oficial geek speak definition of a Parameter

"A parameter is a variable which can be accepted by a subroutine. The
subroutine uses the values assigned to its parameters to alter its behavior
at runtime. Most programming languages can define subroutines that accept
zero or more parameters"

In the case of SharePoint Designer (SPD) I would imagine it will be used
when you require something to be filtered.

ex: You have a list of say dvd movies. They are categorised by genre
(Action, Horror, Comedy etc)
Now in SPD if you wanted to create a 'filtered' view of say 'Action' movies
you will pass the 'parameter' of 'Action' to the full list of movies which
will filter out all the other movies and give you only the 'Action' movies.

This could be something like > MovieList.aspx?Genre=Action

SPD help is available here:
http://office.microsoft.com/en-us/sharepointdesigner/FX100646991033.aspx

HTH
--
Chandima Kulathilake
Microsoft MVP (Microsoft Office SharePoint Server)
http://www.chandima.net/Blog/
===============================================
All posts are provided "AS IS" with no warranties, and confers no rights
===============================================
Share the love go to: http://im.live.com/Messenger/IM/Home/
===============================================

"JanetFan95758" <JanetFan95758@discussions.microsoft.com> wrote in message
news:F05E4296-E5A4-429D-AF50-355661B2EC50@microsoft.com...
> In Sharepoint Designer when setting up a condition for a data view filter
> you
> can create your own "Parameter". Can someone explain what is a parameter,
> and also give samples of how it could be used? Any parameter samples
> (especially those refering to date fields) would be highly appreciated.
>
> Note: In this forum, none of the questions about parameters were
> answered,
> and the help in sharepoint designer does not include it (very strange).
> Can
> anyone help with this? I'll buy you lunch.
 
  Was this post helpful to you?  
 
 
  Reply | Print post   TopTop  
 
 
 
 
JanetFan95758 4/29/2007 10:05 PM PST
   
  I have tried to use this for that reason with no success. For example, I set
a parameter to equal [create date] + 7, then I set my filter to be Date
Entered Greater than Param1 - but nothing happened except everything
disappeared form the data view.

The link you gave me is where I started - but there is absolutely nothing
that goes into the usage of parameters in the SP Designer Data View.

"Chandima [ MVP SharePoint ]" wrote:

> "Can anyone help with this? I'll buy you lunch."
>
> Very expensive lunch bill coming your way :-)
>
>
> First your question: "What is a Parameter ?"
>
> Oficial geek speak definition of a Parameter
>
> "A parameter is a variable which can be accepted by a subroutine. The
> subroutine uses the values assigned to its parameters to alter its behavior
> at runtime. Most programming languages can define subroutines that accept
> zero or more parameters"
>
> In the case of SharePoint Designer (SPD) I would imagine it will be used
> when you require something to be filtered.
>
> ex: You have a list of say dvd movies. They are categorised by genre
> (Action, Horror, Comedy etc)
> Now in SPD if you wanted to create a 'filtered' view of say 'Action' movies
> you will pass the 'parameter' of 'Action' to the full list of movies which
> will filter out all the other movies and give you only the 'Action' movies.
>
> This could be something like > MovieList.aspx?Genre=Action
>
> SPD help is available here:
> http://office.microsoft.com/en-us/sharepointdesigner/FX100646991033.aspx
>
> HTH
> --
> Chandima Kulathilake
> Microsoft MVP (Microsoft Office SharePoint Server)
> http://www.chandima.net/Blog/
> ===============================================
> All posts are provided "AS IS" with no warranties, and confers no rights
> ===============================================
> Share the love go to: http://im.live.com/Messenger/IM/Home/
> ===============================================
>
> "JanetFan95758" <JanetFan95758@discussions.microsoft.com> wrote in message
> news:F05E4296-E5A4-429D-AF50-355661B2EC50@microsoft.com...
> > In Sharepoint Designer when setting up a condition for a data view filter
> > you
> > can create your own "Parameter". Can someone explain what is a parameter,
> > and also give samples of how it could be used? Any parameter samples
> > (especially those refering to date fields) would be highly appreciated.
> >
> > Note: In this forum, none of the questions about parameters were
> > answered,
> > and the help in sharepoint designer does not include it (very strange).
> > Can
> > anyone help with this? I'll buy you lunch.
>
 
  Was this post helpful to you?  
 
 
  Reply | Print post   TopTop  
 
 
 
 
Brechtdb 4/10/2009 1:21 AM PST
   
  Can you use Parameters as input for a new item form???

"JanetFan95758" wrote:

> I have tried to use this for that reason with no success. For example, I set
> a parameter to equal [create date] + 7, then I set my filter to be Date
> Entered Greater than Param1 - but nothing happened except everything
> disappeared form the data view.
>
> The link you gave me is where I started - but there is absolutely nothing
> that goes into the usage of parameters in the SP Designer Data View.
>
> "Chandima [ MVP SharePoint ]" wrote:
>
> > "Can anyone help with this? I'll buy you lunch."
> >
> > Very expensive lunch bill coming your way :-)
> >
> >
> > First your question: "What is a Parameter ?"
> >
> > Oficial geek speak definition of a Parameter
> >
> > "A parameter is a variable which can be accepted by a subroutine. The
> > subroutine uses the values assigned to its parameters to alter its behavior
> > at runtime. Most programming languages can define subroutines that accept
> > zero or more parameters"
> >
> > In the case of SharePoint Designer (SPD) I would imagine it will be used
> > when you require something to be filtered.
> >
> > ex: You have a list of say dvd movies. They are categorised by genre
> > (Action, Horror, Comedy etc)
> > Now in SPD if you wanted to create a 'filtered' view of say 'Action' movies
> > you will pass the 'parameter' of 'Action' to the full list of movies which
> > will filter out all the other movies and give you only the 'Action' movies.
> >
> > This could be something like > MovieList.aspx?Genre=Action
> >
> > SPD help is available here:
> > http://office.microsoft.com/en-us/sharepointdesigner/FX100646991033.aspx
> >
> > HTH
> > --
> > Chandima Kulathilake
> > Microsoft MVP (Microsoft Office SharePoint Server)
> > http://www.chandima.net/Blog/
> > ===============================================
> > All posts are provided "AS IS" with no warranties, and confers no rights
> > ===============================================
> > Share the love go to: http://im.live.com/Messenger/IM/Home/
> > ===============================================
> >
> > "JanetFan95758" <JanetFan95758@discussions.microsoft.com> wrote in message
> > news:F05E4296-E5A4-429D-AF50-355661B2EC50@microsoft.com...
> > > In Sharepoint Designer when setting up a condition for a data view filter
> > > you
> > > can create your own "Parameter". Can someone explain what is a parameter,
> > > and also give samples of how it could be used? Any parameter samples
> > > (especially those refering to date fields) would be highly appreciated.
> > >
> > > Note: In this forum, none of the questions about parameters were
> > > answered,
> > > and the help in sharepoint designer does not include it (very strange).
> > > Can
> > > anyone help with this? I'll buy you lunch.
> >
 
  Was this post helpful to you?  
 
 
  Reply | Print post   TopTop  
 
 
 
 
Jack 6/9/2009 4:47 AM PST
   
  Hi JanetFan95758,
dont know if this will help
In SharePoint Designer i added a .aspx page with a data view that pulls
information from a custom list in SharePoint ..my custom list has a unique Id
field for example: id , title and description ..then i added/ created the
parameters (and at this point you can call it what you want) i called mine
ListID..and remember to removed the “default value”..then i filtered
according to the Parameters name..that is the first part.
In SPD... i added a hotspot(URL) to a image firstly pointing to my data view
page and on the “ Edit Hyperlink “ Dialog box i added the parameter
reverencing the list id..that i want to be displayed on my page...you URL
should look like this ../yourdataviewpage.aspx?ListID=12
where 12 is the variant number from my list in SharePoint.
What this allowed my to do was ..firstly on one image with deferent
“hotspots” i can change my “webpart” to display different information
depending on what part of the image the user click on



"JanetFan95758" wrote:

> In Sharepoint Designer when setting up a condition for a data view filter you
> can create your own "Parameter". Can someone explain what is a parameter,
> and also give samples of how it could be used? Any parameter samples
> (especially those refering to date fields) would be highly appreciated.
>
> Note: In this forum, none of the questions about parameters were answered,
> and the help in sharepoint designer does not include it (very strange). Can
> anyone help with this? I'll buy you lunch.
 
  Was this post helpful to you?  
 
 
  Reply | Print post   TopTop  
 
 
  Return to Microsoft Communities  Notify me of replies