ListData.svc for choice column

When viewing the listdata services available for a SharePoint list, i notice that a separate service is available for each choice column in a list.  Can someone explain how these are used?
For example, i have a list called InstitutionAlerts...
The following services are available  
    InstitutionAlerts
    InstitutionAlertsStatus
I know I can filter the InstitutionAlerts list by using ?$filter=StatusValue eq 'Submitted'
I am not sure how to use the InstitutionAlertsStatus service however.
   For example: http://myDomain/mySite/__vti_bin/ListData.svc/InstitutionAlertsStatus

Hi,
We can use the following URL to filter the choice column.
http://myDomain/mySite/_vti_bin/ListData.svc/InstitutionAlertsStatus()?$filter=Value eq 'Submitted'
You can do more customization with your own logic.
Best Regards
Dennis Guo
TechNet Community Support

Similar Messages

  • Add user-entered "Fill-In" values for "Choice" column to the list of available choices?

    I have a "Choice" column in SharePoint where users need to select a name for a specific engagement when uploading a document.  Since new engagements come up all the time, they need to be able to enter a new value and have that value available
    to select as a Choice from the list the next time they upload a document.  Is this possible in SharePoint?
    Our organization does not allow custom code using Visual Studio, but I do have access to SharePoint Designer. 

    Hello!
    All available choices are specified in the list's schema. I.e. the "Choice" column is designed to operate with predefined values that are set in the schema. Of course, you can every time add a new choice to the list's schema programmatically, but that's a worst
    practice.
    In your case I suggest to add a list (kind of dictionary) containing all values available to pick out. Then, instead of "Choice" column, use "Lookup" column which points to the dicitionary-list. Once a new value is entered, add a new list item to the dictionary.
    Next time this value will be available to pick out.
    .Net Follower (http://dotnetfollower.com)

  • Listdata.svc - shows column names?

    I have leveraged the REST service using listdata.svc many times. However, we are having trouble with one site in particular.  Cannot use REST with it and getting all sorts of errors in Visual Studio. This post is not about VS or C#, however, just about
    what should be in the REST schema period. I am seeing tons of huge node values when looking at the listdata.svc in a browser.  It appears these are a combination of the list name and the column name.  I didn't think column names showed up at all,
    just list names?
    For example:
    <collection
    href="InvestmentPortfolioAnticipatedProjectTeamSizeFTESContractorsCustomersVendorsEtc">
    <atom:title>InvestmentPortfolioAnticipatedProjectTeamSizeFTESContractorsCustomersVendorsEtc</atom:title>
    I found that Investment Portfolio is a legit list in the site, but the rest of that value is a column name.  Other lists do not have columns listed in this schema when viewing from the browser.  Can someone explain to me why this is happening?
    Thanks

    Hi,
    If you access http://siteurl/_vti_bin/listdata.svc, the preceding url returns all the lists in XML format. There will be no column name included in a <collection> node for normal lists, except when
    there is Choice column in this list.
    There will be extra <collection> nodes listed as the format below for the lists which contains Choice column:
    <collection href="ListnameColumnname">
    <atom:title>ListnameColumnName</atom:title>
    </collection>
    It seems this extra <collection> node is for internally use only which is not designed to be exposed to developers.
    I would suggest you submit a feedback to the Office Developer Platform if there any expectation about the documentation about SharePoint APIs:
    http://officespdev.uservoice.com/
    It is a place for customers provide feedback about Microsoft Office products. What’s more, if a feedback is high voted there by other customers, it will be promising that Microsoft Product Team will take it into consideration when designing the next version
    in the future.
    Regards,
    Rebecca Tu
    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]

  • How to implement tool-tip for the list items for the Choice column in SharePoint 2013

    I had created a simple list with a "Choice" column, i have three entries in my drop-down, 
    First Entry
    Second Entry
    Third Entry.
    If i select any entries in drop-down and hour-over (Second Entry), a
    tool-tip need need to show. 
    Is it possible? If yes how to implement any help will be appreciated.

    Hi,
    We can use JavaScript to achieve it.
    The following code for your reference:
    <script type="text/javascript" src="/sites/DennisSite/Shared%20Documents/js/wz_tooltip.js"></script>
    <script type="text/javascript" src="/sites/DennisSite/Shared%20Documents/js/jquery-1.11.1.min.js"></script>
    <script type="text/javascript">
    $(function () {
    $("select[title='Choice']").change(function(){
    Tip($(this).val());
    $("select[title='Choice']").mouseout(function(){
    UnTip();
    </script>
    Download wz_tooltip.js:
    http://www.walterzorn.de/en/tooltip/tooltip_e.htm#download
    Best Regards
    Dennis Guo
    TechNet Community Support

  • How to create a document folder using ListData.svc

    Hi All,
    I've recently been put on a project where I need to use the REST services (ListData.svc) to retrieve and add documents to the document library. It all has been smooth sailing until I hit the point where I want to save a document in a path that doesn't exist.
    I get an error if I try to save a file where the folder structure doesn't exist. I then went about it a different way trying to create the folder structure first. This also didn't work and I get an error message saying that the entity type is marked with the
    MediaEntry attribute but no save stream was set for the entity. Not too sure what set for the save stream if I'm just adding a folder.
    So my question is can a file be added to a folder structure that doesn't exist where it automatically creates the folders. If not can the service create folders?
    Some sample code I've been using:
    var folder = new SampleDocumentLibraryItem();
    folder.Name = "Sample";
    folder.Title = "Sample";
    folder.ContentType = "Folder";
    folder.Path = "/sample/folder1/folder2";
    spContext.AddToSampleDocumentLibrary(folder);
    spContext.SaveChanges();
    Thanks in advance,
    Damo

    Hi All,
    Finally managed to figure this one out. For anyone who needs source on how to create a document folder. Some sample source is below...
    var folder = new DocumentLibraryItem();
    folder.Name = "Folder Name";
    folder.Title = "Folder Name";
    folder.ContentType = "Folder";
    folder.Path = path;
    spContext.AddtoDocumentLibrary(folder);
    spContext.SetSaveStream(folder, stream, false, folder.ContentType, folder.Path + folder.Name + "|0x0120009BCC19899CEBC6468FF4EEAC7B8CF4F5"
    spContext.SaveChanges();
    So the important differences in the code above. The content type of the object and stream MUST be set to "Folder". I'm not sure why but you still need to set the save stream to be a valid stream even though you're only adding a folder. So just keep the stream
    open and then pass "true" to close it when you actually save the file. The other important element as noted from the URL's in the previous comments is you need to add a "|" + Content Type ID of a folder. You'll be able to get this ID by visiting the rest service
    for an existing document library and view source to see the actual content type id for a folder.
    Thanks everyone for your help,
    Damo

  • Display values for logical columns with several physical sources

    Hi all,
    I'm enocuntering some strange behaviour with the values displayed for a column (when we want to add it a as a filter, and in the dialogue box select 'Show All' values).
    Basically the logical column is mapped against several physical columns as the base fact table is aggregated to different levels. Additionally, one column in the fact tables has an attribute value, and these vary between the aggregated and non-aggregated table. This is not a problem.
    In the production environment, when we display the all values in the filters prompt for this column we are seeing the values being taken from one fact table. Naturally this means that not all the values possible for this column are being shown (i.e. values from the aggregated fact tables are missing). Now in one of our test environment where those fact tabels have additional data loaded, the values are being taken from one of the other fact tables. Unfortunately it is not necessarily the fact table with less data.
    My questions are:
    a) What dictates which fact table the server will use when the query in Answers doesnt use any dimensions (i.e. we are selecting just this attribute and selecting all the possible values by which it can be filtered)?
    b) Is there a way of obtaining all the values from the differente physical columns? I.e. that the display values shows the values of that logical column across all the physical fact tables? Maybe we would need to model that attribute as a logical dimension just for that attribute? Im not really sure this would work, as at the physical level the join between the dimension and fact would still have to go to only one particular fact table.
    Any info or help is much appreciated.

    Hi,
    Aggregate tables exist at physical level and are created by ETL procedures. Although i am aware that the dimension come into play when the application needs to decide which source aggregate table to use, it is not an issue here as in our query we are not involving dimensions. We are selecting just this one columen, and then the filter option on this column, then in the dialogue box we select 'All Choices', only the values from one of the source tables is being shown.
    This is not a probelm within reports, i think it is a product limitation in that in that option to list all values a user can filter by, it is not possible to display all the values from the different fact tables to which that column is mapped.
    Has anyone else encountered this behaviour?

  • Updating a managed metadata column from choice column value

    I am trying loop through
    all lists in a web, and for each list, 
    1. create a managed metadata column->Working
    2.
    Pull value from choice column->Working
    3. Move
    choice column value to managed metadata column->Not Working
    Point number 3 is not working. Please advise
    Here is the code:
    static void Main(string[] args)
    //Pulling the rootweb of the Site
    const string SPLocationListColumn = "CHECK6";
    SPSite site = new SPSite("http://sp2010:8080");
    SPWeb rootweb = site.RootWeb;
    //Setting up the taxonomy terstore, termset and term
    Microsoft.SharePoint.Taxonomy.TaxonomySession taxonomySession = new Microsoft.SharePoint.Taxonomy.TaxonomySession(site);
    TermStore termStore = taxonomySession.TermStores["Managed Metadata Service"];
    Console.WriteLine(termStore.Name);
    Group group = termStore.Groups["KM Metatags"];
    Console.WriteLine(group.Name);
    TermSet termSet = group.TermSets["Document Classification"];
    Guid termsetid = termSet.Id;
    Console.WriteLine(termSet.Name);
    Term term = termSet.Terms["Document subclassification"];
    TermCollection terms = termSet.Terms;
    Console.WriteLine(term.Name);//Looping through all webs of the input website
    SPWebCollection collWebsite = site.AllWebs;
    for (int i = 0; i < collWebsite.Count; i++)
    using (SPWeb oWebsite = collWebsite[i])
    //Looping through all lists in web
    SPListCollection collList = oWebsite.GetListsOfType(SPBaseType.DocumentLibrary); ;
    for (int j = 0; j < collList.Count; j++)
    SPList list = collList[j];//if the list name is Documents, create a new field of MMS type
    if (list.Title == "Documents")
    Console.WriteLine(list.Title);
    TaxonomyField field = list.Fields.CreateNewField("TaxonomyFieldType", SPLocationListColumn) as TaxonomyField;
    field.SspId = termSet.TermStore.Id;
    Console.WriteLine(termSet.TermStore.Id);
    field.TermSetId = termSet.Id;
    Console.WriteLine(termSet.Id);
    field.AnchorId = Guid.Empty;
    try
    {//Add the newly added MMS field to default view
    Console.WriteLine("Entering");
    Console.WriteLine("Entering");
    list.Fields.Add(field);
    Console.WriteLine("Entering");
    Console.WriteLine("Entering1");
    SPView view = list.DefaultView;
    Console.WriteLine("Entering2");
    list.Update();
    SPViewFieldCollection collViewFields = view.ViewFields;
    collViewFields.Add("CHECK6");
    Console.WriteLine("Entering3");
    view.Update();
    Console.WriteLine("Entering4");
    catch (Exception e1)
    Console.WriteLine(e1.Message);
    }//Capture a choice field by name subclass and move it to the newly added MMS field
    for (int f = 1; f < list.ItemCount; f++)
    if (list.Title == "Documents")
    Console.WriteLine(list.Title);
    SPListItem item = list.Items[f];
    if (item.Fields.ContainsField("subclass"))
    SPField field9 = item.Fields["subclass"];
    String subclassvalue = field9.GetFieldValueAsText(item["subclass"]);
    Console.WriteLine(subclassvalue);
    TaxonomyField taxonomyField = item.Fields["CHECK6"] as TaxonomyField;
    TaxonomyFieldValue taxonomyFieldValue = new TaxonomyFieldValue(taxonomyField);
    taxonomyFieldValue.TermGuid = term.Id.ToString();
    taxonomyFieldValue.Label = subclassvalue;
    taxonomyField.Update();
    item.Update();
    list.Update();

    From here:
    http://www.c-sharpcorner.com/uploadfile/anavijai/programmatically-set-value-to-the-taxonomy-field-in-sharepoint-2010/
    taxonomyFieldValue.TermGuid = term.Id.ToString();
    taxonomyFieldValue.Label = term.Name;
    SPListItem item = list.Items.Add();
    # item["Title"] ="Sample";
    item["TaxonomyField"] = taxonomyFieldValue;
    item.Update();
    list.Update();
    it appears you're missing the point where you assign that taxonomyFieldValue to the item's taxonomy field in question.

  • Display multiple choice column selections on a separate line in the body of email

    This question could have been answered elsewhere and I just don't realize it. I have a SharePoint Foundation 2010 form (11 columns) that has one choice column allowing the user to select multiple options (checkboxes). The selections have been typed into "type each choice on a separate line". Moving to Designer we have created a workflow that sends an email when the user submits to form.
    If Current Item: Select shift equals DAY request    Email ................
    The body of the email has this field:
    Information Being Requested: [%Current Item: The following information is being requested%].
    When the user gets the email the output for this field is string on a single line separated by a comma. What I need is each of the selections to be on a separate line so the users can easily read what is being requested and not miss any of the selection. I'm stuck. I'm not worried about text wrapping. I've been searching for hours but either it's not what a need, it's over my head, or I just don't know where to make the changes. I don't use VS but I do know html and I'm fairly comfortable in Designer. I would appreciate any help.

    Firstly, can you edit your post and take the question out of the code / quote box. It'll make it easier to read.
    Secondly the options depend on the version of SharePoint.  Are we to assume you're using SharePoint 2003 or 2007 as you've posted into the legacy forums?
    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.

  • In Existing SSIS package how we can call _vti_bin\listdata.svc service using script

    we have already used SSIS package using SharePoint List adapter but its not working properly... Can you will pref-are sharepoint list adapter for business purpose?  
    so we have decided to go with web service (_vti_bin\listdata.svc) and my main challenge is writing script i have to access list oblect from the webservice.
    Can
    you guide me how to write script ..how we can add service into script ...any examples for
    accessing SharePoint list( From Sql server to SharePoint list update)
    Regards,
    Anoop Nagappan

    We have already used SSIS package using SharePoint List adapter but its not working properly... Can you will pref-are sharepoint list adapter for business purpose?  
    so we have decided to go with web service (_vti_bin\listdata.svc) and my main challenge is writing script i have to access list oblect from the webservice.
    Can
    you guide me how to write script ..how we can add service into script ...any examples for
    accessing SharePoint list( From Sql server to SharePoint list update)
    Regards,
    Anoop Nagappan

  • Sorting and Grouping by multi-value Choice columns - any options?

    I found out the hard way that SharePoint doesn't support sorting or grouping lists by Choice columns that are set to "Allow Multiple Values." I'm stunned by this missing capability, and my project has come to a complete halt without it. It's like Microsoft only implemented hafl the feature -- you can put data in, but then you can't do anything with it. You can't even use the column in a formula in another column, so you can't parse it.
    I'm not posting just to gripe though. Does anyone have any suggestions for alternatives? What do you do when you need to let people make multiple selections, and then you want to sort or group by those values? Are there any add-on products that allow this? At this point my only option seems to be to not allow multiple choices, but that's taking away a rather significant feature.
    Thanks for any ideas,
    Steve

    Hi Paul,
    Thank you for the reply and the additional questions. For my situation I want to use the multi-value choice to indicate a "belongs to" relationship, as in "this item belongs to projectA, projectB, and project C. Because there are more than 10 projects, I didn't want to create a separate Yes/No checkbox for each one.
    For viewing the information, I'm looking primarily for a "group by" function.  So if an item belongs to projectA, projectB, and projectC, it would appear three times, once under the grouping for each project. What I don't want is for a row that only belongs to projectA to be grouped separately from a row that belongs to both projectA and projectB. I want to see all the rows that belong to projectA grouped together, regardless of whether they also belong to other projects.
    I'll look into using a grid control, but if you have any other suggestions I'll certainly listen.
    Steve

  • Best way to access Choice column 'choices'?

    Hi,
    Background: I have a Choice field passed down from a Content Type Hub to a content type used in a Document Library in another site collection. This choice column has a lot of 'choice entries' (<Choice 1>, <Choice 2>
    etc....). These entries will probably increase or possibly change in time. A colleague is writing a simple front end solution that uses a separate SQL backend which requires to know the 'choice entries'.
    Issue: So as to have the most up to date list of 'choices', the colleague has a requirement to 'look at' or export these choice entries from the SharePoint backend - and is asking for the sql table where they
    are held.
    I am aware that being touchy-feely with the back-end is not a good idea, but out of interest have done some research into the table location but have made no progress so far.
    Questions:
    1) Can the values be directly 'read' from the SQL backend and if so how?
    2) Is there a better way to achieve this that is straightforward?
    Many thanks in advance for any time and thought put into this issue
    Jason

    1. No.
    2. to perform a "live" lookup, the SQL way, would require an ODBC or ADO.Net to SharePoint adapter, which could be used as a Linked Server within SQL. This is BEYOND impractical.
    3. the BETTER approach would be to use something like a PowerShell script to pull the choices into a SQL database, which would be run on a scheduled task.
    4. Alternatively, depending on how the CHOICE field was defined for use, it may be possible to change the column from being a CHOICE field to being a BCS ("external data") field, and point it to some external database table that can also be used
    by this other thing... there are implications that may suggest that this approach is NOT desirable, but it may be worth considering
    it should also be pointed out, that as far as integration goes, best practice is to NOT perform direct lookups across systems... integrated data points should be REPLICATED to a LOCAL copy, as to ensure that the related data is using relationships local
    to the database. By doing so, if the remote system ever changes, the only change is in the integration... any application that's doing the lookup (using the LOCAL copy), or queries that utilize relationships (such as JOINs) will still continue working fine
    (albeit they may be using outdated data until the integration is updated).
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • Calculating Totals for a column in ALV Grid Display

    Hi All,
      I frustrated with the problem of simple calculating total for a column. I wrote the following code:
      LW_CATALOG-TABNAME   = P_GV_STRUCT.
      LW_CATALOG-FIELDNAME = 'ZSUMMS'.
      LW_CATALOG-DO_SUM    = GC_X.
      APPEND LW_CATALOG TO G_FIELDCAT_TAB.
      CLEAR LW_CATALOG.
    It is not working. Could you please suggest the solution?
    It would be great help to me.
    Advanced Thanks,
    Phani Kumar

    Phani,
    Did u try playing around with any of these layout fields ?
    no_sumchoice(1),       " no choice for summing up
    no_totalline(1),       " no total line
    no_subchoice(1),       " no choice for subtotals
    no_subtotals(1),       " no subtotals possible
    no_unit_splitting  " no sep. tot.lines by inh.units
    totals_before_items,   " diplay totals before the items
    totals_only(1),        " show only totals
    totals_text(60) ,      " text for 1st col. in total line
    subtotals_text(60) ,    " text for 1st col. in subtotals
    b. Addtionally... not a solution.. but u know...
    just try the same code iwth reuse_alv_list_display and see if the total gets displayed properly ?

  • Get sum of fields using ListData.svc or API?

    I want to make a call to ListData.svc or the API through a URL and get a sum of a field back based on the filter criteria I send.  Is there a way to do this?

    Hi,
    There would not be such aggregation function in CAML query or OData query when sending a restful request:
    http://msdn.microsoft.com/en-us/library/office/ms467521(v=office.15).aspx
    http://msdn.microsoft.com/en-us/library/office/fp142385(v=office.15).aspx#sectionSection7
    As a workaround, I would suggest you do the math in client side with the data retrieved.
    Thanks
    Patrick Liang
    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]
    Patrick Liang
    TechNet Community Support

  • Http Bad Request when using /_vti_bin/listdata.svc in excel or tableau

    hi all,
    I followed a guide from tableau that teaches us how to connect odata(sharepoint list data) but it keeps giving me HTTP bad request.
    When i tried to access my list  using http://myserverIP/_vti_bin/ListData.svc
    from the browser with credential, I am able to access the listdata and see the data from other lists. I decided to try connecting to excel instead but it gives me the same error, HTTP bad request. What am I doing wrong? Does the problem comes from
    access rights or?
    Can anyone help or guide me? Thank you

    Hi Leonard,
    Thanks for posting your query, you can refer one of my blog to create and configure a WCF service in SharePoint.
    http://dharmendrablogs.blogspot.in/2013/02/rest-wcf-service-in-sharepoint-2010.html
    And, another blog is
    http://dennis.bloggingabout.net/2006/11/09/WCF-Part-4-Make-your-service-visible-through-metadata/
    Hope this is helpful to you. If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS )
    Blog URL : http://sharepoint-community.net/profile/DharmendraSingh

  • Displaying Information selected within a Checkbox Choice column on a separate line

    I am looking to change the display output of a Choice column, which has checkboxes enabled for multiple selections, to show on Separate lines.
    At the moment when more than one box is selected the data is separated by a comma
    JR

    Hi Treble99,
    There is not an OOB way to implement displaying multiple values with separate lines. As the values are separated by a comma, you can replace the comma with break line.
    Here are some posts for your reference:
    http://stackoverflow.com/questions/16208081/comma-separated-string-to-linebreak
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/9a58177f-f135-492b-97df-c6c70086c2d3/sharepoint-designer-show-line-break-for-multi-text-plain-text?forum=sharepointcustomizationlegacy
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

Maybe you are looking for

  • Exchange rate diff. accts are not defined for account 16145110currency INR

    Dear SAP Gurrus, I am facing a problem while making  payment against invoice, receiving payment against invoice, clearing advance payment and  advance receipts through T-code F-53, F-28, F-44 and F-32.  System is allowing me to select the invoices ag

  • STOLEN MacBook Pro (13-inch, Mid 2012) Serial number: C1*******TY4

    Hello to everyone, My Macbook Pro was stolen while travelling in China on my way from Yangshuo to Guilin. I know its maybe just another post about a stolen computer for everybody but I have to try anyways ! The serial number is as stated above: C1***

  • How can I update my iMac 10.5.8 up to mavericks?

    Okay so, I have an iMac OS X, bought it in 2006, and I wish to update it to Mavericks. The problem I have, my Mac doesn't have the App Store, and the only way to get the App Store is to update the computer to Snow leopard. Do I really have to purchac

  • Module for managing USERS

    Good morning I have developed an application with Forms 10g + oracle 10g. Now I want to create a module for managing USERS where I can change the menu for each user, users create, modify the rights of access to the application modules. I want the bes

  • Error Managing 98 OS through Console One

    After registering Windows 98 machines in Zenworks, workstations can be seen in Console One, but there is an error when trying to control printers or remoting into them. XP machines are working perfectly ok. Error1487: You are attempting to launch the