JavaScript - problema llamado sheet

 
Vista:

problema llamado sheet

Publicado por hector sore (1 intervención) el 08/07/2020 06:05:52
estoy tratando que cuando pregunto por el dato se vaya a la funcion uy conecte a una hoja de texto pero me sale

SpreadsheetApp is not defined (lo he publicado y lo habilitado nose que puede ser el error)



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE html>
 
<html>
 
  <head>
 
 <base target="_top">
    <link href="https://fonts.googleapis.com/css2?family=Princess+Sofia&display=swap" rel="stylesheet">
 
    <?!= includeExternalFile('history_css'); ?>
 
 
 
 
 
  </head>
 
  <body>
 
 
     <div class='container'>
      <h1>Revisar Covid Tocopilla</h1>
      <input id="rut" placeholder="Rut del Paciente"><br>
      <p>Ejemplo: '14541444-8' o 07654987-8 </p>
 
    <button id="try">Click here</button>
    <button id="ELI" onclick="myFunction()" >Click elim</button>
    <h1 id="text"></h1>
    <script>
 
 
   function myFunction() {
   try  {
 
   const id = '1RjamT3ucYfiSw5jWiGM5mO2LVN2jxhP20ApMcilZNBs';
   const spreadshet =  SpreadsheetApp.openById(id).getSheetByName('Sheet1');
     alert('nhtyytutone');
 
   const lastcolmn = lastrow.getLastColumn();
 
 
 
 
 } catch (e) {
 
 alert(e.message);
 
}
 
 
}
 
 
 
      </script>
 
 
 
 
 
       </div>
 
 
  </body>
  ;
 
 
</html>
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder