googleapis / googleapis/google-api-ruby-client

Insert table request is not able to copy already created table and paste it in another doc

Offen
#18,690 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Ruby
Sterne
2.9k
Forks
888
Ø Merge
6 Min.
Gemergte PRs (30 T.)
218

Beschreibung

`requests = [
Google::Apis::DocsV1::Request.new(
insert_table: {
table: **table**, (Its not working, is it the right syntax?)
end_of_segment_location: {
segment_id: ''
}
}
)
]

# Execute the batch update request
batch_update_request = Google::Apis::DocsV1::BatchUpdateDocumentRequest.new(
requests: requests
)

response = docs_service.batch_update_document(doc_id, batch_update_request)

requests = [
Google::Apis::DocsV1::Request.new(
insert_table: {
table: table,
end_of_segment_location: {
segment_id: ''
}
}
)
]

request = Google::Apis::DocsV1::Request.new(
insert_table: {
rows: 3, # Number of rows in the table
columns: 4, # Number of columns in the table
end_of_segment_location: {
segment_id: "" # Segment ID if applicable
}
}
)

I tried the above code as well but instead of copying the existing table, it creates a new one with broader width and no data present`

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne mit der Prüfung der im Issue gezeigten Beispiele für Google::Apis::DocsV1::Request und des Aufrufs batch_update_document und vergleiche anschließend die insert_table-Felder mit dem Request-Schema der Google Docs API. Ermittle, ob das Kopieren einer vorhandenen Tabelle von diesem Client-Request unterstützt wird; als erledigt gilt die Dokumentation der gültigen Request-Struktur oder die Bestätigung der API-Einschränkung.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
ruby
Bereich
api
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.