 |
 |
Apologies for the shouting but this is important.
When answering a question please:
- Read the question carefully
- Understand that English isn't everyone's first language so be lenient of bad spelling and grammar
- If a question is poorly phrased then either ask for clarification, ignore it, or mark it down. Insults are not welcome
- If the question is inappropriate then click the 'vote to remove message' button
Insults, slap-downs and sarcasm aren't welcome. Let's work to help developers, not make them feel stupid.
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|
 |
For those new to message boards please try to follow a few simple rules when posting your question.- Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
- Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
- Keep the subject line brief, but descriptive. eg "File Serialization problem"
- Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
- Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
- Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
- If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode "<" (and other HTML) characters when pasting" checkbox before pasting anything inside the PRE block, and make sure "Use HTML in this post" check box is checked.
- Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
- Please do not post links to your question into an unrelated forum such as the lounge. It will be deleted. Likewise, do not post the same question in more than one forum.
- Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
- If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
- No advertising or soliciting.
- We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|
 |
Hi all.
how do I use handle bars templates in a SharePoint page.
I have tried a adding my template scripts but SharePoint strips out the JavaScript.
|
|
|
|
 |
I m looking to add a Field of type=`Lookup` using the SharePoint Client Object Model.
modified 13-Sep-16 4:14am.
|
|
|
|
 |
using (SPSite site = new SPSite("http://appes-pc/my/personal/dotnet")) {
using (SPWeb web = site.OpenWeb()) {
SPList list = web.Lists["My Contacts"]; int i = 1;
foreach (SPListItem item in list.Items)
{
Console.WriteLine("Item: " + (i++).ToString());
Console.WriteLine(item.Name);
Console.WriteLine(item.Title);
Console.WriteLine(item.GetFormattedValue("First Name"));
Console.WriteLine(item.GetFormattedValue("Last Name"));
Console.WriteLine(string.Empty);
}
}
}
Console.ReadKey(false);
|
|
|
|
 |
See comments in your repost of this in QA.
|
|
|
|
 |
Dears,
in the current project, the client request advance search which enable the user to type search keyword and specify date range and choose the the entity type to search in (entity type like news , events , image gallery, document library, etc .........nearly, all the modules of the project)
so, i'm trying to implement this by the SharePoint out of the box features
i know that advanced search web part had been removed starting form SharePoint 2013
kindly advice
|
|
|
|
 |
Hi there.
Have two SP lists and ddl-s filled with items from this lists. Need to build dependant ddl-s (smth like country/city) using CAML query. Any ideas?
|
|
|
|
|
|
 |
 Solved! Smth like this:
<asp:DropDownList ID="Fclty_ddl" runat="server" AutoPostBack="True" OnSelectedIndexChanged="Fclty_ddl_SelectedIndexChanged">
</asp:DropDownList>
<asp:DropDownList ID="Group_ddl" runat="server" AutoPostBack="True" OnSelectedIndexChanged="Group_ddl_SelectedIndexChanged">
</asp:DropDownList>
protected void Page_Load(object sender, EventArgs e)
{
web = SPContext.Current.Web;
fctLS = web.Lists["List1"]; groupLS = web.Lists["List2"];
if (!IsPostBack)
{
SPListItemCollection items1 = fctLS.Items;
DataTable dt1 = items1.GetDataTable();
Fclty_ddl.DataSource = dt1;
Fclty_ddl.DataValueField = "ID";
Fclty_ddl.DataTextField = "Fclty";
Fclty_ddl.DataBind();
SPListItemCollection items2 = groupLS.Items;
DataTable dt2 = items2.GetDataTable();
Group_ddl.DataSource = dt2;
Group_ddl.DataValueField = "ID";
Group_ddl.DataTextField = "Group";
Group_ddl.Enabled = false;
Group_ddl.DataBind();
}
}
protected void Fclty_ddl_SelectedIndexChanged(object sender, EventArgs e)
{
SPQuery queryq = new SPQuery();
queryq.Query = string.Format("<Where>" +
"<Eq>" +
"<FieldRef Name='Fclty' LookupId='True'/>" +
"<Value Type='Lookup'>{0}</Value>" +
"</Eq>" +
"</Where>", Fclty_ddl.SelectedValue);
SPListItemCollection items = groupLS.GetItems(queryq);
DataTable dt = items.GetDataTable();
Group_ddl.DataSource = dt;
Group_ddl.DataTextField = "Group";
Group_ddl.DataValueField = "ID";
Group_ddl.DataBind();
}
|
|
|
|
 |
