简体   繁体   English

FORMIO 问题总数 新手

[英]FORMIO questions total newbie

I'm tryin to learn FORM.IO, I'm a total newbie and have little knowledge with Javascript or client server or cloud.我正在尝试学习 FORM.IO,我是一个新手,对 Javascript 或客户端服务器或云知之甚少。
I have some questions, really sorry if they sound stupid.我有一些问题,如果听起来很愚蠢,真的很抱歉。

Is there a difference between resource and form in FORM.IO? FORM.IO中的resource和form有区别吗? I'm thinking they are the same except that the resource are to be used in forms for drop down or choices?我认为它们是相同的,只是资源将在 forms 中用于下拉或选择? like querying from a table?像从表中查询? I'm trying to use FORM.IO to create an application form where the user client will enter information like their name, address, birthday, complaint and other information.我正在尝试使用 FORM.IO 创建一个应用程序表单,用户客户端将在其中输入他们的姓名、地址、生日、投诉和其他信息等信息。 for this application, am i correct that we only need to use form?对于这个应用程序,我是否正确,我们只需要使用表单? and FORMIO will also be able to save all the information entered?而且FORMIO也能保存所有输入的信息吗? and resource is just for choices or reference?资源只是供选择或参考?

Also when planning to embed using the online FORMIO form, how do you connect to MONGODB?此外,当计划使用在线 FORMIO 表单进行嵌入时,如何连接到 MONGODB? is it possible?可能吗? or does FORMIO have to be deployed somewhere before you can connect it to MONGODB on Amazon EC2?还是必须先将 FORMIO 部署到某个地方才能将其连接到 Amazon EC2 上的 MONGODB?

Sorry, not sure if my questions make sense or not.抱歉,不确定我的问题是否有意义。 attached is the screenshot of the sample application form i'm trying to create using formio.附件是我尝试使用 formio 创建的示例应用程序表单的屏幕截图。

thanks.谢谢。

Sample application form Sample form申请表样本 样本表

Technically resources and forms are the same thing except for one thing: resources can be embedded in other resources and forms while forms cannot be.从技术上讲,资源和 forms 是一回事,除了一件事:资源可以嵌入到其他资源中,forms 而 forms 不能。

Conceptually, though, they are different.但是,从概念上讲,它们是不同的。 Resources represent entities of your domain.资源代表您的域的实体。 On the other hand, forms represent data that cannot exist on their own;另一方面,forms 代表不能单独存在的数据; data that depend on entities.依赖于实体的数据。 Therefore, forms cannot exist on their own, they depend on resources (again, conceptually , speaking).因此,forms 不能单独存在,它们依赖于资源(再次从概念上讲)。

Funny, your sample is about patients, physicians and hospitals.有趣的是,您的样本是关于患者、医生和医院的。 This is almost the same with the sample provided by form.io to explain the difference between resources and forms: https://help.form.io/intro/overview#forms-and-resources这个和form.io解释资源和forms的区别的示例差不多: https://help.form.io/intro/overview#s

So, no, you do not only need forms for your application.所以,不,您的应用不仅需要 forms。

As for the mongodb question, no, you do not access the data store directly.至于 mongodb 问题,不,您不直接访问数据存储。 Instead, you make use of the form.io api that has to be deployed somewhere.相反,您使用必须部署在某处的表单.io api。

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

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