Coder Social home page Coder Social logo

Comments (3)

apstrom avatar apstrom commented on August 16, 2024 1

Thanks!

Is this solution equally applicable to the exhibit cover page template?

from docassemble-assemblyline.

nonprofittechy avatar nonprofittechy commented on August 16, 2024

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.

apstrom avatar apstrom commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.