Hello,
I am new to this site.
I am the SharePoint Online Administrator. In our organisation we need to perform the audit.
we would like to know the user names that are having full control or are in owners group in all the OneDrive for business site collections in office 365 SharePoint Online.
I was trying to create the script but at some point it is throwing an error. the script is mentioned below.
Add-PSSnapin microsoft.sharepoint.powershell -ErrorAction SilentlyContinue
Import-Module ‘C:\Program Files\SharePoint Online Management Shell\Microsoft.Online.SharePoint.PowerShell’ -DisableNameChecking
$Fulldomain="makaveli.onmicrosoft.com"
#Step2: Connect to SharePoint Online and MsolService
$credential = get-credential
Connect-SPOService -Url “https://makaveli-admin.sharepoint.com/” -Credential $credential
Connect-MsolService -Credential $credential
#Step3: Set OneDrive Storage Quota for all Office 365 Users
$users=Get-MsolUser
$users | Foreach-Object{
$user=$_
$username=($user.userprincipalname –Split “@”)[0]
$Dname=($Fulldomain -Split "\.")
If($Dname[2] -ne $null)
{
$Firstname=$Dname[0]
$Secondname=$Dname[1]
$thirdname=$Dname[2]
$sitename= "https://"+$Firstname+"-my.sharepoint.com/personal/"+$username+"_"+$Firstname+"_"+$Secondname+"_"+$thirdname
}
Else
{
$Firstname=$Dname[0]
$Secondname=$Dname[1]
$sitename= "https://"+$Firstname+"-my.sharepoint.com/personal/"+$username+"_"+$Firstname+"_"+$Secondname
}
$Groups = Get-SPOSiteGroup -Site $sitename
Foreach($Group in $Groups){
Foreach($Role in $Group.Roles){
If ($Role.Contains(“Full Control”))
{
Write-Host $Group.Title
Write-Host $Group.Users
$users = $Group.Users -join ‘ ‘
$title = $Group.Title
$props = @{Title = $title
Users = $users
Website = $sitename
}
$temp = New-Object psobject -Property $props
$temp | export-csv –append –path C:\SiteOwnerandSites.csv
}
}}}
==================================================
by running the above script I am getting the following error message:
Get-SPOSiteGroup : Cannot get site https://makaveli-my.sharepoint.com/personal/Mohammed_makaveli_onmicrosoft_com.
At line:32 char:11
+ $Groups = Get-SPOSiteGroup -Site $sitename
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-SPOSiteGroup], ServerException
+ FullyQualifiedErrorId : Microsoft.SharePoint.Client.ServerException,Microsoft.Online.SharePoint.PowerShell.GetSPOSiteGroup
I am able to retrieve the owners details in csv files for SharePoint Online team sites using the below command:
Add-PSSnapin microsoft.sharepoint.powershell -ErrorAction SilentlyContinue
Import-Module ‘C:\Program Files\SharePoint Online Management Shell\Microsoft.Online.SharePoint.PowerShell’ -DisableNameChecking
Connect-SPOService
$AllSites = Get-SPOSite
Foreach($site in $AllSites){
Write-Host $site.Url
$Groups = Get-SPOSiteGroup -Site $site.Url
Foreach($Group in $Groups){
Foreach($Role in $Group.Roles){
If ($Role.Contains(“Full Control”))
{
Write-Host $Group.Title
Write-Host $Group.Users
$users = $Group.Users -join ‘ ‘
$title = $Group.Title
$props = @{Title = $title
Users = $users
Website = $site.Url}
$temp = New-Object psobject -Property $props
$temp | export-csv –append –path C:\SiteOwnerandSites.csv
}
}}}
using Get-spoSiteGroup -site "teamsitename" i am able to retrieve the owners information but if I use "Get-SPOSiteGroup -site "MySite URL of user" its throwing error the same error.
Do let me know if is there any custom cmdlets needed.
Thanks and Regards,
Mohammed Jasim
|
|
|
|
 |
