googleapis / googleapis/google-api-ruby-client
Insert table request is not able to copy already created table and paste it in another doc
- Lingua principale
- Ruby
- Stelle
- 2.9k
- Fork
- 888
- Merge medio
- 6m
- PR unite (30g)
- 218
Descrizione
`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`
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Start by reviewing the Google::Apis::DocsV1::Request examples and the batch_update_document call shown in the issue, then compare the insert_table fields with the Google Docs API request schema. Determine whether copying an existing table is supported by this client request; done means documenting the valid request shape or confirming the API limitation.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- ruby
- Ambito
- api
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100