Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support for Optional property on Table Tag in document Assembler #85

Open
ankushchepure opened this issue Nov 7, 2024 · 1 comment
Open
Labels
help wanted Extra attention is needed question Further information is requested Word Word related tasks

Comments

@ankushchepure
Copy link

Needed an help or solution where i can add an optional == “True” on table tag if tables select xml field is not provided,

Ex . <Table Select=“Orders” Optional==“True” />

Similarly need help to have optional property on table cell data if table cell xml path not found

@sergey-tihon sergey-tihon added help wanted Extra attention is needed question Further information is requested Word Word related tasks labels Nov 8, 2024
@MalcolmJohnston
Copy link
Contributor

MalcolmJohnston commented Jan 2, 2025

This one is relatively simple to do and I will try and put a PR together in due course.

However, there is also a rather simple workaround for the short term. Just add a <Conditional> around your <Table> like so:

<Conditional Select="count(Orders) > 0" Match="True" />
<Table Select="Orders" />
<EndConditional />

Cheers,
Malcolm

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
help wanted Extra attention is needed question Further information is requested Word Word related tasks
Projects
None yet
Development

No branches or pull requests

3 participants