In SharePoint 2016, the compile time for customized XSLT files used for Content Query, Summary Links, and Table of Contents Web Parts is improved. could you pls share if you have more details on this?
Best Regards,
Senthil Gopal
|
|
|
|
 |
Can a SharePoint WFE be added to a farm to host unique web applications that are not part of the existing farm?
We have a test farm which currently hosts our flagship product and other supporting web applications for testing. Can a 2nd WFE be added to the farm to host a distinct/unique separate version of one or more of those apps?
Our goal is to create an area where we can test upgraded versions of the integrated analytics product and support controls (eg- latest version of infragistics). The reason for the 2nd WFE is to have a different GAC for these products and our own to keep things segregated.
Any thoughts / comments
|
|
|
|
 |
We are migrating user's mailbox to cloud and we have script for that. We want to create a page on sharepoint and delegate access to the users that they can accept the terms and when they submit the request workflow trigger the script to move their mailboxes on cloud.
Is there any way through which we can trigger the powershell script through workflow.
|
|
|
|
 |
We have an OLAP project which uses Sharepoint 2013 Excel Services to show excel files that contains external data from SQL Server Analysis Services (SSAS) cube. Our Authentication method to login users is FBA (Forms Based Authentication)
Our Goal is to show only subset of data from SSAS cube for each user based on their role which has already been defined in SSAS side.
FBA authenticates users against AD and all authorized user are already member of respective role in SSAS based on their clearance level. We need Excel Services passes EffectiveUserName to SSAS and for that we enabled the EffectiveUserName in global settings of Excel Services on SharePoint central admin.
Than in Excel, we have enabled the Windows Authentication in the Excel Service Authentication Settings of Connection Properties as we read on some blog posts. But after accessing it via the SharePoint, the following error occurred.
“The data connection uses Windows Authentication and user credentials could not be delegated.” As I already stated, I don't want to delegate user credentials to SSAS. It's already been configure for Excel Services to use single account to connect to Analysis Services. I only want to pass EffectiveUserName.
Using windows authentication is not an option because users access the site from extranet and internet
|
|
|
|
 |
