如何动态生成画布应用表单字段? [英] How to generate a canvas app form field dynamically?

查看:47
本文介绍了如何动态生成画布应用表单字段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要根据数据源数据动态构建表单.

I need to build the form dynamically based on the data source data.

这里我使用 excel 作为数据源.

Here I am using excel as a data source.

在这个 excel 中,我使用了 3 个标题.

In this excel I have used the 3 headers.

如果我更改了字段名称或再添加一个标题,当我导航到该屏幕时,画布应用程序会根据数据源日期自动构建屏幕

If I changed the field name or add the one more header, the canvas app automatically build the screen based on the data source date while I navigate to that screen

推荐答案

Canvas app 实际上是为 WYSIWYG app maker (low code) 设计的,所以没有 OOB 方法来实现在加载动态表单布局时创建动态控件.阅读更多

Canvas app is actually meant for WYSIWYG app maker (low code), so there is no OOB way to achieve this dynamic control creation on load of a dynamic form layout. Read more

但一切皆有可能,使用代码逻辑生成字段或显示/隐藏,在相同的表单加载中执行可能会很麻烦.也许您可以开发一个组件甚至 PCF 控件来生成基于 excel 配置数据(控件、数据类型和属性)的控件.您可以从这个视频教程中获得一些想法.

But anything is possible, using code logic to generate a field or show/hide and it may be messy to do in same form load. Probably you can develop a component or even PCF control to generate the control based on excel config data (control, data type and properties). You can get some idea from this video tutorial.

这篇关于如何动态生成画布应用表单字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