Access another list in SharePoint controldisplay template

Hi All,
I would like to know if it is possible to access another SharePoint list items in a control or item display template using Client object model or REST services. Can someone please confirm me? Thanks.
Regards,
SC Vinod
Blog: http://sharesilver.wordpress.com/

Hi Mike,
I'm not asking for implementing COM or REST services in a CEWP but in the display templates of a Content search web part.
Regards,
SC Vinod
Blog: http://sharesilver.wordpress.com/

Similar Messages

  • SPListItem deleting save the list item into another list.

    Hi Friends,
    Using SPList Item deleting event receiver ,before deleting the item I want save the list item to the another SharePoint list.
    How can we do this using event receivers.Please help me anyone.
    Thanks,
    Tiru
    Tiru

    Before delete the item, use the below logic
    http://stackoverflow.com/questions/1075323/copy-list-items-from-one-list-to-another-in-sharepoint
    or
    You can do this by 2 workflows one creating list item by copying and second workflow on the copied item which will delete the original list item.
    http://sharepoint.stackexchange.com/questions/93441/move-items-from-one-list-to-another-list-using-sharepoint-designer-2010
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/100c0b3c-72d9-4427-a48f-8300be508aa2/how-do-i-copy-the-items-in-a-sharepoint-2010-list-to-another-list?forum=sharepointgeneralprevious

  • How Documents or lists moving from one Subsite to another Subsite in sharepoint 2010

    Hi All,
    I have one site, it consists 5 subsite.
    One subsite consists 5 document libraries.
    How to move Doument libraries and lists from one site to another site  in sharepoint 2010.
    Each subsite access by different users.
    Thanks,
    GAK Austin

    Here are few options/ways:
    1) Save the library as template and reuse at another sub sites. Here the permission will be revoked at destination site
    2) Use sitemanager page to move list and libraries. URL owuld be SITEURL/_layouts/sitemanager.aspx . You will have the old permisison at another sub site.
    3) Use Powershell command to have the xeport and import of that library from source to destination
    4) Use Contentdeployment tool. It is free from codeplex
    Many Thanks,
    [email protected]

  • How to auto populate data from one list in SharePoint 2007 into another list based on a key value?

    Hi,
    As a part of new requirement in my project I am supposd to work on SharePoint 2007. I have one List (BCExtract - Main list) with all data related to an Application (like ID, name, app manager RTO etc).
    I have created another list which has form to be filled by a user (with details about his/her applications). My requirement is that when the user enters AIT ID then the page should refresh (probably after hitting enter) and other details like Application
    name, RTO etc which is present in another list gets auto populated depending on the AIT ID (unique column) entered so reduce the burden on the user.
    Please suggest me how this can be done. I do not have permission for obtaining SharePoint Designer and I do not know JQuery. Infopath is ok but if this can be done through SharePoint 2007 alone then it would be great.
    Thanks....

    Hello,
    You can either use jquery/jaavscript or infopath form to achieve this. There is no default way to do this.
    I would suggest jquery because you can put script in newform/editfor.aspx page using content editor webpart. Refer this link for jquery:
    To get value from list:
    http://social.technet.microsoft.com/Forums/en-US/ac47fe2a-ccb6-4f5b-b274-703aecc6cb0a/get-list-items-in-sharepoint-2010-by-using-jquery
    http://www.robertkuzma.com/2010/08/read-list-items-using-sharepoint-web-services-and-jquery/
    To set value in column:
    http://paulgalvinsoldblog.wordpress.com/2009/06/13/quick-and-easy-use-jquery-to-set-a-text-field%E2%80%99s-value-on-a-sharepoint-form/
    http://spservices.codeplex.com/discussions/468729
    If you use infopath form, then you need to create two data connection to get data from both lists. Later you can set value in fields based on selection using rule. This can be possible without code.
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How to Loop through another list and update a column with SharePoint Designer 2013 Workflow

    Hi,
    I am trying to get my head around the new 2013 Workflow Engine and SharePoint Designer 2013 Workflow Text-Based Designer.
    I have two lists.
    List A has 2 columns: Title, Completed (Yes/No)
    List B has 3 columns: Title, LookupListATitle, Completed (Yes/No)
    All the 2013 Workflow components have been installed and configured and I am selecting the 2013 Workflow option in SPD
    I am trying to set off a 2013 Workflow when an item in List A is edited to Loop through List B and select items where the LookupListATitle column's value is equal to the Title value of the current item, and set the value of the Completed column for those
    items in ListB to "Yes".
    I have the Workflow configured like this:
    Stage: Stage 1
    IF Current Item:Completed equals Yes
    Loop: 1
    The contents of this loop will run repeatedly while: ListB:LookupListATitle equals Current Item: Title
    Update item in ListB. 
    (The dialog options for the update item action as follows:
    List: ListB
    Field: Completed, Value: Yes
    In the Find the List Item section
    Field: LookupListATitle
    Value: Current Item: Title)
    Transition to stage
    Go to End of Workflow
    When I update an item in ListA and set its Completed column to Yes, I would expect the Workflow to find all the items in List B where the Lookup column is equal to ListA's Title (there are 2) and update their Completed column to Yes. But it doesn't work.
    When I look at the Workflow Status it says the Internal Status is "Canceled" and the information pop up has the following alien language (and may be truncated):
    RequestorId: 95f03b62-8956-ac14-c5cf-dc98c89c589c. Details: System.ArgumentException: Invalid JSON primitive: Item001. Parameter name: value at Microsoft.Workflow.Common.Json.JXmlToJsonValueConverter.ConvertStringToJsonNumber(String value) at Microsoft.Workflow.Common.Json.JXmlToJsonValueConverter.ReadPrimitive(String
    type, XmlDictionaryReader jsonReader) at Microsoft.Workflow.Common.Json.JXmlToJsonValueConverter.JXMLToJsonValue(XmlDictionaryReader jsonReader) at Microsoft.Workflow.Common.Json.JXmlToJsonValueConverter.JXMLToJsonValue(Stream jsonStream, Byte[] jsonBytes)
    at Microsoft.Activities.DynamicValue.ParseJson(String json) at System.Activities.CodeActivity`1.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor
    executor, BookmarkManager bookmarkManager, Location resultLocation)
    Unfortunately I don't have access to the server, logs etc.
    I would love to find some tutorials, or any books on SharePoint Designer 2013 in general and Workflows in particular but my searches haven't turned up much so far apart from a pre-release Beginning SharePoint Workflows which is in its very early stages and
    not much help yet.
    Can anyone give me some guidance on how to set up While Loops to iterate through a related list using SharePoint Designer 2013?
    Mark

    Hi,
    I understand that you wanted to update the items in the other list (Participants) where the Course equals the Current Item.
    You need to use “Call HTTP Web Service" action and “Build Dictionary" action to get the Maxid and then loop Participants to update the items.
    You can follow the steps as below to achieve what you want:
    Create a custom list named Courses, add columns: Title(Single line of text), Course ID(Single line of text), Course Finalised (Yes/No).
    Create a custom list named Participants, add columns: Title(Single line of text), Course(Lookup), CourseFinalised (Yes/No).
    Create workflow associated to Courses, start the workflow automatically when an item is created or changed.
    Add conditions and actions:
    The HTTP URL is set to
    https://sitename/_api/web/lists/GetByTitle('listname')/items?$orderby=Id%20desc and the HTTP method is set to “GET”. Then the list will be order by Id and desc.
    Then if Course Finalised is equal to Yes, the CourseFinalised  of the associated items in Participants will be updated to Yes.
    More information:
    http://sergeluca.wordpress.com/2013/04/09/calling-the-sharepoint-2013-rest-api-from-a-sharepoint-designer-workflow/
    Thank you for your understanding.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Anonymous access to list on public site (Sharepoint Online)

    Hi,
    I have created a Contact Us custom list for our public web site and could assign "Add items" and "View items" permissions for the Anonymous user (by using the 3rd party WSP365
    Anonymous 2013 sandbox solution). This is clearly shown in the Permissions of this list.
    Now I'm trying to access this list through the REST API and the $.ajax function (jQuery). Assuming the list is called "ContactUs", I should be able to read and write to this list through
    http://contoso-public.sharepoint.com/_api/web/lists/GetByTitle('ContactUs')/items
    1st problem: When I try to access this list, I get a login popup asking me to log into prodnet47-48ipv4a.sharepointonline.com.akadns.net (same on IE11 and Chrome)
    Accessing directly the link above returns the following error (although I'm not sure it is meant to be accessed like that):
    <m:error xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"><m:code>-2147024891,
    System.UnauthorizedAccessException</m:code><m:message xml:lang="en-US">Access
    denied. You do not have permission to perform this action or access this resource.</m:message></m:error>
    2nd problem: When I use _spPageContextInfo.webAbsoluteUrl +"/_api/web/lists/GetByTitle('ContactUs')/items to programatically get the base domain, the url returned is
    http://contoso-public.sharepoint.com/undefined/_api/web/lists/GetByTitle('ContactUs')/items
    Any help welcome.
    Thanks in advance

    I read that anonymous access is unsupported in 2010 and didn't find improvements in 2013. Alternative route is to create service account with minimal read permission and use this account to communicate with REST.
    http://allthatjs.com/2012/07/20/limitations-of-sharepoint-listdata-svc/
    Bala

  • Mail for Access Request to O365 SharePoint site not received if a mail-enabled Distribution Lists' email address is provided.

    I have the Access Request feature enabled in my O365 SharePoint site. This functionality is working fine for a single Site Owner's Email-ID and he is receiving the mail in his Outlook with an option to Approve/Deny the request. But when I specify the Email-ID
    of a Distribution List (which consists of all the site owners), the mail is not sent to their respective members although the corresponding request is listed under the Pending Requests in the Access Requests list in Site Settings. Why is this happening and
    if this not possible, kindly suggest a workaround.

    can you specify the DL name instead of the email?
    Kind Regards, John Naguib Technical Consultant/Architect MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation

  • Linked table in Access not displaying all SharePoint List columns

    In Access 2007 I created a link to a list in SharePoint 2010. 
    Originally the modified by and created by columns were not visible in SharePoint.  They did not appear in the Access table.
    I made the two lists visible in Sharepoint and refreshed the link.  However, the two columns did not appear in the Access table.  I created a new .accdb file and re-created a link to the list yet the two columns still do
    not appear in the table.
    How do I get these two columns to appear in the Access table?
    Thanks,
    - Bruce

    I figured it out by accident.  The fields are in the linked table ... they are just hidden!
    I face the same Problem with Access 2013 and SharePoint-Online from Office 365. I added additional columns to the list in SharePoint, but they won't appear in the linked table in Access. Even when I make all columns visible, they are not listed.
    Updating data for the other columns works like a charm.
    Any idea from anyone?

  • How set Access forms to lists in Sharepoint?

    I need to create new view for list like Access form in Sharepoint. I go to Lists-Parameters -> Create View -> Access view.
    Then I create form in Access and save in Sharepoint site. This file have saved like .accdb. How I can choose this view for default view for my list?

    Hi,
    According to your post, my understanding is that you wanted to use the Access view in a list.
    There is no OOB way to use the Access view as a default view in SharePoint 2010.
    In SharePoint 2010, when create an view in Access 2010, you can only choose to ‘Save to SharePoint Site’ to save the .accdb file to a SharePoint document library.
    User then can access the reports or forms in the document library instead. The .accdb file will be opened in Access application.
    If you publish the Access database to Access Service, it will create a new site for the Access database, you can view the forms and reports in browser.
    For more information about publish a access database to SharePoint, you can refer to this site:
    SharePoint 2010 and Access 2010: http://www.youtube.com/watch?v=Dq-tDuPfgZc
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How to delete i.e. clear the pending access requests list from Access request page in SharePoint 2013

    Hi Team,
    I am site collection admin of a SP13 site. The issue is we have added some of the users manually after we got requests from them for site access. But this has left those users as pending on Access requests page. We don't want that list to stack up.
    I can not decline those requests as those users will be notified with declined mail. I searched for clearing the list of those pending requests but did't find any guidelines for this. 
    Is there any way I can do this. Any help is appreciated thanks in advance  

    You might consider using PowerShell to remove unwanted items from the "Access Requests" list of the web site.  This list holds all of the access requests including pending, declined and approved.  The following example demonstrates removing
    the first item from the list.  Please note, I'm not aware whether or not there are any negative side effects to removing items from this list so doing so would be at your own risk.
    $web = get-spweb https://yoursharepointsite
    $list = $web.lists["Access Requests"]
    $list.items[0].delete()

  • Another ORA-24247: network access denied by access control list (ACL)

    Hi
    We have just upgraded from 10g to 11g (DB version is 11.2.0.1.0), and i've have nothing but problems with ACL.
    I've tried:
    Creation code (as dba-user):
    begin
    DBMS_NETWORK_ACL_ADMIN.CREATE_ACL(’netacl.xml’,
    ‘Allow usage to the UTL network packages’, ‘ACLTEST’, TRUE, ‘connect’);
    DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(’netacl.xml’ ,’ACLTEST’, TRUE, ‘resolve’);
    DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL(’netacl.xml’,'*’);
    commit;
    end;
    Execution code (as ACLTEST):
    declare
    l_conn UTL_TCP.connection;
    v_file ftp.TStringTable;
    l_list ftp.t_string_table;
    begin
    l_conn := ftp.Logind('DOMAIN', 21, 'USERNAME', 'PASSWORD');
    ftp.logout(l_conn);
    end;
    Error stack
    ORA-24247: network access denied by access control list (ACL)
    ORA-06512: at “SYS.UTL_TCP”, line 17
    ORA-06512: at “SYS.UTL_TCP”, line 246
    ORA-06512: at “COMMON.FTP”, line 784
    ORA-06512: at line 7
    i've tried to add the domain in the acl with full port range with no luck:
    begin
    DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL(’netacl.xml’,'DOMAIN’,1,65000);
    commit;
    end;

    Hi;
    First what below query return
    SELECT acl,
    principal,
    privilege,
    is_grant,
    to_char(start_date) ,
    to_char(end_date)
    FROM dba_network_acl_privileges;
    Regard
    Helios

  • Is it possible to create a new List from another List's template and NOT carry over the associated Workflow?

    Related to
    this post, in cases where it's desirable to have two different workflows for two different Lists—is it possible to NOT bring forward a hardwired workflow when creating a new List from a saved template?
    I.e. List #2 still has the workflow from List #1 hardwired in.  List #1 still needs its workflow but List #2 wants to have a separate Workflow.

    More importantly, because it's relatively easy for most folks to just start from scratch with a new Workflow—how does one disassociate a carried-over Workflow from the new List?
    Use the web-GUI. (List Settings > Workflow Settings)
    From Designer, there's a shortcut button at the top of the page in the Workflows tab: "Administration Web Page".

  • Save a published Access services database site as a template with contents does not work

    Hi
    I have a Access site on the SharePoint. I wanted the site to be duplicated to another subsite, I then did the usual - save site as a template with contents and made a copy of it, however it does not work. I have been getting the error as stated below
     error has occurred during report processing. (rsProcessingAborted)
    Query execution failed for dataset 'Default'. (rsErrorExecutingCommand)
    For more information about this error navigate to the report server on the local server machine, or enable remote errors
    However, it works if I make a local copy and publish it to the subsite? How does access services work on SharePoint and why the template option can't be chosen.

    Hi cally, check the following links for possible solutions:
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/1e2b77ba-4cfa-4aa3-97e4-b7b39fbd46fd/error-with-ssrs-report-that-has-a-sharepoint-list-data-connection-ssrs-r2-and-sharepoint-2010?forum=sqlreportingservices
    http://blog.mikehacker.net/2012/05/16/sharepoint-2010-access-services-reporting-with-sql-2012/
    cameron rautmann

  • Refreshing drop down list in a web template based on a query view

    Refreshing drop down list in a web template based on a query view  
    I have just developed my first set of portal pages displaying the results of Bex queries and query views in the SAP Netweaver portal. I developed the pages using web application designer. Each web template created with W.A.D is using a query or query view. In one template I have that is using a query view I am using a variable in my Bex query. This variable is of type customer exit, is set to variable is ready for input and calls some ABAP code which returns the current fiscal week number and year. When I run the query or query view in isolation through Bex analyzer the variables gets populated correctly. In my web template I have associated my variable from my query view to a drop down list box. However when I run the Iview created from this template the query results get refreshed but my drop down list box does not, it still shows last weeks week number. How do I get the drop down list box to refresh with the latest result from my customer exit variable?
    Regards
    Collin

    Hi  ,
    According to your description, my understanding is that you want to  filter a calendar based a look up column in SharePoint 2013.
    Calendar View not support OOTB filters connection. it is disabled for calendar view, you need to change view(not calendar view) so OOTB filters works and get connected to your view.
    You can achieve this using combination of jQuery and SharePoint OOB techniques.
    For jQuery filters refer to the  blog: enter SharePoint List Filters using jQuery
    Also you can filter Calendar View Web Part using JQuery and SPServices:
    http://blogs.visigo.com/chriscoulson/filter-a-sharepoint-calendar-list-with-a-date-picker/
    http://joshmccarty.com/2011/11/sharepoint-jquery-and-fullcalendar%E2%80%94now-with-spservices/
    http://spservices.codeplex.com/discussions/258846
    Another  way, you can have a look at the SPFilterCalendar :
    http://www.aasoftech.com/SitePages/How%20to%20Filter%20SharePoint%20Calendar%20Dynamically.aspx
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Lookup in another list when filtering in a view

    Hello,
    I need help with a public view for a list. This is my filter now:
    <View Name="{F9165834-6860-4EB5-A7FE-D96CE334DF70}" Type="HTML" DisplayName="My group - not assigned" Url="/sites/RomaniaL1SD/Lists/Opened tickets/My group not assigned.aspx" Level="1" BaseViewID="1" ContentTypeID="0x" ImageUrl="/_layouts/15/images/generic.png?rev=23" ><Query><OrderBy><FieldRef Name="Modified" Ascending="FALSE"/><FieldRef Name="Requester" Ascending="FALSE"/></OrderBy><Where><And><Eq><FieldRef Name="Assignment_x0020_group"/><Value Type="Text">EMEIA Romania Service Desk Management Level 1</Value></Eq><IsNull><FieldRef Name="Assignment_x0020_Person"/></IsNull></And></Where></Query><ViewFields><FieldRef Name="ID"/><FieldRef Name="Requester"/><FieldRef Name="Short_x0020_description"/><FieldRef Name="Assignment_x0020_group"/><FieldRef Name="Assignment_x0020_Person"/><FieldRef Name="Ticket_x0020_Status"/><FieldRef Name="Ticket_x0020_Priority"/><FieldRef Name="Attachments"/></ViewFields><RowLimit Paged="TRUE">30</RowLimit><Aggregations Value="Off"/><JSLink>clienttemplates.js</JSLink><XslLink Default="TRUE">main.xsl</XslLink><Toolbar Type="Standard"/></View></XmlDefinition>
    So this view displays all the items where the Assignment group is  "EMEIA Romania Service Desk Management Level 1" and the Assignment person "IsNull".
    What I need is to modify this, to filter
    by the Assignment group taken from another list and where in that list the person is [Me]
    --- I have another list with a 1st Person column, and a 2nd column which contains an Assignment group for each person and this is where I want to look ---
    Please let me know if this is feasible from SharePoint Designer.
    Kind Regards,
    Alex

    Hi,
    Per my understanding, you might want to filter the current list view with values from other list.
    Modifying the CAML statement in SharePoint Designer won’t be capable of this requirement cause we will need to query data from other list.
    In my opinion, custom code with CAML query would be required to query the “Assignment group” column and the “Assignment person” from the other list, then apply filter
    to the current list view.
    A possible solution is that you can use JavaScript Client Object Model to do the query job, with the retrieved values, filter the current list view using JavaScript.
    The links below about
    accessing list items using JavaScript Client Object Model would be helpful:
    How to: Create, Update, and Delete List Items Using JavaScript
    http://msdn.microsoft.com/en-us/library/office/hh185011(v=office.14).aspx  
    Common Programming Tasks in the JavaScript Object Model
    http://msdn.microsoft.com/en-us/library/office/hh185015(v=office.14).aspx
    About how to filter a list view using query string in URL:
    http://sharepointificate.blogspot.jp/2012/12/filtering-listviews-with-url-query.html
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

Maybe you are looking for

  • What is the deal with the ios 7 and sync issues?

    For as long as I can remember having ios 7, and maybe even before that, I've had NOTHING but problems syncing my phone to music.  I have been trying tirelessly to add a simple playlist that has a specific set of music that WILL NOT SYNC.  On top of t

  • Why do Camera Raw mods show in Bridge CS6 on one machine but not the other?

    Bridge CS6 and Photoshop CS6 are activated on our two MacBooks.  Before adding the second activation, image modifications performed in Camera Raw (8.4.0.199) would show in Bridge on our MacBook Pro.  Since then, they don't show on our MacBook Pro but

  • HP 2200D LaserJet recognized optional TRAY 3 as main tray

    The HP 2200D has a standard 2 paper-feed system: (1) manual load, (2) main tray. I've just purchased the optional 3rd tray. I went to PRINTER SETUP UTILITY and configured it to recognize TRAY 3. The printer prints just fine using all 3 feeds but for

  • F*&^%N Ipod

    My sister bought an ipod nano about a month ago. She tried to install itunes to no avail. Something about it trying to install to a drive that wasn't there. So I told to her to install vpod instead. It worked like a charm. Then yesterday she tells ev

  • ABAP Dump - Time out

    I need to work out on a report that is continuously throwing Runtime error of Time Out. After debugging, i realised that its running in a Loop infinitely. And i suppose that would be causing timeout. Could anyone suggest a way to deal with such error