应用程序界面模板

发布于 2024-07-15 11:16:47 字数 234 浏览 4 评论 0原文

我正在为数据收集 Web 应用程序创建一个前端。 使用数据收集应用程序的操作员将记录十几个不同项目的数据,每个项目需要不同的字段。 有一些常见字段(如名称、地址...等),但每个项目也有自定义字段,用于需要收集的额外数据。 有些项目需要数十个额外字段,而有些项目只需要 1 或 2 个字段。 谁能想到一种“干净”的方法来处理这种情况? 我不想为每个项目创建一个输入页面,而有些人正在折腾用 XML 做 UI 模板的想法。 任何指导将不胜感激。

I am creating a front-end for a data collection web application. Operators using the data collection application will log data for a dozen different projects, with each project requiring different fields. There are some common fields (like name, address... etc) but then each project also has custom fields for extra data that needs to be collected. Some projects require dozens of extra fields, while some projects require only 1 or 2 fields. Can anyone think of a "clean" way to handle this situation? I don't want to create an input page for each project, and some people are tossing around the idea of doing UI templates in XML. Any guidance would be much appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

素手挽清风 2024-07-22 11:16:47

XML 将为您的问题提供一个巧妙的解决方案。 根据用户的选择,要求用户填写更多字段。 从您的问题陈述来看,您知道有多少项目需要额外的字段,哪些不需要。 如果您知道这些数据,则可以将此数据输入数据库,然后相应地生成表单页面。 然而,即使数据可以通过使用交互式 javascript 和 ajax 动态获取,您也可以轻松实现简洁的解决方案。

XML would provide a neat solution to your problem. Depending on the user choice, ask the user to fill more fields. From your problem statement its looking that you know how many projects need extra fields and which do not. If you know this data then feed this data into a database and then accordingly generate your form page. However even if the data is available dynamically with the use of an interactive javascript and ajax you can easily achieve a neat solution.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文