Associated Items Field in SharePoint 2013
Hi ,
I have two custom lists :
- Products List which contains the list of products ( child list)
- Products Category List which contains the list of categories ( parent list)
- A lookup column in the Products List which point to the Products Category List.
My requirement is to show in the parent list 'Category List' the list of products of the child list associated for each category with the ability of editing and deleting the product directly in the 'category List'.
How to accomplish this requirement.
Any help will be appreciated.
Thanks.
update the category list edit form and add connected webpart displays the products
check the below video
http://www.youtube.com/watch?v=cYU8bQ6Sw8I
Hope that helps|Amr Fouad|MCTS,MCPD sharePoint 2010
Similar Messages
-
Update Managed Metadata field in SharePoint 2013 Designer Workflow for O365
Hi Guys,
I need to update the managed metadata field in SharePoint Custom List using Workflow but its not working. I have also tried to use the HTTP WebService POST Operation but no luck.
Am doing this for a SharePoint Online (O365) Site.
Has anyone worked on something similar and was able to get it running ?
I saw a post to create a custom Workflow Activity but I don't have a choice to go with the custom code option.
http://patrickboom.wordpress.com/2013/07/23/workflow-activity-set-managed-metadata-column/
I was able to achieve this by creating a SP 2010 based Workflow for O365. Which means that it worked well with SP 2010.
Is there a different way to do it in 2013 ? I tried almost all options apart from creating custom Activity but nothing worked out.
Any help would be great.
Thanks,
Nutan
Nutan SharmaHi Nutan,
According to your description, my understanding is that you want to update Managed Metadata field with SharePoint 2013 Designer for SharePoint Online.
As far as I know, there is not an OOB action to achieve your requirement with SharePoint 2013 Designer for SharePoint 2013. Customizing a workflow action is a better option to achieve it. Why didn’t you customize a workflow action as Patrick’s blog?
In addition, please take a look at the article about Nintex workflow, check whether it is useful for you:
http://habaneroconsulting.com/insights/setting-managed-metadata-fields-in-a-nintex-workflow#.UykBSf6KDHo
As this issue is about SharePoint Online, I suggest you create a new thread on SharePoint Online forum:
http://social.technet.microsoft.com/Forums/en-US/home?forum=onlineservicessharepoint . More experts will assist you.
I hope this helps.
Thanks,
Wendy
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Wendy Li
TechNet Community Support -
Add datetime property to "MetaInfo" field using SharePoint 2013 CSOM
When uploading a file along with metadata using SharePoint FP RPC (using the "method= put document") it allows me to properly add datetime properties. My metainfo looks like this:
"MetaInfo":"...MyCustomDate:TW|05 Jan 2015 12:58:31 -0000\r\n..."
Then later on, when I try to update "MyCustomDate" property from the "MetaInfo" field using CSOM, it fails while updating it. (In this case I am using CSOM because I am updating some more fields and I want to avoid extra round-trips)
After that update my metainfo looks like this:
"MetaInfo":"...MyCustomDate:FX|0x01d028e7|0x4d1c4880\r\n..."
Does anyone know why?, is there any workaround?
ThanksHi,
If you want to add datetime property to "MetaInfo" field using SharePoint 2013 CSOM, the following code snippet for your reference:
using (ClientContext context = new ClientContext("http://yourserver/"))
context.Credentials = new NetworkCredential("user", "password", "domain");
List list = context.Web.Lists.GetByTitle("Documents");
ListItem oListItem = list.GetItemById(1);
oListItem["MetaInfo"] = "MyCustomDate:TW|08 Jan 2015 12:58:31 -0000";
oListItem.Update();
context.ExecuteQuery();
Best Regards
Dennis Guo
TechNet Community Support -
[Forum FAQ] How to remove div characters from multiline textbox field in SharePoint 2013
Scenario:
Need to avoid the div tags and get data alone from multiline textbox field using JavaScript Client Object Model in SharePoint 2013.
Solution:
We can use a regular expression to achieve it.
The steps in detail as follows:
1. Insert a Script Editor Web Part into the page.
2. This is the complete code, add it into the Script Editor Web Part and save.
<script type="text/javascript">
ExecuteOrDelayUntilScriptLoaded(retrieveListItems, "sp.js");
function retrieveListItems() {
// Create an instance of the current context to return context information
var clientContext = new SP.ClientContext.get_current();
//Returns the list with the specified title from the collection
var oList = clientContext.get_web().get_lists().getByTitle('CustomListName');
//use CAML to query the top 10 items
var camlQuery = new SP.CamlQuery();
//Sets value that specifies the XML schema that defines the list view
camlQuery.set_viewXml('<View><RowLimit>10</RowLimit></View>');
//Returns a collection of items from the list based on the specified query
this.collListItem = oList.getItems(camlQuery);
clientContext.load(this.collListItem, 'Include(Title,MultipleText)');
clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));
function onQuerySucceeded() {
//Returns an enumerator to iterate through the collection
var listItemEnumerator = this.collListItem.getEnumerator();
//Remove div tag use a regular expression
var reg1 = new RegExp("<div class=\"ExternalClass[0-9A-F]+\">[^<]*", "");
var reg2 = new RegExp("</div>$", "");
//Advances the enumerator to the next element of the collection
while (listItemEnumerator.moveNext()) {
//Gets the current element in the collection
var oListItem = listItemEnumerator.get_current();
alert(oListItem.get_item('MultipleText').replace(reg1, "").replace(reg2, ""));
function onQueryFailed(sender, args) {
alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
</script>
Result:<o:p></o:p>
References:
http://www.w3schools.com/jsref/jsref_obj_regexp.asp
Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.Nice article :)
If this helped you resolve your issue, please mark it Answered -
hi friends
i have to people picker fields
pp1 and pp2
pp1 represents username
pp2 represents email id
here i problem is if user enters name in pp1, pp2 has to update with email id of corresponding user in pp1 dynamically.
using java script is there any solution for this.
please help meHope below will help
<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
<script type="text/ecmascript" language="ecmascript">
var user;
var visitorsGroup;
function runCode() {
var clientContext = new SP.ClientContext();
var groupCollection = clientContext.get_web().get_siteGroups();
// Get the visitors group, assuming its ID is 4.
visitorsGroup = groupCollection.getById(4);
user = clientContext.get_web().get_currentUser();
var userCollection = visitorsGroup.get_users();
userCollection.addUser(user);
clientContext.load(user);
clientContext.load(visitorsGroup);
clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));
function onQuerySucceeded() {
alert(user.get_title() + " added to group " + visitorsGroup.get_title());
function onQueryFailed(sender, args) {
alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
</script>
<input id="Button1" type="button" value="Run Code" onclick="runCode()" />
</asp:Content>http://msdn.microsoft.com/en-us/library/office/jj246835%28v=office.15%29.aspxhttp://msdn.microsoft.com/en-us/library/office/jj920104%28v=office.15%29.aspxhttp://stackoverflow.com/questions/20981226/sharepoint-2013-get-current-user-javascripthttp://sharepoint.stackexchange.com/questions/31457/get-user-via-javascript-client-object-model -
Sharing item/folder in SharePoint 2013 on-prem
I'm trying to share an item/folder in a library (in a subsite that has unique permissions) to a user that doesn't have access to the site/library. Is this even possible?
I've tried to share the item/folder directly with read permissions, but that doesn't work (access denied). And when I share the library (read permissions) and then share the item/folder it works. But the user cannot open the item (ex. word file), it says:
"Sorry, we couldn't open: http://urltothedocument.docx".Hi,
Yes, you can share a document or folder in a document library in SharePoint 2013.
For your issue, please take steps as below:
1.Go to your site collection -> Site Settings -> Manage Site Collection Features.
2. Make sure "Limited-access user permission lockdown mode" is deactivated.
Best Regards,
Eric
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Issue in mapping custom user profile property with AD field in SharePoint 2013
Hello,
I am trying to map a custom user profile property i created "ADSecurityGroups", type - String, Multivalue with the AD propoerty named "memberOf" via powershell.
UserProfile Service is up and running, and so is the Synchronization Service. User executing the powershell has full control on the User Profile Service and is the farm administrator.
Following is the code snippet i grabbed from the internet which i am trying to execute.
Add-PSSnapin Microsoft.SharePoint.Powershell -ErrorAction "SilentlyContinue"
$url = "http://<servername:port>/" #URL of any site collection that is associated to the user profile service application.
$spsProperty = "ADSecurityGroups" #Internal name of the SharePoint user profile property
$fimProperty = "memberOf" #Name of the attribute in FIM/LDAP source
$connectionName = "UserProfileSyncConnection" #Name of the SharePoint synchronization connection
$site = Get-SPSite $url
if ($site)
Write-Host "Successfully obtained site reference!"
else
Write-Host "Failed to obtain site reference"
$serviceContext = Get-SPServiceContext($site)
if ($serviceContext)
Write-Host "Successfully obtained service context!"
else
Write-Host "Failed to obtain service context"
$upManager = new-object Microsoft.Office.Server.UserProfiles.UserProfileConfigManager($serviceContext)
if ($upManager)
Write-Host "Successfully obtained user profile manager!"
else
Write-Host "Failed to obtain user profile manager"
$synchConnection = $upManager.ConnectionManager[$connectionName]
if ($synchConnection)
Write-Host "Successfully obtained synchronization connection!"
else
Write-Host "Failed to obtain user synchronization connection!"
Write-Host "Adding the attribute mapping..."
$synchConnection.PropertyMapping.AddNewMapping([Microsoft.Office.Server.UserProfiles.ProfileType]::User, $spsProperty, $fimProperty)
Write-Host "Done!"
The script is failing with the following error -
new-object : Exception calling ".ctor" with "1" argument(s): "UserProfileApplicationNotAvailableException_Logging ::
UserProfileApplicationProxy.ApplicationProperties ProfilePropertyCache does not have 2f9bece3-f39a-498d-874f-145b1470e49c"
At E:\ADSync.ps1:29 char:14
+ $upManager = new-object Microsoft.Office.Server.UserProfiles.UserProfileConfigMa ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [New-Object], MethodInvocationException
+ FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand
Please let me know if i am missing anything.
Also advise if this is the correct way to map user profile attribute in SP 2013 ?
Thanks -
Girishok no worry,
try to run the below as it is, i m just copying code from your post.
Add-PSSnapin Microsoft.Sharepoint.Powershell
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Office.Server")
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Office.Server.UserProfiles")
#Function to get servicecontextfunction Get-SPServiceContext([Microsoft.SharePoint.Administration.SPServiceApplication]
$profileApp)
$profileApp = @(Get-SPServiceApplication | ?
{$_.TypeName -eq "MR_DEV_UserProfileServiceApplication"})[0]
return [Microsoft.SharePoint.SPServiceContext]::GetContext
($profileApp.ServiceApplicationProxyGroup,
[Microsoft.SharePoint.SPSiteSubscriptionIdentifier]::Default)
$url = "http://sp-appdev:2013" #URL of any site collection that is associated to the user profile service application.
$spsProperty = "RoomNumber" #Internal name of the SharePoint user profile property
$fimProperty = "extensionAttribute2" #Name of the attribute in FIM/LDAP source
$connectionName = "LDAP Sync" #Name of the SharePoint synchronization connection
#Get UserProfileManager
$serviceContext = Get-SPServiceContext
if ($serviceContext)
{Write-Host "Successfully obtained service context!"}
else
{Write-Host "Failed to obtain service context"}
$upManager = new-object Microsoft.Office.Server.UserProfiles.UserProfileConfigManager($serviceContext)
if ($upManager)
{Write-Host "Successfully obtained user profile manager!"}
else
{Write-Host "Failed to obtain user profile manager"}
$synchConnection = $upManager.ConnectionManager[$connectionName]
if ($synchConnection)
{Write-Host "Successfully obtained synchronization connection!"}
else
{Write-Host "Failed to obtain user synchronization connection!"}
Write-Host "Adding the attribute mapping..."
$synchConnection.PropertyMapping.AddNewMapping([Microsoft.Office.Server.UserProfiles.ProfileType]::User, $spsProperty, $fimProperty)
Write-Host "Done!"
Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog -
Script to hide out of the box form field in SharePoint 2013
Can someone post a script to hide the fields on the out of the box New form of a particular list ?
You can still edit form pages within SPO. Embedding that script should work. Have you tested it?
As an alternative, you can set some of the column properties (such as
ShowInEditForm) to No via the SPO Manager but this is a paid product - http://office.microsoft.com/en-us/store/sharepoint-manager-2013-online-WA104025157.aspx?queryid=6e5f213e%2D1ae8%2D4d5c%2D85f0%2D83712736e194&css=sharepoint%20manager&CTT=1
Steven Andrews
SharePoint Business Analyst: LiveNation Entertainment
Blog: baron72.wordpress.com
Twitter: Follow @backpackerd00d
My Wiki Articles:
CodePlex Corner Series
Please remember to mark your question as "answered" if this solves (or helps) your problem. -
Attachment field in sharepoint 2013
Hi,
I have a custom list and customized the list using infopath 2013.Here i have created 2 views as Employee and manager.I have added one attachment field in both views.
Here my problem is that i want manager should not able to delete the attachment attached by the employee but manager can able to open the attachment.
Please help me to do this .
Thank you!Only solution I can think of is to create 2 list and combine use them
http://www.codeproject.com/Articles/194252/How-to-Link-Two-Lists-and-Create-a-Combined-Ciew-i
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/23961544-8d47-42c0-9ada-584ae94b04c8/linking-two-different-lists-in-sharepoint?forum=sharepointcustomizationlegacy
http://social.technet.microsoft.com/wiki/contents/articles/15258.sharepoint-2010-how-to-link-two-list-and-create-a-combine-view.aspx
Or
you need to custom code it -
How to write FQL in querytext field in SharePoint 2013 Search REST API?
I am having double quote symbol issue in my search app, same as http://www.silver-it.com/node/127 says.
To avoid this issue, I am trying to understand: is it possible to do search request in FQL to the 2013 Search REST web service?
I know that we can use KQL in querytext, like
http://sp2013/sites/search/_api/search/query?querytext='Title:"123#123"'&enablefql=false&rowlimit=100&selectproperties='Title'
But is it possible to write it in FQL? I found that there is a enableFQL property we can set in REST API. What's the function of it?
http://sp2013/sites/search/_api/search/query?querytext='test'&enablefql=true&rowlimit=100&selectproperties='Title'
http://sp2013/sites/search/_api/search/query?querytext='string("test case",mode="simpleall")'&enablefql=true&rowlimit=100&selectproperties='Title'
Right now, the two above requests just give me this error.
HTTP/1.1 500 Internal Server Error
{"error":{"code":"-1, Microsoft.Office.Server.Search.REST.SearchServiceException","message":{"lang":"en-US","value":"We didn't understand your search terms. Make sure they're using proper
syntax."},"innererror":{"message":"We didn't understand your search terms. Make sure they're using proper syntaxhttp://sp2013/sites/Search/_api/search/query?querytext='string("cat+dog+fox",+mode="and")'&enablefql=true&rowlimit=100&selectproperties='Title'&sourceid='ad5a2ca4%2D91eb%2D44de%2D98f7%2D9af1c1eefef3'
The response is:
HTTP/1.1 400 Bad Request
{"error":{"code":"-1, Microsoft.SharePoint.Client.InvalidClientQueryException","message":{"lang":"en-US","value":"Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)."},"innererror":{"message":"Guid should contain 32 digits with
4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).","type":"Microsoft.SharePoint.Client.InvalidClientQueryException","stacktrace":" at Microsoft.SharePoint.Client.Rest.EdmClientValue.ConvertTo[T]()\r\n at Microsoft.Office.Server.Search.REST.SearchServiceServerStub.query_MethodProxy(SearchService
target, ClientValueCollection xmlargs, ProxyContext proxyContext)\r\n at Microsoft.Office.Server.Search.REST.SearchServiceServerStub.InvokeMethod(Object target, String methodName, ClientValueCollection xmlargs, ProxyContext proxyContext, Boolean&
isVoid)\r\n at Microsoft.SharePoint.Client.ServerStub.InvokeMethodWithMonitoredScope(Object target, String methodName, ClientValueCollection args, ProxyContext proxyContext, Boolean& isVoid)\r\n at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.InvokeMethod(Boolean
mainRequestPath, Object value, ServerStub serverProxy, EdmParserNode node, Boolean resourceEndpoint, MethodInformation methodInfo, Boolean isExtensionMethod, Boolean isIndexerMethod)\r\n at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.GetObjectFromPathMember(Boolean
mainRequestPath, String path, Object value, EdmParserNode node, Boolean resourceEndpoint, MethodInformation& methodInfo)\r\n at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.GetObjectFromPath(Boolean mainRequestPath, String path, String
pathForErrorMessage)\r\n at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.Process()\r\n at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.ProcessRequest()\r\n at Microsoft.SharePoint.Client.Rest.RestService.ProcessQuery(Stream
inputStream, IList`1 pendingDisposableContainer)"}}} -
Error when running workflow form list item - workflow manager SharePoint 2013
I am getting the following error in the workflow services log when I tried to run a SPD 2013 workflow from as list item. The workflow page comes up with an "An unexpected error has occurred"
page when opened:
Error processing management request. Method: GET, RequestUri: http://servername:12291/$Workflows/$Instances?$skip=0&$top=100&monitoringParameter=1f51aa43-2f1c-4fc5-a86d-f638ca57c00d, Error: System.Data.SqlClient.SqlException (0x80131904): The procedure "GetInstances" has no parameter named "@OtherWorkflowStatus".
at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
at Microsoft.Workflow.Gateway.HttpAsyncResult.End[TAsyncResult](IAsyncResult result)
at Microsoft.Workflow.Gateway.WorkflowServiceGateway.<>c__DisplayClass9d.<EndGetInstances>b__9c()
at Microsoft.Workflow.Gateway.WorkflowServiceGateway.ExceptionFilter[T](Func`1 body)
at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
ClientConnectionId:d2039360-b352-4d81-9bb7-b647e2938d06
Can't find anything on google.
Edit: Ok, when I look at the error, it is saying the the "GetInstances" stored procedure in the WFInstanceManagementDB database does not have a parameter named "@OtherWorkflowStatus".
For laughs, I added the parameter (which wasn't in there). Now I get the error:
Procedure or function 'GetInstances' expects parameter '@OtherWorkflowStatus', which was not supplied
It seems like there is something not right about my installation. Previously, I couldn't get the workflow backend service to run because there were config values missing from the workflow manager database. At the time I tried to uninstall/reinstall
WFM to no avail. I eventually had to manually add the values to get it to work. Something is not right about the WFM install/config process.Here is what I had to do to get it working:
Leave the WFM (Workflow Manager) farm using the WFM config tool
Uninstall WFM, Service Bus, and the CU's from control panel
Uninstall Workflow Manager Client if it exists in the control panel, it didn't in mine
Delete the following databases in SQL Server:
SbGatewayDatabase
SbManagementDB
SBMessageContainer01
WFInstanceManagementDB
WFManagementDB
WFResourceManagementDB
Delete the workflow proxy service in Central Admin (important)
Application Management > Manage Service Applications
Highlight (select) the Workflow Service Application Proxy service (don’t click the hyperlink)
Select “Delete” from the ribbon.
Restart the server
Reinstall
Enable the workflow proxy service in CA for the web app, the 2013 workflow option will not show up in SPD unless you do this.
Application Management > Manage Web Applications
Select your web app
Select “Service Connections” from the ribbon
Check the Workflow Service Application Proxy item and click “OK” -
Get filtered lookup field in sharepoint 2013
Hi,
I have LIST1
Title User
Title1 Spservices
Title2 Spservices
Title3 Spuser
here User column is people/group
LIST 2
how can i get Titles from LIST1 where User= Spservices ([Me]) for TitleLIST1 column in LIST2
Example:
Title TitleLIST1
1 Title1
Title2
Here TitleLIST1 is dropdown (Lookup)
Thanks in advanceYou could consider using a calculated column on the source list that has your filtering built into it. Then look up into this on your target list.
Steven Andrews
SharePoint Business Analyst: LiveNation Entertainment
Blog: baron72.wordpress.com
Twitter: Follow @backpackerd00d
My Wiki Articles:
CodePlex Corner Series
Please remember to mark your question as "answered" if this solves (or helps) your problem. -
Problem with People Picker field in sharepoint 2013 list
hi friends
i have a problem with people picker
default newitem.aspx
custom NewItem.aspx
why the selection option of the people piker is changing
how can i get the default functionality in custom page
please help meHello malli.share,
try to copy source code from newitem.aspx to custom_newitem.aspx (in SPD you can edit custom_newitem.aspx in advanced mode and paste the code).
Regards,
Alexander -
SharePoint 2013 ListView GroupBy SpURL field
I am doing GroupBy Url Field in SharePoint (2013 Enterprise Edition) view. I have set 5 for group limits to return, and item limit to 1. Though there are more than 5 groups in list I can see less than 5 groups in view.
After bit of analysis I found that while querying from DB SharePoint API gets unique 5 combination of Description + ", " + Url of Url field. But while displaying it, groups by based on description field only.
Let's assume I have below content in my list for column "MyLink"
Bing, http://bing.com
Bing, http://bing.co.in
Google, http://Google.com
Google, http://Google.co.in
Now if I group by "MyLink" and set GroupLimit to 2 and item limit to 1 (changed item limit to 2, 10, 100 - same result), in the view I can see only 1 group "Bing". Though I have given 2 different Url's, Url is not considered here while
displaying.
As of now I have hidden field MyLink_Hidden of single line of text, which has combination of Description and Url. I am grouping by this field and replacing the group header through JS. Please suggest if this is known issue in SharePoint 2013 and there is
better solution.
PaLaHi Pala,
It is by design that GroupBy with hyperlink field will be grouped by description, so it is not easy to change it.
As you want to group by the view with different related content, I recommend to extract the list name and the item id from the current item's server relative URL in the workflow, and then use the value to update the column in the Task list.
After that, the column value will become , it is list name/item id_.000.
It will make the view more clear about the related item when grouping the view with this column.
And you method is also fine.
Thanks,
Victoria
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Victoria Xia
TechNet Community Support -
Sorting and filtering by select-multi person or group field in the list in SharePoint 2013
Hi everybody,
In SharePoint 2013, I have defined a column as "Person or Group" field, which you allow for multiple selections. when I try to sort/filter it by this field in the list. The field doesn't show up in the dropdown. If I changed "Allow multiple
selections" option to "No" by clicking the column name to edit it in "List Settings", the field can show up sort in the dropdown.
How about support sorting and filter by select-multiple "Person or Group" field in sharepoint 2013?
BTW, in SharePoint 2010, it can support this issue no matter what the "Allow multiple selections" option the request is.
Any help would be great!
Thanks,
JodieHi Jodie,
Can you please give this as a try.
To fix the Filter Issue on Assigned To Column. We need to run the following scripts.
The field which allows more than one values or which allows multiple selections. The multi-valued fileds are non-sortable,
non-filterable. Multi-valued fields cannot be indexed
$web=Get-SPWeb
$list=$web.Lists[] $field=$list.Fields[ColumnName] $strSchema=$field.SchemaXml $str=Schema$strSchema.Replace("Sortable=`"FALSE`"","Sortable=`"true`"")
$field.SchemaXml = $strSchema
Krishana Kumar http://www.mosstechnet-kk.com
Thanks for your reply, I have tried to run the scripts, but it still cannot work. The following is my scripts:
$web=Get-SPWeb 'http://cst-server-01'
$list=$.web.Lists["Product Request"]
$field=$list.Fields["Applicant"]
$strSchema=$field.SchemaXml
$str=Schema$strSchema.Replace("Sortable='"FALSE'"", "Sortable='"True'"")
$field.SchemaXml = $strSchema
Maybe you are looking for
-
How do I delete an obsolete icloud account?
I have two iClould accounts, and only need one of them. How do I delete the other one?
-
Hello all. I am building a small app that requires a persistence manager to save objects in an xml repository file. I am trying to use generics to see if I can avoid casting objects from a general super class to concrete class. Lets say Entity and Pe
-
"1F" will not disappear.....
I have what appears to be a "notification" from the facebook app that will not disappear....I constantly have the "1F" symbol on my screen....I have accessed my facebook account both via the facebook BB application and the browser to insure that noth
-
Conditional Display Of Headings on Grouped Report
I have a grouped report in 2 seperate tables. I want to print the values of 'H1' and 'H2' (which are my headings for 'Group:' and 'Name:') only 1 time per page. The grouped data needs to print on every occurance. How do I do that? Group: 1 Name: Bob
-
Web Service Help (Login Problem?)
Hi, I'm trying to access the queryview webservice. I have access to the WSDL, but when I perform the SOAP call I get an "Authority check failed" error. Any ideas where this error is coming from gurus or how to get past it.? I'm using infopath