I have the following Powershell function:
function Add-WebPartToPage {
[CmdletBinding()]
Param(
[Parameter(Mandatory=$true, Position=0, ValueFromPipeline=$true)]
[System.Object]$web,
[Parameter(Mandatory=$true, Position=1)]
[string]$pageTitle,
[Parameter(Mandatory=$true, Position=2)]
[Microsoft.SharePoint.SPList]$list,
[Parameter(Mandatory=$false, Position=3)]
[System.Object]$webpart,
[Parameter(Mandatory=$false, Position=4)]
[string]$webPartTitle,
[Parameter(Mandatory=$false, Position=5)]
[string]$panelTitle,
[Parameter(Mandatory=$false, Position=6)]
[int]$CSPUElevel,
[Parameter(Mandatory=$false, Position=7)]
[int]$panelType
)
Process
{
#if webpart specified then add it to the page
if($webpart)
{
$pageName = $list.Title + "/$pageTitle.aspx"
$pageName = $pageName -replace " ",""
$page = $web.GetFile($pageName)
$page.CheckOut()
$mgr = $web.GetLimitedWebPartManager($pageName, [System.Web.UI.WebControls.WebParts.PersonalizationScope]::Shared)
if($webPartTitle)
{
$webpart.Title = $webPartTitle
}
$webpart.ChromeType = "None"
#++ Extended Settings
if($webpart.GetType().Name -eq "DynamicWebPart")
{
#
$pinProperties = $webpart.GetType().GetProperties()
foreach ($prop in $pinProperties)
{
if(($panelTitle) -and ($prop.Name -eq "PanelTitle"))
{
$webpart.PanelTitle = $panelTitle
}
if(($CSPUElevel) -and ($prop.Name -eq "CSPUElevel"))
{
$webpart.CSPUElevel = $CSPUElevel
}
if(($panelType) -and ($prop.Name -eq "PanelType"))
{
$webpart.PanelType = $panelType
}
}
}
#-- End of Extended Settings
$mgr.AddWebPart($webpart, "FullPage", 0)
Write-Host -f Green "Webpart $webpart.WebBrowsableObject added to the page"
$page.CheckIn("Checked in Automatically")
#$page.Publish("Published Automatically")
}
}
}
Everything works fine until it gets to the extended properties of the webpart. Within that logic, the panel title will set correctly. This is a direct string assignment to the custom property. However, the CSPUElevel and PanelType are dropdowns and the assignment is never made. What is more interesting is that the CSPUElevel and PanelType don't seem to be exposed as custom properties in the same way as the Panel Title. In other words, the test for $prop.Name is never equal to "CSPUElevel" or "PanelType".
Any advice/direction is greatly appreciated.
|
|
|
|
|
 |
I am new to SharePoint and need to allow a SharePoint portal to load my asp .net application into the portal from the application server where I have hosted the asp .net application. I think I can use a SharePoint WebPart page viewer to do this by assigning the application URL to the page viewer. I don't know if this will allow the SharePoint user's to use the fully functional asp .net application or will it just show a specific web page and not allow the user to use the full functionally of the website. Can someone help?
|
|
|
|
 |
The page viewer web part, should for the most part, allow your asp.net application to function fine within it, as would an iframe.
|
|
|
|
 |
Before showing info-path form ,need to open model popup (i.e) confirmation Box , if user clicks "ok" then open infopath form in Edit mode, "cancel" then open infopath form in Read-only mode.
FormCode.cs file public void FormEvents_Loading(object sender, LoadingEventArgs e) { StringBuilder sb = new StringBuilder(); sb.Append(@"<script type='text/javascript'>"); sb.Append(@"var r = confirm('do you want to Checked-Out?');"); sb.Append(@"if((r == true))"); sb.Append(@"{"); string s = Success(); sb.Append(s); sb.Append(@"}"); sb.Append(@"else"); sb.Append(@"{"); string s1 = Failure(); sb.Append(s1); sb.Append(@"}"); sb.Append(@"</script>"); } public string Success() { string result = string.Empty; XPathNavigator root, infopathNode; root = this.MainDataSource.CreateNavigator(); infopathNode = null; infopathNode = root.SelectSingleNode(path, this.NamespaceManager); DeleteNil(infopathNode); infopathNode.SetValue("0");
result = "alert('sucess method triggered');"; return result; } public string Failure() { string s = string.Empty; XPathNavigator root, infopathNode; root = this.MainDataSource.CreateNavigator(); infopathNode = null; infopathNode = root.SelectSingleNode(path, this.NamespaceManager); DeleteNil(infopathNode); infopathNode.SetValue("0"); s = "alert('Failure method triggered');"; return s; }
-- modified 25-Apr-16 7:45am.
|
|
|
|
 |
How can I change what is written on the Report viewer web part when it is waiting for the parameters to be set like :
Microsoft SQL Server Reporting Services
Specify Parameter Values
Report parameter values must be specified before the report can be displayed. Choose parameter values in the parameters area and click the Apply button.
Also, how to change the text of the apply button in the parameters area:
Apply
|
|
|
|
|
 |
