Custom Web Property for CheckBox and Dropdown List SharePoint 2013 - sharepoint-2010

i need help regarding the custom web property. I have web part which custom web properties were created for given list url to the web property. In that we are inserted the image url in the list, this fetches the image to render the webpart.
My question is how we can dynamic the lists to dropdown from the current site and to select the proper list.
Add new webpart properties namely current site checkbox and list dropdown
Thanks Advance
rk

Related

How can a custom web part read the list item fields in a display/edit form?

I need to create a custom web part and programmatically attach to the display and edit forms of a list. The web part is meant to display some information (coming from another list) about the list item being displayed on the form.
I know how to add the web part to the list programmatically, but I'm having an issue trying to get the web part to read the list item being displayed on from. I know the SPForm object exposes its parent list but I cannot or don't know how to convert the form to an SPForm object. The parent of the web part is the web part manager and the parent of that is the HTML form object. But when I try convert that to an SPForm object it throws an error.
Also, even if I manage to get hold of the SPForm and its parent list, how can I get hold of the list item being displayed?
Please bear in mind that I need to avoid overwriting the default forms as it will significantly increase the development time.
Any help or idea is appreciated.
Regards

Custom Menu in SharePoint 2010

I am working with SharePoint 2010. I am looking for creating a custom menu that could be placed on Master page of my site collection. Could you please give me a start on this. I don't want to use existing menus on default master page. I would rather like to have my own master page with my custom menu links with sub menus.
A basic idea would be that I will have a XML file with menu items defined I want to give liberty to the user to make changes to XML file somehow that add/edit or remove the links. Also I want the menu to be user role based (Items could be disabled for unauthorized users).

Bind a SharePoint list to a Silverlight Dataform

I am using the SharePoint client-object model to read data from a list and I was finally able to correctly get the data but now I am having difficulty actually displaying that data. I would like to use a dataform control to both add and edit the SharePoint list but am thus far unable to get it to actually display the items in the list. If anyone knows how to connect a Dataform control to a sharepoint list I would be very thankful.
You have to bind your list to the control. Have a look at the following page: http://dotnetslackers.com/articles/silverlight/The-DataForm-Control-in-Silverlight-3-Revisited.aspx section "Data binding" explains the steps you need to make (setting the DataContext property).

Using InfoPath Form Web Part to Display Existing Form (not a New One)

InfoPath form web part can be used to fill out a published InfoPath form (a new instance). I want to use the web part to open an already filled form to do some modifications. Can this be achieved (using this web part or any other solution)?
The reason behind this requirement is that I want to have multiple web parts in my page, content editor, query string filter and InfoPath web part. I want to use these to open a form (new or existing) in a certain mode / view.
Edit
I will try to simplify:
1- I have an InfoPath form that is saved in a SharePoint library. The form have multiple views.
2- Using a URL like http://mySite/myPage.aspx?form=myForm-20110613.xsn&view=View3, I want the form myForm-20110613.xsn to be opened and switched to View3.
How can I achieve this (preferably without writing any code)?
I have done that using a custom application ASPX page. The page has an Iframe that I set its src to the viewing URL as follows
private void SetIFrameSource_View(HtmlControl frame, string libraryName, string formName)
{
string formServerPage = "http://servername/_layouts/FormServer.aspx";
string xmlLocation = string.Format("/{0}/{1}", libraryName, formName);
string source = "http://servername/SitePages/Home.aspx";
frame.Attributes["src"] = string.Format("{0}?XmlLocation={1}&Source={2}&DefaultItemOpen=1", formServerPage, xmlLocation, source);
}
What version of InfoPath are you using? With 2013, you can insert a rule on form opening with no conditions and add action "switch views" to the view you prefer.
Click Data
Form Load
New
Add Action
Switch Views (select view).
Create a page and add InfoPath form webpart and save the page. Do not configure any properties for the webpart (library name or content type). Navigate to the page including your existing InfoPath form XmlLocation. eg. http://siteurl/yourpage.aspx?XmlLocation=/sites/teamsites/TestFormLibrary/aaaaa.xml
https://devdotnotes.wordpress.com/2012/01/29/sharepoint-caculated-column-and-hyperlink-no-workflow-or-script-needed/
follow this link if you want to build this url dynamically in your view.
You can do this with web part connections. Watch the following video for details: http://channel9.msdn.com/Blogs/laurhar/InfoPath-2010-Manage-data-in-your-SharePoint-Lists-using-the-InfoPath-Form-Web-Part?format=auto

SharePoint 2010 custom display form like publishing page?

I want to display a list item in a different detail page, not dispform.aspx, not in modalbox. Page must be inherit site masterpage, layout page and must be in portal sitemap like publishing page.
Breadcrumb must be like this:
Company Intranet > Announcements > Product request formm updated!
Is there any way for do that?
Chaning the System Master to publishing master page will render all the forms with Same UI as you see in Home page.
You can change it in this Location http://yousite/_layouts/ChangeSiteMasterPage.aspx You have to do this in site where you what to see this change.
To Prevent the popup forms Go to List Settings->Advanced Settings and turn off the Dialog.
Also to change default Form of List you have multiple forms
Create a New Form (Link is for 2007 same applies for 2010 as well) in SharePoint Designer and Associate it to the List.
Use Infopath to create a Custom Form
Develop a new Webpart that will do Add Edit etc and Add it to the Default Forms.