Comments (3)
Thanks!
Is this solution equally applicable to the exhibit cover page template?
from docassemble-assemblyline.
Hi apstrom, you've changed generic object
in our code to object
in your code which is what caused your problem. object
isn't a Docassemble keyword.
You don't need to use generic object
here--you can directly specify the attribute on your document's variable. x
has a special meaning in Docassemble for generic object questions only. You'd substitute your actual document's name for the x
.
---
attachment:
variable name: exhibit_doc_defaults_1.table_of_contents
docx template file: exhibit_table_of_contents_APS.docx
field code:
exhibits: raw(exhibit_doc_defaults_1.exhibits)
include_exhibit_cover_pages: raw(exhibit_doc_defaults_1.include_exhibit_cover_pages)
from docassemble-assemblyline.
Still having an issue with the cover page template. DocAssemble is not pulling the correct template (from the DA templates folder, not AssemblyLine's folder).
I am trying to swap the word "exhibit" in the cover page for "TAB", which allows ALExhibitDocument to be used for things like motion records or compendia. Whatever I do, the output returns the stock AssemblyLine cover page template.
This issue has been driving me nuts. Any help would be much appreciated.
My code:
---
objects:
- exhibits_bundle_defaults_1: ALDocumentBundle.using(elements=[exhibit_doc_defaults_1], filename="exhibits_bundle_defaults", title="Exhibits with defaults")
- exhibit_doc_defaults_1: ALExhibitDocument.using(title="Exhibits doc defaults", filename="exhibits_doc_defaults", include_exhibit_cover_pages=True, include_table_of_contents=True,)
---
attachment:
variable name: exhibit_doc_defaults_1.cover_page
docx template file: exhibit_cover_sheet_APS.docx
field code:
exhibit_label: raw(exhibit_doc_defaults_1.label)
---
attachment:
variable name: exhibit_doc_defaults_1.table_of_contents
docx template file: exhibit_table_of_contents_APS.docx
field code:
exhibits: raw(exhibit_doc_defaults_1.exhibits)
include_exhibit_cover_pages: raw(exhibit_doc_defaults_1.include_exhibit_cover_pages)
---
from docassemble-assemblyline.
Related Issues (20)
- versions after 2.22.2 don't seem to work with my save and load answers HOT 3
- Remove the references to `[0]` and just use one question people can override for `[i]`
- Add an optional parameter to the _fields() methods to specify if each field is required or optional
- Add support for `work_number` to phone_numbers() method, and variable list in Weaver
- Add support for /s/My Name signature
- Should .familiar() default to showing the suffix in addition to first name? HOT 1
- Sign on a phone with finger is not working
- For navigation sections, add alternative syntax "show if"
- Figure out how to safely amend the "contact_methods" question - it's not relevant in post-covid world
- Add a "banner" feature that can be turned on/off in the global configuration
- Handle more kinds of overflow triggers for addendum code HOT 1
- Allow filtering of the interview_list page results to help advocates who have many interviews to look through
- Improve the question "what is your name" when `al_person_answering` != "user"
- When using al_nav_sections, don't display a top level section if there are no visible sections underneath
- When loading interview answers in sessions.py, make it possible to map certain variable names
- Pronouns don't respect the new "point of view" options in Docassemble
- Exclude interviews from certain packages, like ALDashboard, from the interview list HOT 1
- Change behavior of .pronouns() method to not trigger `gender` attribute when user selects "prefer not to say" or "unknown" for pronouns
- 'Answer Sets' Enhancement Request: Give user option to overwrite existing answer set or save as new HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docassemble-assemblyline.