Im using rich text editor while adding the event in calender page.In demo server rich text editor working fine in Internet explorer.but in live server its not working in any of the browser its showing message like "Click for help about adding basic HTML formatting.".please help me.
|
|
|
|
 |
Hi,
I just want like this , there are to buttons 1 is upload from file dialog and another scan from scanner ,if they click upload it will fetch file from file dialog (working now) & if they click scan it has to open scan dialog , then it has to scan & document should come, then if i click submit it will save in corresponding custom list as attachment.
i need programmatically
|
|
|
|
 |
That's not how this site works. We're happy to help with specific questions about code you have written, but nobody is going to write the code for you.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
 |
Well, friend it R&D task and its doable.
Research on Kofax tool, This will allow you do this stuff.
I found reference on site
- "Kofax Express is an on ramp for Microsoft Office SharePoint that makes it easy for anyone to scan, organize and store documents to a SharePoint document repository for archiving and records retention and disposition."
My one of friend worked on such project with kofax/sharepoint.
Kofax site[Read More]
Hope this helps.
|
|
|
|
 |
Dears
i have pages list which contains pages from custom content type(NewsCT is its name) in subsite name News
NewsCT inherit article page
NewsCT contain a field "ArchivingDate"
i need to move this page with all its related items (like images ,...etc) to another subsite "Archived News" on the date specified in "ArchivingDate"
i need this solution as some kind of news archiving as the client request to let the users able to view the old(archived) news
kindly advice
|
|
|
|
 |
I have a custom input form some of the fields are coming from a list in SharePoint 2010. I have a check box control which is populated by a list item. there are around 10 rows. Now i want when a user select a check box list item, a text box should appear beside it. for example I have a list called subjects, which have column name title and the entries are physics, maths, chem etc... Now when a user select physics from the check box list a text-box should appear beside it and user should be able to write on text box.
|
|
|
|
 |
Sounds liek you will want to have an event on the checkbo, where it will show or hide the textbox based on the checkbox being selected.
What have you tried so far?
|
|
|
|
 |
protected void chkboxIncentive_SelectedIndexChanged(object sender, EventArgs e)
{
foreach (ListItem checkbox in chkboxIncentive.Items)
{
//If this particular item is checked
if (checkbox.selected)
{
checkbox.Text = String.Format("{0}<input id=\"TextBox{0}\" name=\"TextBox{0}\" / >", checkbox.Value);
//TextBox tb = new TextBox { ID = checkbox.Value };
//Input.Controls.Add(tb);
}
}
}
its throwing error at ListItem saying ambiguity and another error at selected and value
modified 18-Jan-16 8:28am.
|
|
|
|
 |
checkbox.Text = String.Format("{0}<input id=\"TextBox{0}\" name=\"TextBox{0}\" / >", checkbox.Value);
This is going to cause you problems. You are on the right path with adding the textbox to the controls of the container tho, with:
Although I dont know what "Input" is, But I assume its a container for your controls.
What are the exact errors you are getting?
You could also create the text boxes when you create the checkboxes and then hide them by default, only showing when you need them?
|
|
|
|
 |
I am getting error at foreach loop when i am using Listitem . the error says there is a ambiguity between system.data and microsoft.sharepoint
|
|
|
|
 |
OK, Now we are getting somewhere.
It means, its cannot decide which 'ListItem' to use I would assume. Add the namespace infront of the class, Something like System.Data.ListItem - tho im not sure this is correct and I would use System.Web.UI.WebControls.ListItem but it all depends on what 'ListItem' class you are trying to use.
-DB
|
|
|
|
 |
I used Microsoft.SharePoint.Client.ListItem
still I am getting error.
|
|
|
|
 |
