views:

288

answers:

2

Hi,

I want to use multiple select drop down user control or field control on my page layout and I want to pull list items from list and show it on page layout in Sharepoint.Does anyone is having idea how to achieve this.

Thanks, PS

A: 

In SharePoint Designer, go to:

  • Insert, SharePoint Controls, DataView
  • on the DataSource Library panel, choose a list and click "Show Data"
  • Drag and Drop a few fields from the Data Source Details
  • go to the Toolbox Tab in the same panel as Data Source Details and choose: "Data View Checkbox List"
  • Configure as you like

Edit based on your reply

If I understand your reply right, how about you have a Yes/No column(field) in your list named "IsVisible" with a Custom View where only items WHERE IsVisible Equals Yes on the web part and the Administrator will just edit the list and change the value for the Visible field.

F.Aquino
A: 

THanks F.Aquino for the reply but what basically you are suggesting is to have a data view webpart.I like this approach as It is better thancreating some custom field controlbut what you hv suggested if there is any way to acheive following from it.

Actually my need is to pass value from field control or user control to some other link(which is html on the page layout and this link is visible to users) .I want to keep the field control hidden(in editpanel)so that administrater when editing that page can only see this and the link would gonna pick value from this field control.

So administrator will decide which item from the list he wants to select in the field control and this selected value would get transfered to the html link(a tag) wat I wanna show to users.( i was thinking of having some multiple select list box as there are 4 links which I need to display)

If anyone is having idea how to acheive this.

Thanks, PS

PS
actually there are different pages in our site where I need to display that link.so by having checkbox on the list itself we can't figure it out on which page which link to show.I want this thing like the page property kind of thing on everypage.so that for each page page editor can decide which links to display.
PS