Adapt to change to the Python GetNamedRanges()

Receive and display also the range definitions.

Change-Id: I69bd1bf2659fd382fb0f3307119eef5fffb7b6bd
This commit is contained in:
Tor Lillqvist 2018-01-22 11:26:23 +02:00
parent e87af96268
commit 0b728090f6

View file

@ -121,7 +121,12 @@
var index = 0;
var result = '';
while (msg.Values.result.value.hasOwnProperty(index.toString())) {
result += msg.Values.result.value[index.toString()].value + "\n";
if (msg.Values.result.value[index.toString()].value.hasOwnProperty('0') &&
msg.Values.result.value[index.toString()].value['0'].hasOwnProperty('value') &&
msg.Values.result.value[index.toString()].value.hasOwnProperty('1') &&
msg.Values.result.value[index.toString()].value['1'].hasOwnProperty('value'))
result += msg.Values.result.value[index.toString()].value[0].value + ": " +
msg.Values.result.value[index.toString()].value[1].value + "\n";
index++;
}
document.forms['get-named-ranges-form'].elements['result'].value = result;