Hi guys, this is my first post on this forum so I start with a "Hi everybody!"
I'm a novice Sharepoint user and I'm trying to develope an input form for Sharepoint 2013/ Office 365. I'm not up to speed on all Sharepoint-lingo yet, so please be patient with me.
I have a general knowledge of web development and SQL skills and I'm trying to figure out how I best can implement an "app" in Sharepoint for a scheduling/forecast project I'm working with. In essences I need a input form which stores input in an Azure-based MS SQL database. This will provide the data for reports users can request and it all should be within a Sharepoint environment so that I can use the built in user-access management.
Usually I would use a programming language like PHP to make a stand alone web-app with accompanying HTML, CSS, jQuery and so on, but this must be embedded into an existing Sharepoint-solution. How would you solve this? Which technologies would you use to solve this efficiently? Are there built-in tools in Sharepoint I could use?
I hope to get some answers to point me in the right direction. My developemnt experience is mostly in SQL and some web-programming long time ago, so I know I have a bumpy road ahead.
Thanks!
|
|
|
|
 |
We have a SP feature that add site columns to site and same columns to site content type. Need to upgrade feature to add new site columns in site and in content types as well.
Followed exact steps mentioned in blog to update XML for feature upgrade -
http://sharepoint.stackexchange.com/questions/42744/how-to-add-a-field-to-a-contenttype-with-feature-upgrade-for-new-and-existing-s
But new site columns are not coming in site and adding in content type.
Need your help regarding
1. Actual deployment steps to follow to upgrade feature so that new site columns start showing up.
2. There are libraries which are created using existing content type, we want new columns in content types to push down in existing libraries. ( used PUSHDOWN = TRUE in feature XML)
Thanks in advance
|
|
|
|
|
 |
The error message on the second image seems quite clear.
|
|
|
|
 |
As i said on your question. Without the configuration file shown, we cannot even guess what is wrong, other than you have a malformed config.xml, the error is quite clear.
|
|
|
|
 |
Hi - I'm a Sharepoint novice, but I've inherited an undocumented site & need to change something & I'm stuck.
The users click a cell in a Sharepoint web part, and an email gets sent. Some of the text in this email needs to be changed. This should be easy, but I'm going round in circles.
F12 tells me that the href is :-
javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$m$g_9aea7398_eed8_4d9d_9ccf_6eadc55097f5$grdProfiles$ctl02$approvedColumn", "", true, "", "", false, true))
OK, this is obviously generated & I haven't searched for this. I have found the web part in the Webpart Gallery, but when I click the Edit link, all I can change is the name, title, description etc.
I assume that there is some code somewhere merging the data from the selected record with an email template, but how do I find that code & hence the template?
I have searched for the string I want to change in all files in Sharepoint Designer without finding it.
The only unfollowed avenue I have is that when I download the XML, there is an importErrorMessage - Cannot import this Web Part, even though it displays fine for the users. Any clues on how to follow it?
I'm beginning to lose the will to live with Sharepoint!
Any suggested courses of action will be welcomed (unfortunately, ditching Sharepoint won't be one I'll be able to follow).
Regards, Stewart
[EDIT - by further Googling I discovered the .wps extension, logged on to the server & searched for these. The correct candidate was pretty easy to spot. Copied it, changed the extension to .cab, extracted the files, ran ILSpy against the .dll and discovered that it simply updates a field on a record. Current suspicion is that this triggers a workflow - but I haven't found one that sends an email with the correct text yet - I've found the one that gets sent on creation, but not on update. More digging]
modified 23-Oct-15 4:30am.
|
|
|
|
 |
What is the text of the email? Is it an alert email (which is sharepoint generated)?
|
|
|
|
 |
