Replace Extract in Packaged Workbook
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
Direzione di ricerca
Start with tableaudocumentapi.Workbook and its save_as method, then compare the existing .twb XML reference replacement with the packaging behavior of .twbx files. Investigate how the connection's .tde extract is represented in a packaged workbook. Done means replacing the extract while preserving the table definition and producing a self-contained new_workbook.twbx.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I'm trying to figure out how to replace an extract in a packaged workbook with a different extract that has the same table definition. I can use the Tableau SDK to create a new .tde, but it looks like there aren't python methods to replace an extract in a packaged workbook.
I'm imagining this would look something like this:
from tableaudocumentapi import Workbook
sourceWB = Workbook('workbook.twbx')
sourceWB.datasources[0].connections[0].extract = "MY-NEW-EXTRACT.tde"
#OR sourceWB.datasources[0].connections[0].extract.package('new-extract.tde')
sourceWB.save_as('new_workbook.twbx')
I can replace an extract in a .twb file by hacking the xml and changing references, but the "save_as" method doesn't actually package the workbook so that the connection is no longer dependent on a .tde file.
- Lingua principale
- Python
- Stelle
- 363
- Fork
- 183
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di tableau/document-api-python
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
tableau/document-api-python#270 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
tableau/document-api-python#260 ·
-
docs
Difficoltà 2/5 1-3 ore Idoneità per principianti 55/100
tableau/document-api-python#258 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
tableau/document-api-python#251 · 2 commenti ·
-
Alternative for Document Api Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
tableau/document-api-python#250 · 2 commenti ·
Tutte le issue di tableau/document-api-python
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
-
🐛 Bug 🔔 Pending processing
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
jumpserver/jumpserver#17584 ·