SharePoint 2013 - Office 365 Custom Rating(0-5) Sharepoint Hosted App SetRating Reputation Class using Javascript and CSOM

I have created the list and enabled the rating feature. I want to display the List items and rate individual items from an App.  I can able to create and bind the rating control through CSOM associated with the Rating Value.  But I unable to rating
when I click rating star button. I am using the below code for clicking through JavaScript
function SetRating(webUrl, listId, itemId, ratingElementId) {
hostWebContext = new SP.AppContextSite(context, hostWebUrl);
var listPrograms = hostWebContext.get_web().get_lists().getByTitle("MyList");
context.load(listPrograms);
var RatingValue = 5;
EnsureScriptFunc('reputation.js', 'Microsoft.Office.Server.ReputationModel.Reputation',
function () {
var rating = Microsoft.Office.Server.ReputationModel.Reputation.setRating(hostWebContext, listId, itemId, RatingValue);
context.executeQueryAsync(Function.createDelegate(this, this.RatingSuccess), Function.createDelegate(this, this.RatingFailure));
While executing this script I got error like get 0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'addQuery'
* Which Context we have to use for this case? AppWeb / HostedWeb
* Is there any way to update the rating control value at runtime?
Please help us to find out the solution.
Thanks.

Hi Elie,
Since this forum is discussing about Developing Apps for Office 2013, and your issue is more related about Exchange development. I will move this thread to the more related forum.
Reference:
https://social.msdn.microsoft.com/Forums/en-US/home?forum=exchangesvrdevelopment
Thanks for your understanding.
Best Regards,
Edward
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Generate reports from lists in SharePoint 2013 (Office 365)

    Hello everyone,
    We are in the need to generate reports from lists in SharePoint 2013. The reports would do data mingling between lists (like a relational database) and generate the reports in HTML and maybe a link to pdf on the SharePoint site.
    We are currently generating reports in Access. This is an issue for two reasons:
    Reports cannot be generated on the fly. Whenever we want reports in pdf form, we have to go into Access and run our reports macro written in VBA. It essentially generates the reports as pdf into our synced SkyDrive, which syncs it to our SharePoint site
    Report generation cannot be done by the client. This is due to the same concept as (1). We need to generate reports in Access.
    Is there any way to do this in SharePoint 2013? Are there any apps that do this?
    Any guidance or help would be appreciated.
    FYI: Our SharePoint server is hosted on the Office 365 network. It is not a local system.
    Thanks

    One option is to run the info into a Word Template and then run Word Automation Services to convert to PDF, but I think you're still going to run into some similar issues.
    Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

  • SharePoint 2013 Office 365 REST api - filter by FileDirRef

    Hi,
    We are using following REST call to query items from a document library and filter by
    FileDirRef. When we include the filter for FileDirRef, no items are returned from Office 365 sites. The same call/filter works fine on a local SharePoint 2013 box.
    https://xxx.sharepoint.com/sites/abc/_api/web/lists/getbytitle('DocumentLibrary')/items?$Select=FileDirRef,FileLeafRef&$filter=startswith(FileDirRef,
    '/sites/abc/DocumentLibrary/folder1')
    Why is filter by FileDirRef not working in Office 365 sites? Are we missing anything ?
    Thanks

    Hi Sandhya,
    What is your goal?
    If you want to use RESET API to get files in a folder of a document library, I suggest you use
    http://site url/_api/web/GetFolderByServerRelativeUrl('/Folder Name')/Files.
    More information about working with folders and files with REST, please refer to the link:
    http://msdn.microsoft.com/en-us/library/office/dn292553(v=office.15).aspx
    In addition, this forum supports for SharePoint 2013 On-premises, for your issue, I suggest you create a new thread on Office 365 forum, more experts will assist you with Office 365.
    Office 365 forum:
    http://community.office365.com/en-us/f/default.aspx
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • User name display in Discussion Board - SharePoint 2013 (Office 365)

    Hi,
    I would like to hide the display of user name of "Created by" and "Replied By" in discussion board.
    How to do this setup?
    Thanks and best regards,

    That's the nature of the web part.  Check here:
    http://office.microsoft.com/en-us/sharepoint-designer-help/display-data-from-multiple-lists-with-the-content-query-web-part-HA010174134.aspx
    The biggest limitation for content query web part is not able to go across site collections... but subsites should be ok. 
    Enter content by search web part.... new to 2013. 
    http://msdn.microsoft.com/en-us/library/office/jj163789(v=office.15).aspx

  • Sharepoint 2013 / Office 365 Document library item level permissions problem

    Hello,
    I'm looking for a solution to enable users to upload documents to a document library, the ability to view other documents uploaded to the same document library, but able to edit or delete those other documents.
    With a list you can use Item-Level security in Advanced Settings but this is not available for Document libraries. I could use workflows to assign individual permissions to document, but the the library already contains over 2,000 documents and will continue
    to expand so I don't like the idea of having that many individual permissions set.
    Are there any 3rd party plug-ins or solutions to this issue?
    Thanks,

    Try below:
    http://www.hersheytech.com/Blog/SharePoint/tabid/197/entryid/28/Default.aspx
    As it turns out the, setting Item-Level Permissions in a library is fully supported with PowerShell!
    The PowerShell commands for changing this are very simple:
    $web = Get-SPWeb http://YourSite/
    $list = $web.Lists[“Your Document Library Name”]
    $list.ReadSecurity = 2
    $list.Update()
    $web.Dispose()
    Note the 3rd line which is where you determine the value for this setting using the following values:
    1 = “Read all items”
    2 = “Read items that were created by the user”
    If you wish to modify the values for Create and Edit access instead, replace .ReadSecurity with .WriteSecurity with
    the following values:
    1 = “Create and edit All items”
    2 = “Create items and edit items that were created by the user”
    4 = “None”
    For example:
    $web = Get-SPWeb http://YourSite/
    $list = $web.Lists[“Your Document Library Name”]
    $list.WriteSecurity = 2
    $list.Update()
    $web.Dispose()
    Also check 
    http://sppermissions.codeplex.com/
    If this helped you resolve your issue, please mark it Answered. You can reach me through http://freeit-support.com/

  • Blank Page when clicking on Site Settings SharePoint 2013 Office 365 Sub Sites E3 Plan

    I'm having a problem with 1 Community site collection where all my sub sites render blank screens for Site Settings
    Page, but my root site collection displays links on Site Settings Page.
    Hope It shouldn't be a permission problem since I'm a site collection administrator, so it appears limited to
    just this site.
    Its very urgent any help would be of great help, Thanks in Advance.
    Regards,
    Raghav.
    G.K. Shri Raghavendra

    Hi Raghav,
    Please check if there is any message in subsites Site settings blank pag source file in IE browser via F12.
    Also check if it could help with adding SharePoint site URL in IE trusted sites zone.
    Also test this issue out side your company network, see if there is any settings in comany network causing this, e.g. firewall mentioned  by Shannon Herold 101 in your another thread.
    SharePoint Online is as part of Office365 in the cloud, it seems you have posted the issue in our Office365 dedicated forum, please keep monitoring the udpate there.
    http://community.office365.com/en-us/f/154/t/318200.aspx
    Thanks
    Daniel Yang
    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]

  • SharePoint 2013/Office 365 solution for subscription course

    Hi,
    A colleague of mine would like to make it possible for users to subscribe for an event. He would like the users to fill out a form(just through a list I guess) and click OK to make the subscription final. But, he wants the subscription to be closed when
    50 subscriptions are final. So number 51 should not be able to subscribe. What's the best way of doing this?
    Thanks in advance.
    Cheers!

    Hi,
    According to your description, my understanding is that you want to restrict users to add no more than 50 items of subscribing for an event in a list.
    I recommend to edit the list in InfoPath and use rules to achieve this goal.
    Here are the detailed steps:
    Click Customize Form in the ribbon of the list.
    Add the same list as an external data to InfoPath by clicking Data Connections in the Data tab.
    Click Page Design to add a new view and type “We have 50 subscription already and cannot add more” in the new view.
    Click Form Load in the Data tab, click New and select Action in the Rules panel.
    In Condition, choose Select a field or group in the first box, choose is equal to in the second box, choose Type a number and then type 50 in the third box. Click OK.
    Click Add and select Switch views to switch to the new view created in step3.
    Select Edit item(default) view in Page Design tab, then set the below rules for each field in the form.
    Click New and select Formatting in the Rules panel, then follow the step5 to set the Condition and check Hide this control for each field.
    Publish the form to SharePoint.
    After that, when a user add the 51 one the form will switch to the new view "We have 50 subscription already and cannot add more", they cannot type in values in the fields and save the form.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Sharepoint 2013 / Office 365 (in french) & Power Query

    Good afternoon,
    I've read a few threads regarding PowerQuery connectivity and SharePoint lists located on non-english sites.
    From what I can gather (taken from other thread) :
    "Unfortunately, when this feature was developed we didn't realize that the OData feeds from SharePoint
    were localized. So the feature was designed with the assumption that we'd know how to find certain fields in the output based on their name -- "ContentTypeId", for instance."
     Is there a planned fix for this?
    Thank you, 

    We definitely plan to address the problem at some point, but haven't yet scheduled the work.

  • SharePoint List Office 365 PowerQuery Error [DataSource.Error] SharePoint: Request failed:

    When I open Power Query in my Excel and connect to the SharePoint site that my list(s) reside in the tool displays the tables but when I select the table to pull the data I receive this error
    [DataSource.Error] SharePoint:   Request failed: The remote server returned an error: (500) Internal Server   Error. (An error occurred while processing this request.)
    My SharePoint version is the SharePoint online 2013 version.
    thanks
    Andrew
    BTW: all the system created lists (like L MicroFeed)  in the SharePoint do work properly. I can open them in Power Query and look at the data 

    GUTN, 
    can you submit this as a bug in the UI via the Smile Frown button?
    Thanks!
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • Project Pro 2013 and syncing with SharePoint Online 2013 (Office 365)

    Good day,
    I am experiencing some challenges with a Project Pro master project file and syncing to SharePoint 2013 (Office 365).
    What works
    Individual projects can be synced to SharePoint without issue. Once synced, the site start page presents the Project Summary gant, clicking the Tasks link takes me to the tasks. Project files are stored in the Site Assets directory in each SharePoint site
    (one site per project file).
    What doesn't work
    When I create a new project (and sync it to a new site), then add two (2) existing project files that reside on SharePoint and then sync to the new master project site I
    don't see any content in the Project Summary gant, nor do I see any tasks in the task list. I can't figure out if this is not supported or if I've done something wrong. There are no error messages or indicators that I've done something wrong,
    short of the master project projects not showing up on the master project site (nothing in the project summary gant and no tasks).
    Some help would be greatly appreciated. Being able to render a master project is crucial to understanding timelines for many projects in a single view.

    Steven,
    This is by design. Inserted Sub projects will NOT show in the Master Project Tasks list. You will only see tasks inserted directly at the Master Project Level.
    Moreover, if you set up a dependency between Master project Task and Subproject task, then the sync will not work. All in all, there are limitations for this process, which is where Project Online/Project Server needs to be considered.
    Cheers,
    Prasanna Adavi, Project MVP
    Blog:
      Podcast:
       Twitter:   
    LinkedIn:
      

  • How to Get user profile properties in provider -cloud hosted app in sharepoint online - office 365 using REST API?

    How to Get user profile properties in provider -cloud hosted app in sharepoint online - office 365 using REST API?
    any idea?

    Hi,
    From your description, my understanding is that you want to get user profile properties in provider-hosted app in SharePoint online using REST API.
    Here is sample code for getting user profile properties:
    http://www.vrdmn.com/2013/07/sharepoint-2013-get-userprofile.html
    Here is a blog below about accessing data from the provider-host apps:
    http://dannyjessee.com/blog/index.php/2014/07/accessing-sharepoint-data-from-provider-hosted-apps-use-the-right-context/
    Best Regards,
    Vincent Han
    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]

  • Sharepoint 2013 designer workflow custom sendemail activity

    Does anybody know sharepoint 2013 designer workflow custom sendemail activity. Current OOB sendemail action from designer workflow cancels the entire workflow when sendemail fails.
    MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead

    Hi Amit,
    What error did you meet when you used the OOB ‘Send Email’ action?
    I suggest you fix the error rather than creating a new workflow ‘Send Email’ activity.
    Of course, you can also customize a workflow activity to send email, there are two acticles about creating a custom workflow activity for your reference:
    http://msdn.microsoft.com/en-us/library/office/jj163911(v=office.15).aspx
    http://www.sharepoint-reference.com/Blog/Lists/Posts/Post.aspx?ID=37
    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

  • What are share point server 2013 & Share point Designer 2013 & Office 365 & Yammer & Share point 2013 & Windows server 2008 server & Windows Server 2012 Server Data Center?

    I need some clarifications.
    What are share point server 2013 & Share point Designer 2013 & Office 365 & Yammer & Share point 2013 & Windows server 2008 server & Windows Server 2012 Server Data Center? How each them are related in collaboration system?
    Is Share point server 2013 and Share pointer Designer 2013 available in 32bit version? If not, then how to use it in 32 bit machine by using any VMs?
    Thanks
    Senthil

    SharePoint Server 2013:
    http://office.microsoft.com/en-us/microsoft-sharepoint-collaboration-software-FX103479517.aspx
    SharePoint Designer 2013:
    Designer is used to develop SharePoint pages using HTML/CSS/JS as well as SharePoint Designer Workflows
    Yammer: 
    https://about.yammer.com/
    Windows Server is Windows, but the Server OS. SharePoint runs on top of supported Windows Servers editions (see http://technet.microsoft.com/en-us/library/cc262485.aspx).
    SharePoint Server is 64-bit only (trial:
    http://technet.microsoft.com/en-us/evalcenter/hh973397.aspx), although Designer does have a 32-bit edition (full product:
    http://www.microsoft.com/en-us/download/details.aspx?id=35491).
    You will need the capability to run 64bit VMs. Minimum recommended all-in-one VM for SharePoint is to allocate 24GB of RAM, but you can get away with as little as 12GB (I wouldn't go below that). Because of this, it generally rules out 32bit OSes as a virtual
    machine host.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • How to get sharepoint online (office 365) data in cloud/windows azure (provider) hosted app using Javascript?

    How to get sharepoint online (office 365) data in cloud/windows azure (provider) hosted app using Javascript?
    I wish to retrieve sharepoint online data in html page (hosted in windows azure) using javascript and then need to play with AngularJS

    Hi,
    According to your description, you might want to get data from Office 365 SharePoint Online(also known as host web) and pass to the Provider Hosted App which is hosted
    in Windows Azure site.
    I would suggest you take a look at the links below about accessing data from the host web
     for a quick start:
    https://msdn.microsoft.com/en-us/library/office/fp179927(v=office.15).aspx#SP15Accessdatafromremoteapp_Codeexample
    http://dannyjessee.com/blog/index.php/2014/07/accessing-sharepoint-data-from-provider-hosted-apps-use-the-right-context/
    Aother sample solution for your reference:
    https://code.msdn.microsoft.com/SharePoint-2013-Get-the-0ec36bb6
    Best regards
    Patrick Liang
    TechNet Community Support

  • How to change Site Share mail template in SharePoint online (Office 365)

    Hi,
    I want to change the default mail template used in SharePoint Online (Office 365) which is as follows
    I want to change the logo of microsoft with my custom logo and message below that logo.
    How could i do that?

    in Office365 SharePoint Online, if you wan to customize the alert template you need to customize the Alerttemplates.xml under 14 folder on Online server, but it is not permitted, check this article you
    also have seen.
    You can also post this question related SharePoint Online in dedicated Office365 SharePoint Online forum, you can get a better assistance there,
    http://community.office365.com/en-us/forums/151/categories.aspx
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/0d31bb5d-d46b-425a-9f48-6100404b95d8/sharepoint-online-custom-alert-emails?forum=sharepointcustomizationprevious

Maybe you are looking for

  • How do I use a MacBook with a Thunderbolt Display?

    I have a new Thunderbolt Display which I use with a new Mac Mini. If possible, I would like to attach my 2008 era MacBook to the Thunderbolt Display to take advantage of the bigger screen. I understand that MacBook doesn't have Thunderbolt and the Th

  • How can i sync my ipod to my computer with out re-adding them??

    I just got a new laptop and i already have all my music on my ipod i want all the music from my ipod into a library on my laptop on itunes.please any suggestions

  • Sorting tree with Sortset/Treeset

    Have anyone tried sorting a jtrees nodes using sortset or treeset? I just want the children for each directory in my tree to be sorted. Collections like treeset and sortset should do the trick, but i have failed in my quest for the right solution. Ca

  • Regarding top of page, end of page in alv's

    hi how can i get the data in page wise in alv's? like in normal reporting we use events like top of page and end of page... but how in alv's bye

  • When starting iTunes I get a message - a duplicate file name was specified

    I had to restore my system (Windows 7).  I deleted and recreated my profile and copied all my music back into my profile as well as all of the AppData settings for iTunes.  All of my music and playlists are fine and all of my settings are fine.  Howe