Hi
The text may well be Sharepoint generated, or come form a workflow (that I've been unable to find). Here's the message, with details removed to protect the guilty
An account has been created for you in our new Portal.
We will notify you via email, that will contain a username and password, once your account has been activated and is ready for use.
If you don�t receive this confirmation within 48 hours then please email [email protected] or call 0845 999 9999.
If you did not request a new account to be set up, please notify us immediately at [email protected] or call 0845 999 9999.
I was about to post the text of the message that I had found in a workflow to show that it wasn't this one, but when I did, it turns out it is the right one, just that the Configure Action dialogue isn't showing me the full text (I had to faff with the emulation using F12 to make it show me anything).
See - just by asking a question, you have shown me the way. Ain't CodeProject wonderful.
Many thanks & best regards, Stewart
|
|
|
|
|
 |
Message Automatically Removed
|
|
|
|
 |
Message Automatically Removed
|
|
|
|
 |
Hi, I have a page where i have added a list view. Now As per the selection of list item from list view i have to show values in my visual web part, So my list view will be the provider and visual web part will be consumer. So please show me how to connect both of them.
Thanks in Advance.
|
|
|
|
 |
Connected Web Parts can be a very tricky thing to get right and should be seriously considered before being used.
The code project article "Connecting Custom Web Parts in SharePoint" by Nioosha Kashani at Connecting Custom Web Parts in SharePoint[^] is pretty good place to start, likewise with the MSDN documentation at https://msdn.microsoft.com/en-us/library/office/ms469765(v=office.14).aspx[^]
An alternative option could be to use jQuery, where you assign a click event which then updates a html web part which the desired data, going via REST or SPSServives.js for data retrieval. It may involve a learning curve of jQuery, SPServices, REST, JSON but they are great skills to have when it comes to SharePoint anyway.
-DB
|
|
|
|
 |
Im trying to create a URL to a page on my site which when used will enter the page and filter a column in a list that’s displayed.
I started by taking the basic URL (below) and then filtering the list and copying the new URL
(STANDARD URL)https://eurodev.sp.ema.emersonprocess.com/sites/users/mcloran/SitePages/Fisher.aspx(Filtered
URL)https://eurodev.sp.ema.emersonprocess.com/sites/users/mcloran/SitePages/Fisher.aspx#InplviewHash418c97ba-d2e7-48a0-ae05-d89b7252df76=WebPartID%3D%7B957BA999--F89C--4921--9761--36813C20F083%7D-FilterField1%3DBusiness%255Fx0020%255FUnit-FilterValue1%3DFisher
This works if I copy and paste the new URL into my browser, however I have another issue. The reason I need the URL is because I have another list which has a workflow. The workflow starts when a new item is created and it takes a value from the new item and uses this to construct a URL.
It uses a build string
{Common:WebUrl}/SitePages/{ItemProperty:Business_x0020_Unit}.aspx Saves this as a variable (linkvar)
And then sets a field in the item to this created hyperlink i.e. set field link to linkvar
Basically when a new item is created in the list, the workflow looks at what the business unit field of the item is and then creates a URL to the page of that business unit on my site.
This works fine. But what I want to do is add the filtering part to this URL. I realised that it would be easier to have one page for all business units, and just have the lists/webparts on this page filtered/set up for different business units dependent upon the link used to access that page. I know that views could be used for this, however, I would have to create the views myself, and overtime more and more business units will come on-board and I won’t be around to set them up.
The new link would look something like
{Common:WebUrl}/SitePages/{ItemProperty:Business_x0020_Unit}.aspx#InplviewHash418c97ba-d2e7-48a0-ae05-d89b7252df76=WebPartID%3D%7B957BA999--F89C--4921--9761--36813C20F083%7D-FilterField1%3DBusiness%255Fx0020%255FUnit-FilterValue1%3DFisher
The bold ‘fisher’ is the value to filter the list to. I will probably remove the red lookup and just have a link to a generic all business units page. However, when I set my workflow up with the added text the set field part fails. I think it because it doesn’t recognises the added text as a hyperlink and the field it’s trying to set into is a hyperlink.
I think this is just a URL syntax issue could anyone help??? Overtime I will want to add additional filtering to this URL at the moment it’s just one filter for one list web part h
Thanks Matt
|
|
|
|
 |
I need to create a list from a data source. Can someone help me?
|
|
|
|