简体   繁体   English

如何将列动态添加到 Smart Forms 表?

[英]How to add column dynamically to Smart Forms table?

Is there a way that we can dynamically add column in the smartforms based on the record on the internal table?有没有办法可以根据内表上的记录在smartforms中动态添加列?

Best Regards此致

There is no direct way to do it, but I can imagine a couple of workarounds you can try:没有直接的方法可以做到这一点,但我可以想象您可以尝试几种解决方法:

  1. Put a condition in a table node column将条件放在表节点列中

This will hide the column if the record meets the condition, but leave there an empty space如果记录满足条件,这将隐藏该列,但在那里留下一个空白空间

  1. Create two templates with different number of columns and show them using the alternative element.创建两个具有不同列数的模板,并使用替代元素显示它们。

This will make a clean solution when there will not be neither column nor empty space.当既没有列也没有空白空间时,这将是一个干净的解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM