Can anyone help me with this problem.
The thing is, I have list and in which there are items. Normally we access the list items by ID and not by title.
/Lists/Issue%20Log/DispForm.aspx?ID=118&ContentTypeId=0x010001B2A64F3F5AF64BB47CC5044286787E
we got new requirement to access the list item by TITLE
/Lists/Issue%20Log/DispForm.aspx?Title=Help me to call list item by title.
By access Item with title is not working.
Can anyone pls let me know what I have to do to get the list item by Title.
I would bet that it is not possible out of the box.
You could add a filter WebPart and help them locate their Item more easily. Or
You could create a WebPart that reads the URL Query does a lookup (provided titles are unique) and redirects the page to display the desired Item.
good luck!
it is possible try it like this:
http://yourSharePoint.com/Lists/ListName/DispForm.aspx?Title=YourItemTitle
Hope it helps
Related
I have an array with many items in it and I want to display it using <ion-list> but the thing is that I don't want the list to cover all my page but limit it to let's say 50% of the page. So basically I want it to show about 5 items at a time and have a scroll bar just for the list view. How do I approach this?
Maybe you want to use an <ion-scroll> (documentation here) like I suggest in my answer to your other question here.
I am having problem with a "Multilist with search" field. This is a Sitecore 8 instance. the field is using a query like this to fetch a list from a lucene search index named "agents_master_index" :
TemplateFilter={3EA2CB30-0D04-4D73-9282-0103D8F34074} & StartSearchLocation={95A07C68-36B6-4D0D-AAE3-A2BFBF40C2C6}&SortField=Agent Name
I have multiple issues:
1) When I open an Item based on this template, it is very slow but it ultimately returns some results on first page of the list, however the pagination and go-to-item buttons are not working and the field is not showing number of pages.
2) If I try template's standard values' item, the above problem doesn't happen but if I click on "next page" button, it returns nothing.
I looked into Search log file to see what's going on. Turns out on when it successfully returns the first page results, it is executing following query:
4832 12:32:34 INFO ExecuteQueryAgainstLucene (agents_master_index): +_datasource:sitecore +(+(+_path:11111111111111111111111111111111 +_latestversion:1) +(+_path:95a07c6836b64d0daae3a2bfbf40c2c6 +_template:3ea2cb300d044d7392820103d8f34074)) - Filter :
but to return the second page of results, the multilist runs this query:
http://localhost/sitecore/shell/Applications/Buckets/Services/Search.ashx?fromBucketListField=*&sort=Agent%20Name&template={3EA2CB30-0D04-4D73-9282-0103D8F34074}&location=95a07c6836b64d0daae3a2bfbf40c2c6&pageSize=10&pageNumber=2&sc_content=master
An returns this JSON-like result which is basically empty:
({"CurrentPage":1,"Location":"current item","PageNumbers":0,"SearchCount":"0","SearchTime":"04.3539","facets":null,"items":[],"launchType":"contenteditor:launchtab","ContextData":[],"ContextDataView":[]})
and in the search log file what is actually being executed is this:
4832 12:28:05 INFO Search Query : +(_content:* _name:* _displayname:*) +_template:3ea2cb300d044d7392820103d8f34074 +_path:95a07c6836b64d0daae3a2bfbf40c2c6
4832 12:28:05 INFO Search Index : sitecore_index
4832 12:28:05 INFO Search Took : 4346ms
I don't understand why to retrieve the second page its looking into sitecore_index instead of "agents_master_index". What is wrong here? Should i fix my query? How can I force it to pick the correct lucene index (if this is the reason behind all this confusing problem?
Any help or insight is greatly appreciated.
Edit
By the way, the StartSearchLocation is referring to an items bucket. The "agents_master_index" is referring to same location in its definition.
UPDATE
OK, so far I have managed to work around the second problem. After exchanging some comments with Richard, I concluded that (at least in Sitecore 8) content editor expects to find items which we want to search in multilist component in the same index which "Root" item exists ( {11111111-1111-1111-1111-111111111111} ) so I just added same crawler we had in "agents_master_index" to the "sitecore_index" and it worked!
However, this is still working only on template's standard values item. So the first problem has not been solved yet. In other words, the multilist doesn't work when clicking on second page or do any search on the items which have been created based on that template, it only works properly on the template itself (the standard values item)
I came across this Fix for Sitecore Multilist and TreeList with Search Bug which looks very similar to my problem, I tried it but it didn't worked for me :(
I´ve created a list in SharePoint. What i´ll like to do is create another list, and retrieve some information from one list to my new one, and be able to change the input data from list A in a single line of text.
So lets say, list A is PopStar, with columns like Genre "Rock", HairColor "Red" and GrammyCount "2".
In list B i only want textboxes to show whats in list A and be able to change (update) them, for example Genre to "Pop", HairColor to "Black" and GrammyCont to "8" ?
Is this possible?
i´m using office 365
In order to achieve exactly what you want you will require either a Workflow or an Event Receiver, however I assume you won't feel confident by struggling with such approaches, furthermore, there are some workarounds that could be very close to your requirement and maybe are even better solutions than the approach you suggest, in terms of maintenance, growth and upgrade.
I suggest to review topics like "SharePoint parent/child list webparts connections" or "sharepoint edit form add child items", here are two videos of which you can get some ideas.
https://www.youtube.com/watch?v=9PWIxk6rF-A
https://www.youtube.com/watch?v=-5CdjfLONgE
Take in count that you can do more than what is displayed in the videos, by example in the Edit Form you could add a webpart to display the Quick Edit View (Grid View) of the related list so the values can be edited in the same Form and thus removing the need to navigate to a second window.
I have to write a script in powershell, and I'm new to it, to check specific checkbox when a sharepoint site is created. In a list, in sharepoint, we can go to list, change the display, and we can check the columns we want to display in the list.
I have this
$spWeb = Get-SPWeb "http://mysite"
$spList = $spWeb.Lists["MyList"]
$spList.Fields |ft title, internalname, id, type, hidden -AutoSize
I found the ones I want to check (example)
Title InternalName
----- ------------
Created By Author
Modified By Editor
I looked at the properties with
$spList.Fields.GetField("Author")
but I didn't found the property to set the value to true. I also set the checkbox to true in sharepoint, executed the command again and do a compare to see if a property changed, but nothing changed.
I also tried to do :
Update($true)
on the field, on the list.
I want to check those checkbox with a powershell command, I have many lists where I have to do this, and I have to execute that script on many sites.
Thank you for your help
If you need more information, let me know. I didn't found what I was looking for, I tried many things, but nothing worked.
(I couldn't post images..)
After somme research, I found that I have to modify my View. I had some custom columns, so I had some code after that.
$spViews = $spList.Views["All Items"]
After, I did a try/catch statement with this
$spViews.ViewFields.Add($spList.Fields.getField("Author"))
$spViews.Update()
And it worked!
I went on my lists, and all my list were updated with "Created by" "Created" "Modified by" and "Modified". They were displayed in my view list.
I am trying to implement a feature in a list from WSS3.0.
Basically I have a list and I want to add items to the list but I want to check first if there is already any item with the same value in a specific column.
I have a column named "My Key Field" and I want the values in this field to be unique. So, for example, if I have a record in the list where "My Key Field=65 210" I should not be able to add a new item when a users inserts the same value for the "My Key Field".
Any ideas on how to do this? A simple solution would be great considering my lack of skills concerning to Sharepoint programming....but I am flexible and I can learn.
Thanks for your attention!
Regards,
Aganju
The SPServices library has a method for this, called SPRequireUnique. It relies on SharePoint Web services.
For the record, you get this feature out of the box in SP 2010.