Beginning: SharePoint® 2013 Development by Steve Fox & Chris Johnson & Donovan Follette
Author:Steve Fox & Chris Johnson & Donovan Follette
Language: eng
Format: epub
Publisher: John Wiley & Sons
Published: 2013-01-24T16:00:00+00:00
20. Run and launch the app again using the Run Project button in the bottom left of the window. This time an alert appears stating, “New ListItems created.”
21. Check the list in the SharePoint site to ensure the data has been created. You should see ten new items created in the list.
22. Within the sharePointReady function, change the createItems(); call to updateListItem();.
23. Directly after the sharePointReady function, insert the following code: var updatedItem; function updateListItem() { var listContext = new SP.AppContextSite(context, hostUrl); var list = listContext.get_web().get_lists().getByTitle('My Sample List'); var listItem = list.getItemById(1); listItem.set_item('Title', 'Updated via JS CSOM'); listItem.update(); context.load(listItem); context.executeQueryAsync(onUpdateItemSucceeded, onFailed); } function onUpdateItemSucceeded() { alert('Updated item!'); }
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
NET | C & C++ Windows Programming |
SQL Server | VBA |
Visual Basic |
Deep Learning with Python by François Chollet(11874)
Hello! Python by Anthony Briggs(9365)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9336)
The Mikado Method by Ola Ellnestam Daniel Brolund(9300)
Dependency Injection in .NET by Mark Seemann(8853)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(7845)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7306)
Grails in Action by Glen Smith Peter Ledbrook(7291)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7111)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(5951)
Kotlin in Action by Dmitry Jemerov(4633)
Practical Vim (for Kathryn Amaral) by Drew Neil(3724)
Cracking the GRE Premium Edition with 6 Practice Tests, 2015 (Graduate School Test Preparation) by Princeton Review(3590)
Linux Device Driver Development Cookbook by Rodolfo Giometti(3388)
Learn Windows PowerShell in a Month of Lunches by Don Jones(3236)
Learning Java by Patrick Niemeyer & Daniel Leuck(2867)
Learning React: Functional Web Development with React and Redux by Banks Alex & Porcello Eve(2831)
Becoming a Dynamics 365 Finance and Supply Chain Solution Architect by Brent Dawson(2580)
Mastering Java 9 by Dr. Edward Lavieri(2569)