15,896,526 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by amitdhemar (Top 1 by date)
amitdhemar
29-Apr-13 2:58am
View
I have used App for Office JS API to do the work but when I am trying to Update 20 rows from App Excel by dragging single row and make change to next 20 rows, these 20 rows are updated in Front end but when I am trying to retrieve these updated rows using JS API it gives me the Old values only though in front end it shows updated one.......
I am trying to get new values on SelectionChange and OnDataChange but both of these methods returns me old values
Office.select("bindings#amitamit").getDataAsync({ coercionType: 'table', startRow: varCurrentRow, startCol: varCurrentColumn, rowCount: 1, colCount: 1 },
function (result) {
if (result.status == 'succeeded') {
// write("Image to find: " + result.value.rows[0][varCurrentColumn]);
//varCurrentValue = result.value.rows[0][varCurrentColumn];
document.getElementById('divNewValue').innerText = result.value.rows[0][varCurrentColumn];
if (result.value.rows[0][0].length <= 0)
varUpdatedMasterIDs += "¶-1";
else
varUpdatedMasterIDs += "¶" + result.value.rows[0][0];
document.getElementById('divMasterIDs').innerText = varUpdatedMasterIDs;
}
else
write(result.error.message);
});